Thanks chuck for the reply. >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? Below is the output of free command even when the tomcat is running(with above mentioned error)
total used free shared buffers cached Mem: 786432 184304 602128 0 0 0 -/+ buffers/cache: 184304 602128 Swap: 524288 0 524288 Its shows that there is still enough memory space to use. I use only command line version of fedora(Hence no significant memory use). More over, to run just the env command it should not require this much memory as shown by free. Abdul Wahid Caldarale, Charles R wrote: > >> 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 > > > -- 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-tp23222205p23228516.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org