LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-20-2009, 02:00 PM   #1
Ujjain
Member
 
Registered: Mar 2009
Posts: 33

Rep: Reputation: 15
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.
 
Old 03-21-2009, 04:03 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by Ujjain View Post
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.
 
Old 03-29-2009, 10:01 AM   #3
Ujjain
Member
 
Registered: Mar 2009
Posts: 33

Original Poster
Rep: Reputation: 15
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!
 
Old 07-25-2009, 02:05 AM   #4
amardeep.sachan
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Rep: Reputation: 0
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.
 
Old 07-25-2009, 03:17 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by amardeep.sachan View Post
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....
 
Old 07-29-2009, 08:36 AM   #6
amardeep.sachan
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Rep: Reputation: 0
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
 
Old 07-29-2009, 11:11 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by amardeep.sachan View Post
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...
 
Old 08-25-2009, 06:45 AM   #8
amardeep.sachan
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Rep: Reputation: 0
Thumbs up 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
 
Old 08-25-2009, 06:49 AM   #9
amardeep.sachan
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Rep: Reputation: 0
Thumbs up help for check_jmx

I am trying to configure check_jmx command in opsview but not success.
please help.
Amar.
 
Old 08-25-2009, 07:06 AM   #10
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What distributuion to use for running Java+Tomcat+Postgresql Server with budget HW n.lindberg Linux - Server 3 02-15-2009 04:41 PM
Please help with Apache Web Server / Apache Tomcat / PHP / Java / PHP-Java Bridge jpmad4it Linux - Server 2 01-05-2009 06:07 AM
java proxy server (running on tomcat) t0bias General 0 04-17-2008 08:20 AM
how to see the tomcat and java version in a linux server Karthi_India Linux - Newbie 1 08-21-2007 02:03 AM
how to install java & tomcat server in linux adityakumar Linux - Software 2 06-04-2005 10:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration