This repository has been archived by the owner on Apr 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Strange RAM usage #48
Comments
To find the cause of such memory usage, generate a heap dump and analyse it with VisualVM. You will see which classes use the most memory. |
P.S. Also I can send you full heap dump if it'll help to investigate problem. |
No fields, no references for this byte[]s. But for other (and mostly other byte[]s) classes it is. This is tar.gz with two dumps: heapdumps.tar.gz. Maybe you have more time for investigation. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected behaviour
Running app should use less than 32mb RAM.
Actual behaviour
Running app eats about 400mb RAM.
Steps to reproduce the issue
Create new project with one Main.java class with following code:
Run project and see memory usage using system monitor.
For example, I cannot even run this app on my VDS because of
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
The text was updated successfully, but these errors were encountered: