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