How to monitor a Tomcat Java server in case of problems?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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!
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....
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.
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.