lemonzone2010 / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

View all process breaks as it's unable to find free memory while it's available #365

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup Java Melody on tomcat and leave it running for 1 days with hits coming 
in
2. Open the Java Melody monitoring home page using url/context/monitoring
3. Click on the link - "View OS processes" It will show the error -"Cannot run 
program "/bin/sh": java.io.IOException: error=12, Cannot allocate memory"

What is the expected output? What do you see instead?
It should show all the os processes

What version of the product are you using? On what application server, JDK,
operating system?
javamelody-1.47.0
Linux
tomcat 6.0.18
java version "1.6.0_23"

Please provide any additional information below.
1. Works fine with server restart for few time and then start breaking.
2. I am sure there is sufficient memory available around 15 GB RAM allocated to 
tomcat.
3. Even Java Melody front screen itself shows - 
   Java memory used:4,311 Mb / 15,134 Mb

Original issue reported on code.google.com by vidit.ra...@gmail.com on 11 Dec 2013 at 6:03

GoogleCodeExporter commented 9 years ago
Your error does not depend on the memory used by Tomcat, but on the memory 
available in the Linux OS.

So do not increase -Xmx15G, but you can decrease -Xmx15G for a better chance.

Otherwise, see 
http://stackoverflow.com/questions/1124771/how-to-solve-java-io-ioexception-erro
r-12-cannot-allocate-memory-calling-run suggesting "overcommit_memory"
Or try google yourself.

Can we close this issue?

Original comment by evernat@free.fr on 12 Dec 2013 at 11:51

GoogleCodeExporter commented 9 years ago
So resolving as invalid, for the reason above.

Original comment by evernat@free.fr on 18 Dec 2013 at 2:26