Avatar of trazodone
trazodone
Flag for Thailand asked on

Apache Tomcat slow

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.
Apache Web ServerUnix OS

Avatar of undefined
Last Comment
gheist

8/22/2022 - Mon
trazodone

ASKER
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)
===============
Linux Guru

Have you checked the free memory?

Please paste the output of the following command.

free -m

Open in new window


Cheers!!!
trazodone

ASKER
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
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
gheist

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
trazodone

ASKER
Thank you.
gheist

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)