Jump to content
RockWare Support Forum
Sign in to follow this  
HPCGRID

Petrasim crash and heap size of JVM

Recommended Posts

sorry for my poor english.

search on the web

i found this issue "java.lang.OutOfMemoryError: Java heap space" which was caused by JVM.

the heap size of JVM is not enough to load my model or simulation results

so that i got crash notification everytime(~98%).

i use safemode to start petrasim, then i saw "-Xmx700m" at first line in black window.

but i couldn't find where to change the setting to increase heap size of JVM.

how to solve this problem? thanks~

about my project: 0.53million cell (model size:50km*50km*2km) ECO2N+TOUGH2-MP

my petrasim version is 5.1.1710

===============

PetraSim Crash Log: 2011/5/21 下午 06:48:35

java.lang.OutOfMemoryError: Java heap space

at java.util.concurrent.ConcurrentHashMap$EntrySet.iterator(Unknown Source)

at vtk.vtkGlobalJavaHash.GC(vtkGlobalJavaHash.java:54)

at vtk.vtkJavaGarbageCollector$1.run(vtkJavaGarbageCollector.java:44)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Share this post


Link to post
Share on other sites

You can add a command line argument to specify the size of the Java JVM heap. You can either add the command line to your PetraSim shortcut (right-click the shortcut and select properties), or at the command line from a command prompt running in the PetraSim installation folder (usually c:\program files\petrasim 5).

For example, you can enter the following at the command line:

C:\Program Files (x86)\PetraSim 5>ps -J-Xmx1000m

This will create the JVM with 1,000 MB of heap space. To set the allocation to 500MB, the final argument would become -J-Xmx500m Your particular error could actually be the result of a heap that is too large. I would begin by lowering the heap allocation from the default 700MB in 100MB increments and see if the program will run properly. If that does not work, then try increasing in 100MB increments. In a 32-bit process, there is a 2GB (2,000MB) limit on memory, which is shared between the Java JVM and the rest of the program (native language code). Because of this, there is a practical limit on the heap size of around 1200MB.

To set this memory option on the program shortcut, add the option to the end of the "Target" line of the properties for the Shortcut.

Regards,

Brian

sorry for my poor english.

search on the web

i found this issue "java.lang.OutOfMemoryError: Java heap space" which was caused by JVM.

the heap size of JVM is not enough to load my model or simulation results

so that i got crash notification everytime(~98%).

i use safemode to start petrasim, then i saw "-Xmx700m" at first line in black window.

but i couldn't find where to change the setting to increase heap size of JVM.

how to solve this problem? thanks~

about my project: 0.53million cell (model size:50km*50km*2km) ECO2N+TOUGH2-MP

my petrasim version is 5.1.1710

===============

PetraSim Crash Log: 2011/5/21 下午 06:48:35

java.lang.OutOfMemoryError: Java heap space

at java.util.concurrent.ConcurrentHashMap$EntrySet.iterator(Unknown Source)

at vtk.vtkGlobalJavaHash.GC(vtkGlobalJavaHash.java:54)

at vtk.vtkJavaGarbageCollector$1.run(vtkJavaGarbageCollector.java:44)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×