tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amol Puglia <amolcpug...@yahoo.com>
Subject Re: Apache Process going high even after restart of backend server tomcat
Date Wed, 12 Jan 2011 08:12:28 GMT
Hello Andre Warnier,

Thanks for the response.

2) tell us what the platform is (O.S.)
-> it is solaris platform :- uname -a

SunOS 5.10 Generic_141414-10 sun4u sparc SUNW,Sun-Fire-V890 


3) if you can, also tell what
exact version of the mod_jk moduile you are using. You should be able
to find this in the message that Apache httpd prints in its error log
when it starts.

->mod_jk/1.2.28

3) in the configuration of Apache httpd, there must be configuration lines starting with "Jk......". 
Copy them here.

->LoadModule    jk_module  modules/mod_jk.so
JkWorkersFile /opt/web/apache/app/conf/workers.properties
JkLogFile /opt/web/apache/app/logs/mod_jk.log
JkLogLevel trace
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardURIEscaped +ForwardURICompatUnparsed
JkRequestLogFormat "%w %V %T"
JkMount /* worker1


4) copy here the full content of the "workers.properties" file (comments removed)

->workers.tomcat_home=/opt/app/tomcat/5.5.9

workers.java_home=/opt/app/j2sdk1.4.2_02/

worker.list=worker1

worker.worker1.type=ajp13

worker.worker1.host=localhost

worker.worker1.port=20209

worker.worker1.socket_keepalive=1

5) in the Tomcat conf/server.xml file, there is a <Connector> element with a protocol=AJP.
Copy this <Connector> element here.

-> <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="20209"
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
/>



6) if the platform is Unix/Linux, execute the following command and copy the result here :
apache2ctl -V

->./apachectl -V
Server version: Apache/2.0.59
Server built:   Feb 18 2010 09:10:59
Server's Module Magic Number: 20020903:12
Server loaded:  APR 0.9.12, APR-UTIL 0.9.12
Compiled using: APR 0.9.12, APR-UTIL 0.9.12
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_FCNTL_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/opt/web/apache/app/erib2b/"
 -D SUEXEC_BIN="/opt/web/apache/app/erib2b//bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"


7)
if the platform is Unix/Linux, go to the "bin" directory of Tomcat,
execute the command "version.sh" and copy the result here.

-> Tomcat version is 5.5.9.

Please let me know in case i can provide more information.

--- On Tue, 1/11/11, André Warnier <aw@ice-sa.com> wrote:

From: André Warnier <aw@ice-sa.com>
Subject: Re: Apache Process going high even after restart of backend server tomcat
To: "Tomcat Users List" <users@tomcat.apache.org>
Date: Tuesday, January 11, 2011, 8:08 PM

Amol Puglia wrote:
> Hello Andre,
> 
> When i posted same message to apache users list they said the apache process is going
high because there is a problem in backend server tomcat and asked me to collect thread dump
and post same in tomcat users list. so i posetd thread dump sanpshot in tomcat users list.
It seems tomcat is not releasing connection and this is the reason apache proces count is
goind high. I would like to know why tomcat is not releasing connection and wanted to figure
out whether ther is problem in tomcat or application deployed on tomcat. I have taken therad
dump and trying to analyze it but unable to understand what is causing problem by lloking
at threads. Let em know if i can attache thread dump here so that experts from the forums
can help me to understand thread dump.
>  
Allright, so now we may start getting an idea of the problem.

Maybe the first things to do :

1) do not post files as attachments in this list. Mostly, the server strips them.
Instead, if we ask you for some text information, do a copy-and-paste, and paste the content
directly in your email to the list.
Also, when you copy contents of files here, please remove the comments, and any private information
such as internet hostnames or passwords.

2) tell us what the platform is (O.S.)
3) if you can, also tell what exact version of the mod_jk moduile you are using. You should
be able to find this in the message that Apache httpd prints in its error log when it starts.
3) in the configuration of Apache httpd, there must be configuration lines starting with "Jk......". 
Copy them here.
4) copy here the full content of the "workers.properties" file (comments removed)
5) in the Tomcat conf/server.xml file, there is a <Connector> element with a protocol=AJP.
Copy this <Connector> element here.
6) if the platform is Unix/Linux, execute the following command and copy the result here :
apache2ctl -V
7) if the platform is Unix/Linux, go to the "bin" directory of Tomcat, execute the command
"version.sh" and copy the result here.

With the above, we will get a much better idea of your configuration, and of what to ask next.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message