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=A0


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

->mod_jk/1.2.28

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

->LoadModule=A0=A0=A0 jk_module=A0 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 re=
moved)

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

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

worker.list=3Dworker1

worker.worker1.type=3Dajp13

worker.worker1.host=3Dlocalhost

worker.worker1.port=3D20209

worker.worker1.socket_keepalive=3D1

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

-> <!-- Define an AJP 1.3 Connector on port 8009 -->
=A0=A0=A0 <Connector port=3D"20209"
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 enableLookups=3D"false" redirect=
Port=3D"8443" protocol=3D"AJP/1.3" />



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

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


7)=0Aif the platform is Unix/Linux, go to the "bin" directory of Tomcat,=0A=
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=E9 Warnier <aw@ice-sa.com> wrote:

From: Andr=E9 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,
>=20
> When i posted same message to apache users list they said the apache proc=
ess is going high because there is a problem in backend server tomcat and a=
sked me to collect thread dump and post same in tomcat users list. so i pos=
etd thread dump sanpshot in tomcat users list. It seems tomcat is not relea=
sing 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 fi=
gure out whether ther is problem in tomcat or application deployed on tomca=
t. I have taken therad dump and trying to analyze it but unable to understa=
nd what is causing problem by lloking at threads. Let em know if i can atta=
che thread dump here so that experts from the forums can help me to underst=
and thread dump.
>=A0=20
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 u=
sing. You should be able to find this in the message that Apache httpd prin=
ts in its error log when it starts.
3) in the configuration of Apache httpd, there must be configuration lines =
starting with "Jk......".=A0 Copy them here.
4) copy here the full content of the "workers.properties" file (comments re=
moved)
5) in the Tomcat conf/server.xml file, there is a <Connector> element with =
a protocol=3DAJP.
Copy this <Connector> element here.
6) if the platform is Unix/Linux, execute the following command and copy th=
e result here :
apache2ctl -V
7) if the platform is Unix/Linux, go to the "bin" directory of Tomcat, exec=
ute the command "version.sh" and copy the result here.

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



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

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