Apache / Tomcat Web Server Memory Settings and OutOfMemoryError Errors
Adjustment of Memory settings :
First we need to look at java-X in order to determine the parameters which can be set via envrionment variable JAVA_OPTS. You can also read the files, catalina.bat or catalina.sh
OutOfMemoryError errors :
It is quite obvious that your are out of memory. You would probably need a profiler to debug in case the codes are hanging onto object references. Another reason is that you have ran out of file descriptors. i.e. if you are on linux system, OutOfMemoryError can be thrown out of file descriptors. It can also occur, if your threshold is low. In this case, you need the ulimit program which can help you with this.
OutOfMemoryError can also occur due to running many threads at one time. Some operating system have a limit of number of threads which can be executed by a single process. Other reason include lot of JSP's, JVM bug
__________________
 .....aaahh...some1 jst shot me :P
|