Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory issues #3

Closed
vbhavsingh opened this issue Jan 19, 2018 · 4 comments
Closed

memory issues #3

vbhavsingh opened this issue Jan 19, 2018 · 4 comments

Comments

@vbhavsingh
Copy link
Contributor

Does not work with large tables.

19.01.2018 14:08:07 [INF]: converting data to CSV (one dot corresponds with 50k lines).......Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.Arrays.copyOfRange(Arrays.java:2694)
at java.lang.String.(String.java:203)
at java.lang.StringBuilder.toString(StringBuilder.java:405)
at sqldump.etl.Dump.toFile(Dump.java:93)
at sqldump.etl.Query.executeQuery(Query.java:221)
at sqldump.etl.Query.getDataFromSQLFile(Query.java:62)
at sqldump.SQLDump.run(SQLDump.java:89)
at sqldump.Main.main(Main.java:7)

@BernhardSchlegel
Copy link
Owner

How much RAM does your machine have ?

@vbhavsingh
Copy link
Contributor Author

I changed the code in my fork to dump output to file at every 10k lines, then reset the ArrayList and StringBuffer to save memory.
I was dumping around a 50Gb table and was having around 32Gb RAM.

@BernhardSchlegel
Copy link
Owner

Would you mind to send me PR ? Any improvement is welcome!

@BernhardSchlegel
Copy link
Owner

@vbhavsingh ping :) a PR would serve all users and credit you for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants