Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java hea
I am running a small program handling large amount of data, and face this problem.
My PC has a memory of 1GB.
VM option setting is listed below:
-Xms256m
-Xmx896m
-XX:PermSize=256m
-XX:MaxPermSize=256m
-ea
Hope someone can help me.
Please sign in to leave a comment.
Hello richard,
You might try to capture a memory snapshot for analysis.
Two options for that:
1) "jmap" tool (part of jdk)
2) using the profiler agent of YourKit (or another profiler)
A GUI tool like YourKit can analyze both snapshot formats.
The basic steps for analyzing memory retention are:
1) Find some data in the snapshot that you would expect to be freed/garbage
collected
2) Invoke "show path(s) to GC roots" (in YourKit) to see who's still (indirectly)
referencing that data
Hope that helps,
-tt
Oh wait, this is in the context of using IDEA, right?
Is the program you're running producing a large amount of console output?
>
In this case "Ide settings | General | Limit run/debug consoles output to" option should help.
--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"