Sponsored Content
Top Forums Shell Programming and Scripting Montioring Script Tomcat catalina.out Post 302981693 by stomp on Saturday 17th of September 2016 03:54:27 PM
Old 09-17-2016
One of the more important things of Tomcat Monitoring is to keep an eye on the memory usage. The solution for most Tomcat/Java Server Problems is...

More Memory!

Some say there's only one better thing than more memory for a Tomcat Server:

Even more Memory!

And for the monitoring part: I suggest you to have a more broader look at your problem. When you have a certain message "...bla...broken pipe...", then you may know it already "Ah this one again" or you dig into your system until you figure out the root cause of the problem. What helps a lot in discovering the reasons are system performance data.
  • Tomcat Java Memory Usage over time
  • System RAM Usage over time
  • IO-Usage and Filesystem growth over time
  • CPU-Usage
  • Load
  • Network(Bandwidth+Errors)
  • Clock-synchronisation and drift(Very important!)
If you have those data, you'll discover from a look at those graphs what is normal for your system at what is not and above all: you'll discover all sort of changes before a critical state is reached. You'll learn what the impact of certain technical changes is, when you see the data coming in after that.

I suggest you to have a look at some monitoring system. As I assume you work in some type of company, there's probably already a monitoring system installed. I would expect most monitoring systems to be flexible enough to add your specific own checks there or use the features already available there. If no monitoring system is available to use, I recommend monit as an easy one ore check_mk as a more powerful approach - the latter needs to be on a separate best dedicated system(vps is enough). (Maybe there's a better solution for solaris available, but I do not know that).

There are some checks available for Tomcat/Java and check_mk. The client(=your tomcat server) part consists of a bash script most of the times. Sometimes, so chances are good that they just work at your server. Look here: Catalog of check plugins

And of course that one you're after(log file pattern matching) may be an import issue too. Most monitoring applications do have such features available.

Last edited by stomp; 09-17-2016 at 05:08 PM..
 

10 More Discussions You Might Find Interesting

1. Solaris

Catalina Analysis

How can I make analysis for catalina.out (2 Replies)
Discussion started by: Burhan
2 Replies

2. Shell Programming and Scripting

Problem with Unix script to start remote Tomcat

I have Tomcat installed on a Unix box and I need to start it remotely from another Unix box. Tomcat is started using a script. When this script is run locally everything is fine. When I run the same script from remote box, tomcat starts but the command running the script does not terminate.:( ... (2 Replies)
Discussion started by: shrgh
2 Replies

3. Shell Programming and Scripting

Please help to fingure out what wrong with my tomcat restarting bash script

Hi, I am a nbee to Unix, I have used following script to check my tomcat is running or not and restart if it down. but actually it restart my tomcat each time running even my tomcat still running fine: Script that can run a check and perform an action if the check fails ... (1 Reply)
Discussion started by: quyennd
1 Replies

4. Shell Programming and Scripting

How to check for and start the Tomcat using a script

Hello Everyone,. I am a novice with shell scripting and have written some minor shell scripts to copy files and such that. Now I have a requirement to write a shell script to go check if Tomcat running in the same server is up or not, if not then run the Tomcat startup script. Then put this... (4 Replies)
Discussion started by: bhaire
4 Replies

5. Shell Programming and Scripting

Monitoring Tomcat Instance using shell script

Hello Forum, I have prepared script to monitor the tomcat status. Following is the script which will monitor tomcat instance.I need little modifcation in the script. My script will grep for java,the output of grep command will analyze by if condition under for loop and will send following echo... (7 Replies)
Discussion started by: coolguyamy
7 Replies

6. Shell Programming and Scripting

how to debug an expect script running on a tomcat server

Hello everyone, I have a small expect script as follows; #!/usr/bin/expect -f set force_conservative 0 ;# set to 1 to force conservative mode even if ;# script wasn't run conservatively originally if {$force_conservative} { set send_slow {1 .1} proc send {ignore arg}... (1 Reply)
Discussion started by: randeel
1 Replies

7. Shell Programming and Scripting

tomcat automaticaly stop in menu script

i have a problem with the code I created (see below). a. when I logged in as root and su to tomcat, i can execute all options. when I press X, it will exit properly. b. when I logged in directly as user1, I can execute also all options. if I press X i will logout automatically to putty.... (2 Replies)
Discussion started by: lhareigh890
2 Replies

8. Solaris

Tomcat..Unable to deploy application remotely in tomcat

Hi, We have upgrade tomcat from 5.0.20 to 7.0.33 and made changes to server.xml file according to newer version.. how ever the upgrade went fine and now i am unable to deploy application remotely.. it is giving 403 access denied error.. we have seperate appbase directory mentioned in server.xml..... (0 Replies)
Discussion started by: phani4u
0 Replies

9. Shell Programming and Scripting

Monitoring Tomcat Service with shell script

Hello Forum, I have prepared script to monitor the tomcat status. Following is the script which will monitor tomcat instance. I need little modifcation in the script. My script will grep for process, the output of grep command will analyze by if condition under for loop and will send... (2 Replies)
Discussion started by: ooilinlove
2 Replies

10. UNIX for Advanced & Expert Users

Script monitor website wth default tomcat script

Hi all, on our application server we have the following script that monitor the status of the website, my problem here is that i have edite the retries from 3 to 5, and the timewait to 120 second, so the script should check 5 times every 2 minutes, and if the fifth check fails it must restart... (0 Replies)
Discussion started by: charli1
0 Replies
IP-MONITOR(8)							       Linux							     IP-MONITOR(8)

NAME
ip-monitor, rtmon - state monitoring SYNOPSIS
ip [ ip-OPTIONS ] monitor [ all | OBJECT-LIST ] [ file FILENAME ] DESCRIPTION
The ip utility can monitor the state of devices, addresses and routes continuously. This option has a slightly different format. Namely, the monitor command is the first in the command line and then the object list follows: ip monitor [ all | OBJECT-LIST ] [ file FILENAME ] OBJECT-LIST is the list of object types that we want to monitor. It may contain link, address, route, mroute, prefix, neigh and netconf. If no file argument is given, ip opens RTNETLINK, listens on it and dumps state changes in the format described in previous sections. If the file option is given, the program does not listen on RTNETLINK, but opens the given file, and dumps its contents. The file should contain RTNETLINK messages saved in binary format. Such a file can be generated with the rtmon utility. This utility has a command line syntax similar to ip monitor. Ideally, rtmon should be started before the first network configuration command is issued. F.e. if you insert: rtmon file /var/log/rtmon.log in a startup script, you will be able to view the full history later. Nevertheless, it is possible to start rtmon at any time. It prepends the history with the state snapshot dumped at the moment of starting. SEE ALSO
ip(8) AUTHOR
Original Manpage by Michail Litvak <mci@owl.openwall.com> iproute2 13 Dec 2012 IP-MONITOR(8)
All times are GMT -4. The time now is 05:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy