This content has been marked as final. Show 4 replies
Try what the message says
"Your Java heap size might be set too high.
Try to reduce the Java heap size using -Xmx:<size> (e.g. "-Xmx"
I do not know how much memory you have in your environment, but can you try
something like the following: -Xms1024m -Xmx1024m -Xgcprio:deterministic
Thanks René, we tested with this values, but the error was the same but with 1024mb, we are checking the memory, appear a strange behavior in the gc, its like a gc can not to release the heap memory, cause the heap used increase the value but dont returns to low values.
09/16/2011 09:51:42.812 COT Thread-12 (02.010.36) CRITICAL: OutOfMemoryError in thread Thread[Thread-12,5,main] (1,073,741,824 bytes free out of 934 ,040,416)
java.lang.OutOfMemoryError: Resource temporarily unavailable in tsStartJavaThread (lifecycle.c:1096).
Java heap 1G reserved, 1G committed
Your Java heap size might be set too high.
Try to reduce the Java heap size using -Xmx:<size> (e.g. "-
We are trying with -XXAggresive mode, the gc is clean the heap of the better way, but we are not sure if this the way. We will test with endurance and stress.
Edited by: 885554 on 16/09/2011 03:56 PM
When does the error occur?
Could you just run a simple Java program (with a main method that runs forever) on the command-line and see what happens?
On the command-line you can use something like: java -Xms1024m -Xmx1024m -Xns256m -Xgc:deterministic -XpauseTarget:100ms some.package.JavaProgram
Check your ulimit settings. Maybe your open file limit is too low.