Operating System - HP-UX
1828360 Members
3361 Online
109976 Solutions
New Discussion

Re: Java Tomcat keeps crashing and reporting out of memory - Performance Help

 
VINY
Occasional Advisor

Java Tomcat keeps crashing and reporting out of memory - Performance Help

How to deal with Java performance issues on HP-UX?

I would like to if you ever came across a Java Performance issue and how you fixed it. Did you use any tools, performance tracking software, kernel changes, ulimit sizing, cpu interupts etc...



Inventory:
SD16000 (vpar1)
4 CPU's
20 GB Memory

Best Regards
Projects Smawjects
1 REPLY 1
Srini Jay
Valued Contributor

Re: Java Tomcat keeps crashing and reporting out of memory - Performance Help

Alvin,
You can use HPjconfig tool available at http://www.hp.com/products1/unix/java/. It helps you with required patches and Kernel parameters.

Out of memory is thrown for many reasons - like when max file handlers are utilized, or when no new threads could be created or just like the message says, Java didn't get enought memory and it is running out of memory. Try -Xms & -Xmx options while starting JVM. I mean export JAVA_OPTS="-Xms128m -Xmx512m" before starting Tomcat (where 128 and 512 megs can be altered as required by the applcaition you are running.

There are tons of tools for performance monitoring and doing related stuff meant for Java developers and Sys Admin. What are exactly looking for?

Thanks,
Srini