Do you see errors in your catalina.out when this happens?
I believe that I am having the same problem with IBMJava, tomcat 4.1.27, mod_jk2.0.2 unixSocket connectors and apache 2.0.40...
I'm hoping that setting LD_ASSUME_KERNEL will solve the issue.


My catalina.out has errors as follows:
[Mon Oct 20 23:10:02 2003] (error ) [jk_channel_un.c (422)] channelUn.receive(): error receiving -1 86
Oct 20, 2003 11:10:02 PM org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error 21000
Oct 20, 2003 11:10:02 PM org.apache.jk.common.ChannelUn receive
SEVERE: receive error: 21000


Daniel Gibby

-----Message d'origine-----
De : Zhao Hui [mailto:[EMAIL PROTECTED]
Envoy� : mardi 21 octobre 2003 01:35
� : Tomcat Users List
Objet : Re: tomcat jitters, then hangs - please help

Hi folks,

We encountered the same problem where tomcat on our linux box will
hang
occasionally after several days, and we have yet to find the cause of
the
problem. Looks like this might solve our problem :). Here is our
configuration :

OS : Redhat
Tomcat : 4
JVM : IBM JDK1.4



We use the same, but didn't find how to solve all the bugs. So, with such configuration, you will encounter 3 problems :


IBM Jvm crunching all available memory
Tomcat 4.1.27 is sometimes unable to free some threads (and so you go out of 
maxProcessors
IBM 1.4.1 runs more or less well with the libpthread. You could have tomcat freezing, 
or JITC doing SIG11, or... Well, nothing really clear about that.



I would like to know more about how should we go about configuring the
LD_ASSUME_KERNEL. Please correct me if I am wrong.



setenv LD_ASSUME_KERNEL 2.2.5



I use bash as a shell, and because our final architecture (not finished) will be of several tomcat instances running on several nodes of a linux virtual server, I use a script like that :


#!/bin/bash
#
# Add your own comments
#
# Java related stuff
# We will ask GC to report problems and try to limit memory usage
#
JAVA_HOME=/opt/IBMJava2-141/
JAVA_OPTS="-verbose:gc -Xmx256m -Xms256m"
#
# You can add the LD thing here :
LD_ASSUME_KERNEL=2.2.5
#
# Catalina related stuff :
#
CATALINA_HOME=/usr/tomcat
#
# Catalina base is on an NFS server (note that this require a # modification of bin/catalina.sh to fix the hard coded log path
#
CATALINA_BASE=/usr/tomcat
#
# PID is usefull to get good javacore when stopping Java
# You can the use kill -3 `cat $CATALINA_BASE/logs/pid` to
# have javacore in the CATALINA_BASE directory.
#
CATALINA_PID=$CATALINA_BASE/logs/pid
#
# Never forget to export ALL of it
#
export JAVA_HOME JAVA_OPTS LD_ASSUME_KERNEL CATALINA_HOME CATALINA_BASE CATALINA_PID #
#run the startup script from Tomcat installation
#
/usr/tomcat/bin/startup.sh




and that will do the trick? Does it depends on any kernel version?



This could, even if IBM documentation is not clear about it.





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to