Hi,
I am running tomcat tomcat 5.2.27 on Fedora 10 which is installed on a VPS.
VPS has 768MB RAM (As by free command).
I am unable to use maximum available memory by JVM's Xmx512m option.
I am using these options in setenv.sh ..
JAVA_OPTS="$JAVA_OPTS -Xmx256m -Xms128m -XX:MaxPermSize=128m
-Dfile.encoding=UTF8 -Duser.timezone=GMT
-Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas.config
-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false"
With above options there is an error (However server starts fine)..
The error is
java.io.IOException: Cannot run program "env": java.io.IOException:
error=12, Cannot allocate memory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:431)
at java.lang.Runtime.exec(Runtime.java:328)
This happens when I have specified maximum memory as 256M, but as I have
more memory allocated to my VPS,I want to use more as max heap size.
But when I try to change java option to Xmx368m or Xmx512m , it says that it
could not allocate this memory to server and server does not starts at all.
I somewhere read similar problem but no solution, Is it because of VPS?
Any body has any idea how it can be resolved?
Abdul Wahid
--
View this message in context:
http://www.nabble.com/Memory-alloation-issue-%3A-java.io.IOException%3A-Cannot-run-program-%22env%22%3A-java.io.IOException%3A-error%3D12%2C-Cannot-allocate-memory-tp23222205p23222205.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]