How to Monitor Tomcat App Server?

Thread Tools Search this Thread
# 8  
Old 01-25-2017
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.
# 9  
Old 01-25-2017
Hammer & Screwdriver

Originally Posted by bakunin
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.
# 10  
Old 01-25-2017
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.
# 11  
Old 01-25-2017
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.

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Script monitor website wth default tomcat script charli1 UNIX for Advanced & Expert Users 0 06-26-2018 02:37 PM
Problem with Apache Tomcat FTP Server - download gets 404 slashdotweenie UNIX and Linux Applications 1 05-27-2014 07:16 AM
How to push Tomcat logs to remote syslog server? heshandh Linux 2 08-01-2013 06:46 AM
Tomcat..Unable to deploy application remotely in tomcat phani4u Solaris 0 12-06-2012 02:58 AM
Configure app server to view server files shrshah64 Red Hat 1 05-24-2012 02:57 PM
Sun java app server lhareigh890 UNIX for Advanced & Expert Users 0 02-06-2011 09:20 PM
how to debug an expect script running on a tomcat server randeel Shell Programming and Scripting 1 11-26-2010 08:53 PM
Need a little help in running jsp pages(Tomcat server). pinga123 Programming 3 05-06-2010 09:07 AM
difference weblogic server/webserver/app server tostay2003 UNIX for Dummies Questions & Answers 1 10-14-2009 02:44 PM
Trouble getting consistent PID of tomcat server from ps dkaplowitz Shell Programming and Scripting 1 07-16-2009 12:14 PM
what is the difference between http & Tomcat web server jayaprakash Solaris 2 03-12-2009 04:15 AM
can I use tomcat server for my chatting application? nsharath IP Networking 3 02-11-2009 11:18 AM
How to restart the tomcat server sankar reddy Shell Programming and Scripting 2 10-08-2008 06:26 AM
TomCat access in an Remote Linux Server gothama UNIX for Dummies Questions & Answers 1 03-13-2008 10:17 AM
jsp not working on linux running tomcat server mile1982 Linux 1 10-14-2004 07:18 AM