Apache Tomcat slow

trazodone
trazodone used Ask the Experts™
on
Hello Experts,

I am experienced problem about apache tomcat webapp. I can open my webapp page fast but sometime it is very slow to get access to webapp page (https://example-ip:9443).
During this problem happen, I found that CPU performance, Network performance, Memory usage has no problem. This Tomcat server is running on production server. Do you know how can I check root cause of this problem. I will investigate catalina log file also, Which part of log or keyword do I need to concentrate. Thank you.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
I found some broken pipe error

===============
com.sun.xml.ws.transport.http.servlet.WSServletDelegate doGet
SEVERE: caught throwable
java.lang.RuntimeException: javax.xml.stream.XMLStreamException: ClientAbortException:  java.net.SocketException: Broken pipe
     at com.sun.xml.stream.writers.XMLStreamWriterImpl.get(XMLStreamWriterImpl.java:2122)
===============
LinuxGuruLinux Server Administrator

Commented:
Have you checked the free memory?

Please paste the output of the following command.

free -m

Open in new window


Cheers!!!

Author

Commented:
My server is solaris 10 sparc don't have free command. by the way i use top and i have free memory 103GB of 128GB
11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

Top Expert 2015
Commented:
Most likely your problem is called "GC Pause", and you need to do some "GC tuning"
Do you know your java version and how much memory it uses in TOP.
Are you sure you run 64bit version to use more than a couple of GB of RAM?
What are parameters used to invoke Tomcat?

Author

Commented:
Thank you.
Top Expert 2015

Commented:
Since you are limited to SUN JDK you will get least memory fragmentation by setting -Xms to same value as -Xmx (and rise both if you see OOM errors)
Also good for system management - you know tomcat uses 5GB and rest is for other applications.
It would be crazy to use more than half of system memory for one single server app especially when there are multiple running (like database and apache)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial