LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to monitor a Tomcat Java server in case of problems? (https://www.linuxquestions.org/questions/linux-server-73/how-to-monitor-a-tomcat-java-server-in-case-of-problems-713187/)

Ujjain 03-20-2009 02:00 PM

How to monitor a Tomcat Java server in case of problems?
 
What preparations have YOU made to ensure good monitoring of Java threads, etc. in case of problems, memory leaks, etc.

I am looking to use Java Servlets for a website with a lot of visitors, but I wish to have made the right preparations in case some programming code causes major outages.

TB0ne 03-21-2009 04:03 PM

Quote:

Originally Posted by Ujjain (Post 3482392)
What preparations have YOU made to ensure good monitoring of Java threads, etc. in case of problems, memory leaks, etc.

I am looking to use Java Servlets for a website with a lot of visitors, but I wish to have made the right preparations in case some programming code causes major outages.

The best thing to do is TEST THOROUGHLY, everytime, no exceptions. Make backups at each version freeze, and keep them handy during the new code implementations. Only upgrade during non-peak times, and have the major players in the development team ON SITE, in case there's a problem.

There are basic tools to let you monitor services, but that doesn't help you if your new code crashes your web server. You'll know its down right away, and need to go back to your old code ASAP, to restore service.

Ujjain 03-29-2009 10:01 AM

I am currently use the following tools to monitor Java servlets:
  • Analyze stack (kill -3 & Thread Dump Analyzer)
  • Analyze memory dump (jmap & Memory Analyzer)
  • Analyze cpu usage, memory usage, garbage collection, number of threads running/waiting (YourKit Profiler)

I am still looking for ways to monitor:
  • Network issues which may cause problems with threads taking 300 seconds on particular times. We have no clue what causes the threads to be so slow sometimes. (happens once of twice a week, the entire web cluster is slow at these moments)
  • Databases issues which may cause threads to be so slow, same as above.

If anybody could give me any hint for troubleshooting, your help would be greatly appreciated!

amardeep.sachan 07-25-2009 02:05 AM

open source snmp
 
I am trying to implement snmp but i am not getting proper manual how to implemnt .Please help me.
thanks in advance.
Amar.

TB0ne 07-25-2009 03:17 PM

Quote:

Originally Posted by amardeep.sachan (Post 3619613)
I am trying to implement snmp but i am not getting proper manual how to implemnt .Please help me.
thanks in advance.
Amar.

Ok..open your own thread with your own question, and we'll be glad to. This thread is from March, and has very little to do with what you're asking.

Also, you'll need to provide some actual, useful information. Things like what version/distro of Linux, what you're wanting to monitor with SNMP, if you're wanting to SEND or RECEIVE traps, etc.

There are many configuration guides and how-to documents available through Google. If you have specific questions, please come back and post them, and we'll be glad to help you out....

amardeep.sachan 07-29-2009 08:36 AM

I have install opsview on centos5 but facing configuration problem.how can i see server status whitch is run on other system.I want to see status in my system.



Amar

TB0ne 07-29-2009 11:11 AM

Quote:

Originally Posted by amardeep.sachan (Post 3624233)
I have install opsview on centos5 but facing configuration problem.how can i see server status whitch is run on other system.I want to see status in my system.



Amar

First, you need to open your own thread for your own question...don't hijack someone elses. And you also need to explain your question a bit better...

amardeep.sachan 08-25-2009 06:45 AM

opsview installation steps
 
1) install mysql and start its service. 1.a-grant all privileges on root.* to root@192.168.1.7 identified by 'root';
2) create repo file for opsview usinf following link >>>> http://docs.opsview.org/doku.php?id=opsview:yum
3) create repo file for rrdtool usinf following link >>>> http://yoebaik.blogspot.com/2008/01/...using-yum.html
4) install rrdtool using following command >>>> yum install rrdtool*
5)create repo file using link>>>http://docs.opsview.org/doku.php?id=opsview:yum
6) install opsview using following command >>>> yum install opsview*
7) after installation complete process following step using link >>>> http://docs.opsview.org/doku.php?id=...s-installation

amardeep.sachan 08-25-2009 06:49 AM

help for check_jmx
 
I am trying to configure check_jmx command in opsview but not success.
please help.
Amar.

linuxlover.chaitanya 08-25-2009 07:06 AM

Open your own thread amandeep. Do not hijack the thread that is not even remotely connected to your issue. You have already been asked couple of times.


All times are GMT -5. The time now is 03:56 AM.