Sponsored Content
Special Forums UNIX and Linux Applications How to Monitor Tomcat App Server? Post 302990352 by RavinderSingh13 on Wednesday 25th of January 2017 07:06:02 AM
Old 01-25-2017
Quote:
Originally Posted by mohtashims
It certainly stops logging. This may be because of the requests not reaching Tomcat so its obvious it does not have to log anything or the Tomcat is Hung or Restarts due to which we see the missing logging.
Can you please suggest how can we monitor the server health to understand if the missing logging is desired or problematic ?
Hello mohtashims,

You could take following as a starting point to try to solve this problem.
  1. First do a ps -ef | grep tomcat and see if process is running or not.
  2. If process is running then you could try to STOP tomcat service then, if it is not running then try to kill it only tomcat process.
  3. Now make sure nothing is running for tomcat process. Then navigate to path of your tomcat logs and check for .pid file there, check if .pid file is empty or not if it is not then do it empty(so what it will hold is the pid of current running tomcat process).
  4. Try to start tomcat process again now and monitor the logs.
  5. If nothing works then let's think like a troubleshooter and try to put logging(DEBUG) to your tomcat logs by putting DEBUG in logging.properties of tomcat 6/7.

NOTE: These steps shouldn't be taken in a LIVE environment, without doing analysis(as it is one of the scenario).

Thanks,
R. Singh

Last edited by rbatte1; 01-25-2017 at 09:56 AM.. Reason: Converted textual list to formatted roman numeral list
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

TomCat access in an Remote Linux Server

Hi all, I Installed Tomcat in an remote linux server (/usr/tomcat)and start service, using ./startup.sh (and tried with ./catalina.sh too). //----------------------------------------------------------------// # ./startup.sh Using CATALINA_BASE: /usr/tomcat/apache-tomcat-6.0.16/ Using... (1 Reply)
Discussion started by: gothama
1 Replies

2. Shell Programming and Scripting

How to restart the tomcat server

hi, I need a command that restart the tomcat server. for example for restart the tomcat i am using following command, /etc/init.d/tomcat restart ..but sometimes is not working...might be i want to use java code access this peace of script. like using the grep and ps commands can i use?... (2 Replies)
Discussion started by: sankar reddy
2 Replies

3. IP Networking

can I use tomcat server for my chatting application?

Hello, I have a socket programming code to do chatting(both server and client). But this is limited to a single machines with multi users. But my target is to perform chat operation on multiple IP addresses in a given LAN in college. Can you please tell me if I can use TOMCAT as my server to... (3 Replies)
Discussion started by: nsharath
3 Replies

4. Solaris

what is the difference between http & Tomcat web server

I do not know the difference between the apache-http and the apche-Tomcat.Is they are differentiated on their version or on their features.:confused: (2 Replies)
Discussion started by: jayaprakash
2 Replies

5. Shell Programming and Scripting

Trouble getting consistent PID of tomcat server from ps

Hello all, I am working on a script to automate the process of restarting some tomcat servers. The versions of tomcat are pretty old and it often happens that they don't shut down gracefully and the PID needs to be manually killed. I am having a bear of a time getting a consistent PID from ps... (1 Reply)
Discussion started by: dkaplowitz
1 Replies

6. UNIX for Dummies Questions & Answers

difference weblogic server/webserver/app server

Hi All, I am getting confused with the terms below. All I know is an application can be installed on a server. But I see the following terms used in a company. All of them are installed on same Unix box. Could you please help me out in layman terms as to what these exactly means. (PS: I don't... (1 Reply)
Discussion started by: tostay2003
1 Replies

7. Programming

Need a little help in running jsp pages(Tomcat server).

Hi, I have installed following software on my linux machine. Is there anything else required to run jsp pages on linux machine? Please Help Here are some details that might be helpful. # lsb_release -a LSB Version: ... (3 Replies)
Discussion started by: pinga123
3 Replies

8. Red Hat

Configure app server to view server files

Hi, We have a OEL6.1 installed on our server. We want developers to view there application logs generated on the server, but doesn't really want to give them access to server machine. Can someone please suggest how can we configure apache/httpd to create a url which will show all files in... (1 Reply)
Discussion started by: shrshah64
1 Replies

9. 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

10. UNIX for Advanced & Expert Users

Building an apache-tomcat server

Hi, I have been assigned a task to build a server with these requirements : > has multiple tomcats running under the same apache. > tomcat & jdk has to be binded with apache. > latest openssl with all necesarry "mod" to bind with apache & tomcat. I am fairly new to... (1 Reply)
Discussion started by: anaigini45
1 Replies
ovs-brcompatd(8)						Open vSwitch Manual						  ovs-brcompatd(8)

NAME
ovs-brcompatd - Bridge compatibility front-end for ovs-vswitchd SYNOPSIS
ovs-brcompatd [options] DESCRIPTION
A daemon that provides a legacy bridge front-end for ovs-vswitchd. It does this by listening for bridge ioctl commands (e.g., those gener- ated by the brctl program) to add or remove datapaths and the interfaces that attach to them. OPTIONS
--appctl=program Sets the name to the program that ovs-brcompatd runs to communicate with ovs-vswitchd. The default is ovs-appctl. Unless program contains /, ovs-brcompatd will search the PATH environment variable to find it. --vsctl=program Sets the name to the program that ovs-brcompatd runs to communicate with ovsdb-server. The default is ovs-vsctl. Unless program contains /, ovs-brcompatd will search the PATH environment variable to find it. --pidfile[=pidfile] Causes a file (by default, ovs-brcompatd.pid) to be created indicating the PID of the running process. If the pidfile argument is not specified, or if it does not begin with /, then it is created in /var/run/openvswitch. If --pidfile is not specified, no pidfile is created. --overwrite-pidfile By default, when --pidfile is specified and the specified pidfile already exists and is locked by a running process, ovs-brcompatd refuses to start. Specify --overwrite-pidfile to cause it to instead overwrite the pidfile. When --pidfile is not specified, this option has no effect. --detach Causes ovs-brcompatd to detach itself from the foreground session and run as a background process. --monitor Creates an additional process to monitor the ovs-brcompatd daemon. If the daemon dies due to a signal that indicates a programming error (e.g. SIGSEGV, SIGABRT), then the monitor process starts a new copy of it. If the daemon die or exits for another reason, the monitor process exits. This option is normally used with --detach, but it also functions without it. --no-chdir By default, when --detach is specified, ovs-brcompatd changes its current working directory to the root directory after it detaches. Otherwise, invoking ovs-brcompatd from a carelessly chosen directory would prevent the administrator from unmounting the file system that holds that directory. Specifying --no-chdir suppresses this behavior, preventing ovs-brcompatd from changing its current working directory. This may be useful for collecting core files, since it is common behavior to write core dumps into the current working directory and the root directory is not a good directory to use. This option has no effect when --detach is not specified. -vmodule[:facility[:level]], --verbose=module[:facility[:level]] Sets the logging level for module in facility to level: o module may be any valid module name (as displayed by the --list action on ovs-appctl(8)), or the special name ANY to set the logging levels for all modules. o facility may be syslog, console, or file to set the levels for logging to the system log, the console, or a file respec- tively, or ANY to set the logging levels for both facilities. If it is omitted, facility defaults to ANY. Regardless of the log levels set for file, logging to a file will not take place unless --log-file is also specified (see below). o level must be one of off, emer, err, warn, info, or dbg, designating the minimum severity of a message for it to be logged. If it is omitted, level defaults to dbg. See ovs-appctl(8) for a definition of each log level. -v, --verbose Sets the maximum logging verbosity level, equivalent to --verbose=ANY:ANY:dbg. -vPATTERN:facility:pattern, --verbose=PATTERN:facility:pattern Sets the log pattern for facility to pattern. Refer to ovs-appctl(8) for a description of the valid syntax for pattern. --log-file[=file] Enables logging to a file. If file is specified, then it is used as the exact name for the log file. The default log file name used if file is omitted is /var/log/openvswitch/ovs-brcompatd.log. -h, --help Prints a brief help message to the console. -V, --version Prints version information to the console. --check-leaks=file Logs information about memory allocation and deallocation to file, to allow for debugging memory leaks in ovs-brcompatd. This option slows down ovs-brcompatd considerably, so it should only be used when a memory leak is suspected. Use the ovs-parse-leaks script to interpret the leak file. --leak-limit=size Limits size of the leak file as specified by --check-leaks to size bytes. Finding leaks sometimes requires allowing the leak file to grow very large, up to 1GB. By default, files are limited to 10MB. NOTES
ovs-brcompatd requires the brcompat_mod.ko kernel module to be loaded. SEE ALSO
ovs-appctl(8), ovs-vsctl(8), ovs-vswitchd(8), ovsdb-server(1), INSTALL.bridge in the Open vSwitch distribution. Open vSwitch March 2009 ovs-brcompatd(8)
All times are GMT -4. The time now is 11:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy