> From: coolwithfire [mailto:iwd_s...@rediffmail.com] > Subject: Memory alloation issue : java.io.IOException: Cannot run > program "env": java.io.IOException: error=12, Cannot allocate memory > > VPS has 768MB RAM (As by free command).
Is there any swap space configured? If not, you're going to have a tough time fitting in more than a very small number of processes that have significant memory requirements. What is the complete output of the free command? > java.io.IOException: Cannot run program "env": java.io.IOException: > error=12, Cannot allocate memory > at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) The above shows that you're starting a child process from within your JVM, so it's not surprising they both won't fit. > 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. If your instance of Fedora has to live within 768 MB without any swap space of its own, what you're describing seems pretty normal. The process space for the JVM includes not only the Java heap, but also the C heap, code space, file buffers, and library & OS control structures. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org