Java Heap Memory Allocation
Hi there!
I'm trying to increase Java Heap size for Java WS applications. I have entered the below in the deployment properties:
deployment.javapi.jre.1.5.0_03.args=-DcheckMemory\=false -Xms32m 朮mx256m -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:NewRatio=2 -Dsun.java2d.ddoffscreen=false
As a result I have been getting the following messsage: "Several Java Virtual Machines running in the same process caused an error" or, whilst trying different combinations: "Java Plug-in Fatal Error - The Java Runtime Environment cannot be loaded".
Once I get the first error I am forced to log-out otherwise any Java Apps started will get the error, can't see any processes to kill in the Task Manager either.
Any help would be muchly appreciated!!
Many thanks,
.//phil
# 1
> I'm trying to increase Java Heap size for Java WS applications.
Sure. What I do not understand is why you
do not use the technique shown here..
http://www.physci.org/jws/#giffer
(The example, besides using a library, offers
either 'standard memory' or 'expanded memory'*
versions of the launch file.)
* that requests a maximum of 512 Meg.
Message was edited by:
AndrewThompson64
# 2
Try these:
/* Data Virtue BASE */
"-J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Xverify:none -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-XX:CompileThreshold=100"
/* Data Virtue HIPO */
"-J-Xms32m -J-Xmx128m -J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Xverify:none -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-XX:CompileThreshold=100"
Sean