tomcat - Java "Out of memory error" - heap/system - where to look? -
in tomcat application getting "out of memory" , "cannot allocate memory" errors. suppose nothing heap fulls system memory , hardly able run bash commands.
how problem connected heap? how can correctly set heap size application has enough memory , not consume of system resources?
strange thing "top" command keeps saying tomcat consumes 20% of mem , there still free memory, once problem happens.
thanks.
edit:
follow-up: bufferedimage leaks - there alternatives?
problems running bash scripts may indicate i/o issues, , might case if jvm doing full gcs time (which case, if heap almost-full).
the first thing do, increase heap -xmx. may solve problem, or - if have memory leak, won't, , outofmemoryerror again.
in case, need analyze memory dumps. see my answer in thread instructions.
also, might useful enable garbage collection logs (using -xloggc:/path/to/log.file -xx:+printgcdetails) , analyzing them gcviewer or hpjmeter.
Comments
Post a Comment