Unix/Linux Go Back    

UNIX and Linux Applications Discuss UNIX and Linux software applications. This includes SQL, Databases, Middleware, MOM, SOA, EDA, CEP, BI, BPM and similar topics.

How to Monitor Tomcat App Server?

UNIX and Linux Applications

Thread Tools Search this Thread Display Modes
Old Unix and Linux 01-25-2017   -   Original Discussion by mohtashims
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
Join Date: Mar 2011
Last Activity: 26 May 2018, 12:31 AM EDT
Posts: 1,177
Thanks: 32
Thanked 358 Times in 309 Posts
I tend to have this deployed to look at in general (if needed) :
InstallationApacheTomcat * psi-probe/psi-probe Wiki * GitHub

The software is gpl, has a relatively small footprint when deployed.

Of course, standard commands work as well (vmstat, iostat etc.), but this should help in investigation.

You can use various 'developers consoles' or firebugs to examine where it's stuck from the client side using browser.
Sponsored Links
Old Unix and Linux 01-25-2017   -   Original Discussion by mohtashims
mohtashims's Unix or Linux Image
mohtashims mohtashims is offline
Registered User
Join Date: Jun 2011
Last Activity: 17 May 2018, 2:33 PM EDT
Posts: 800
Thanks: 213
Thanked 7 Times in 7 Posts
Hammer & Screwdriver

Originally Posted by bakunin View Post
Have you made sure it is the application (and, for instance, NOT the system itself) that hangs for a few seconds? If, i.e., the system would be in a state of heavy swapping it might look like the application hangs but in fact it is the system that blocks the application because it has to get missing memory pages from swap to memory.

I hope this helps.

The Unix server has no issues.

I m not looking to resolve any issue. All i want is to setup a non third part monitoring mechanism to monitor Tomcat Hung state. Unfortunately, all the suggestions be it mine or others is not helpful to print and debug Tomcat v8 hung state.

If anyone knows ... please suggest.
Sponsored Links
Old Unix and Linux 01-25-2017   -   Original Discussion by mohtashims
Corona688's Unix or Linux Image
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
Join Date: Aug 2005
Last Activity: 25 May 2018, 3:04 PM EDT
Location: Saskatchewan
Posts: 22,680
Thanks: 1,179
Thanked 4,324 Times in 3,987 Posts
How to test whether a running daemon is capable of responding to queries, without actually making a query? That's a catch-22.

"Hung" isn't a state like sleep or running. It's the ability of the software itself to respond.
Old Unix and Linux 01-25-2017   -   Original Discussion by mohtashims
agent.kgb's Unix or Linux Image
agent.kgb agent.kgb is offline
Registered User
Join Date: Feb 2015
Last Activity: 15 May 2018, 5:55 PM EDT
Location: basement, Lubyanka, Moscow
Posts: 343
Thanks: 8
Thanked 98 Times in 87 Posts
it is usual problem with wrong configured java. Java runs garbage collection regularly and if it has too harsh settings for garbage collection, you will notice a small hang during the process. Check maximum and initial heap size and your garbage collection mechanism. Install some webapp - there some very nice with graphs and a lot of information - to monitor java heap. You will not see much information using standard UNIX toolset.

e.g. Understanding Java Garbage Collection | CUBRID Blog :
there is a term that you should know before learning about GC. The term is "stop-the-world." Stop-the-world will occur no matter which GC algorithm you choose. Stop-the-world means that the JVM is stopping the application from running to execute a GC. When stop-the-world occurs, every thread except for the threads needed for the GC will stop their tasks. The interrupted tasks will resume only after the GC task has completed. GC tuning often means reducing this stop-the-world time.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need a little help in running jsp pages(Tomcat server). pinga123 Programming 3 05-06-2010 08:07 AM
Trouble getting consistent PID of tomcat server from ps dkaplowitz Shell Programming and Scripting 1 07-16-2009 11:14 AM
can I use tomcat server for my chatting application? nsharath IP Networking 3 02-11-2009 10:18 AM
How to restart the tomcat server sankar reddy Shell Programming and Scripting 2 10-08-2008 05:26 AM
TomCat access in an Remote Linux Server gothama UNIX for Dummies Questions & Answers 1 03-13-2008 09:17 AM

All times are GMT -4. The time now is 07:53 AM.