Operating System - HP-UX
1830746 Members
2234 Online
110015 Solutions
New Discussion

HPWS Tomcat won't stay running.

 
Allen Byington_1
Occasional Contributor

HPWS Tomcat won't stay running.

Has anyone seen the tomcat provided with the hpws stop replying to requests? The server that I run just stops responding and has to be killed and restarted. The shutdown command doesn't even work. I'm running HP-UX 11/64 bit with Java 1.4. Any help would be appreciated.
The possibilities of disaster boggle the mind!
2 REPLIES 2

Re: HPWS Tomcat won't stay running.

Have not used the actual HPWS version as I need to use 4.1.18 but I would imagine that one of two things is happening

1) your kernel params are not set properly and your JVM is throwing a Hotspot exception. We got this alot until we set our kernel similar to

maxusers 512
nproc 2068
max_thread_proc 3000
nkthread 6000
nfile 30000
maxfiles 2048
maxfiles_lim 2048
ncallout 6000
maxdsiz 2063835136

maxdsiz was the most important.


2) your need to set the heap properly for your JVM when you start tomcat. my start script looks like

if [ -z "$CATALINA_OPTS" ] ; then
CATALINA_OPTS="-Dreporthome=$REPORT_HOME -XdoCloseWithReadPending -Xms256m -Xmn100m -Xmx256m -Xverbosegc:file=/home/webadmin/tomc
at/logs/gc.out"
export CATALINA_OPTS
echo start: CATALINA_OPTS set to $CATALINA_OPTS
fi

the XdoCloseWithReadPending is important becuase the mod_jk and http listening threads do not exit correctly and your JVM will not stop following a shutdown.

Jeff

Re: HPWS Tomcat won't stay running.

Have not used the actual HPWS version as I need to use 4.1.18 but I would imagine that one of two things is happening

1) your kernel params are not set properly and your JVM is throwing a Hotspot exception. We got this alot until we set our kernel similar to

maxusers 512
nproc 2068
max_thread_proc 3000
nkthread 6000
nfile 30000
maxfiles 2048
maxfiles_lim 2048
ncallout 6000
maxdsiz 2063835136

maxdsiz was the most important.


2) your need to set the heap properly for your JVM when you start tomcat. my start script looks like

if [ -z "$CATALINA_OPTS" ] ; then
CATALINA_OPTS="-Dreporthome=$REPORT_HOME -XdoCloseWithReadPending -Xms256m -Xmn100m -Xmx256m -Xverbosegc:file=/home/webadmin/tomc
at/logs/gc.out"
export CATALINA_OPTS
echo start: CATALINA_OPTS set to $CATALINA_OPTS
fi

the XdoCloseWithReadPending is important becuase the mod_jk and http listening threads do not exit correctly and your JVM will not stop following a shutdown.

Jeff