Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 1165 invoked from network); 25 Feb 2004 22:52:16 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 25 Feb 2004 22:52:16 -0000 Received: (qmail 92494 invoked by uid 500); 25 Feb 2004 22:51:36 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 92472 invoked by uid 500); 25 Feb 2004 22:51:35 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 92450 invoked from network); 25 Feb 2004 22:51:34 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.177) by daedalus.apache.org with SMTP; 25 Feb 2004 22:51:34 -0000 Received: from [212.227.126.208] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1Aw7sT-0003Om-00 for tomcat-user@jakarta.apache.org; Wed, 25 Feb 2004 23:51:41 +0100 Received: from [80.128.30.157] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1Aw7sR-0008DR-00 for tomcat-user@jakarta.apache.org; Wed, 25 Feb 2004 23:51:39 +0100 Message-ID: <403D2698.7040202@cyberspaceroad.com> Date: Wed, 25 Feb 2004 23:50:00 +0100 From: Adam Hardy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031021 X-Accept-Language: de MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Tomcat 4.1.29 CoyoteAdapter Exception References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:7be52423742ce504c1b541fa1f258887 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I had an issue with tomcat 4.1.x (don't remember which - but it was Feb. last year) and sun java 1.4 Tomcat would just hang at random times and require a restart. I downgraded to java 1.3 to solve it. Try another Java - perhaps from IBM. Or check bugzilla. Adam On 02/25/2004 07:39 PM Randall Svancara wrote: > After further investigation, I am just going to chalk this one up as a stability issue with windows XP. The same version of tomcat running with same configuration on linux can sustain well over 10000+++ hits using jmeter while the same configuration on windows barely handles 2000 hits before tomcat fails. > > Anyone know of a stable version of tomcat that works with windows. Do I need to downgrade to 4.0.x or upgrade to 5.0.x versions of tomcat for better stability on windows....or do I need to convince my boss what I have know all along, linux is superior to windows. > > Thanks..... > > Randall > > -----Original Message----- > From: Randall Svancara [mailto:rsvancara@adaweb.net] > Sent: Wednesday, February 25, 2004 8:05 AM > To: Tomcat Users List > Subject: RE: Tomcat 4.1.29 CoyoteAdapter Exception > > > Ok, now I am thinking this error might be caused by Database Connection pooling. I increased Mysql's max connection limit from the default to 500. I hope this enough to satify my hungry application. Also I adjusted the apps xml configuration option "maxActive to a value of 400 which is 100 less than the max. We will see if this works. > > -----Original Message----- > From: Randall Svancara [mailto:rsvancara@adaweb.net] > Sent: Wednesday, February 25, 2004 7:47 AM > To: Tomcat Users List > Subject: RE: Tomcat 4.1.29 CoyoteAdapter Exception > > > Thanks, > > I have had a difficult time reproducing this error on a predictable basis. All I can say is that it happens once per day, and I have temporarily wrote a perl script that checks the service to see if it is working properly, and if not, it shuts down tomcat and restarts it...A bandaid fix at best. > > I will give you a little more background on the webapp I have deployed. It is just a basic webapp with several jsp pages and a couple of servlets. I am using Database Connection Pooling with Mysql Connector J. The problem does not appear to happen on any one particular jsp or servlet, but I will keep digging further to see if it is or not. If I can create a reproducable test case, I will post it here. > > I will keep on researching the problem to see if I can pin point the exact error. Thanks for the advice on using news groups. It is my first experience with them. > > Thanks, > > Randall > > -----Original Message----- > From: Adam Hardy [mailto:ahardy.struts@cyberspaceroad.com] > Sent: Wednesday, February 25, 2004 2:47 AM > To: Tomcat Users List > Subject: Re: Tomcat 4.1.29 CoyoteAdapter Exception > > > Randall, > I've often had issues that cause major problems, and my experience is > that user groups and mailing lists are normally unable to help without > there being an easily reproducible error. > > For instance, are you able to nail it down to a particular page or > servlet? Does it happen regularly or at random? Can you make a test case? > > Sorry I can't be any help, but good luck finding it. > > Adam > > On 02/25/2004 12:03 AM Randall Svancara wrote: > >>What would cause the coyote connector to return a null pointer >>exception. Every time this happens, mod_jk is unable to communicate >>with tomcat and as a result our web service is unusable. Is this a >>tomcat bug, or a problem with running tomcat on Windows XP..... >> >>Anyway, I have looked through this user group and found some other >>people with this problem on Solaris, but no real answers. >> >>Thanks. >> >> >> >> >>I am running tomcat 4.1.29, apache 2.0.48, with mod_jk configured on >>Windows XP. Occasionally, I will receive the following error: >> >>2004-02-23 15:40:07 CoyoteAdapter Requested cookie session id is >>A02AD09BF242D0D916799B2EBB0FCC92.worker1 2004-02-23 15:40:07 >>CoyoteAdapter An exception or error occurred in the container during >>the request processing java.lang.NullPointerException at >>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164) >> at >>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) >> at >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) >> at >>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) >> at >>org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193) >> at >>org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309) >> at >>org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387) >>at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673) >>at >>org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615) >> at >>org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786) >>at >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666) >> at java.lang.Thread.run(Thread.java:534) >> >> >> >> >> >> >>-----Original Message----- From: Randall Svancara Sent: Tuesday, >>February 24, 2004 11:34 AM To: Tomcat Users List Subject: RE: Tomcat >>4.1.29 CoyoteAdapter Exception >> >> >>Here is my server.xml in full for anyone interested. It is at the >>end of this email. >> >> >> >>-----Original Message----- From: Randall Svancara Sent: Tuesday, >>February 24, 2004 11:14 AM To: Tomcat Users List Subject: RE: Tomcat >>4.1.29 CoyoteAdapter Exception >> >> >>Hmm...I am unable to find anything in google regarding this error. >> >>-----Original Message----- From: Randall Svancara Sent: Tuesday, >>February 24, 2004 8:48 AM To: tomcat-user@jakarta.apache.org Subject: >>Tomcat 4.1.29 CoyoteAdapter Exception >> >> >>Hi, >> >>I am running tomcat 4.1.29, apache 2.0.48, with mod_jk configured on >>Windows XP. Occasionally, I will receive the following error: >> >>2004-02-23 15:40:07 CoyoteAdapter Requested cookie session id is >>A02AD09BF242D0D916799B2EBB0FCC92.worker1 2004-02-23 15:40:07 >>CoyoteAdapter An exception or error occurred in the container during >>the request processing java.lang.NullPointerException at >>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164) >> at >>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) >> at >>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) >> at >>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) >> at >>org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193) >> at >>org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309) >> at >>org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387) >>at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673) >>at >>org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615) >> at >>org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786) >>at >>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666) >> at java.lang.Thread.run(Thread.java:534) >> >>At which point the web service becomes UNAVAILABLE on port 80 through >>apache which forwards the requests via mod_jk to the tomcat 4.1.29 >>servlet engine. I am including some snippets from my server.xml >>below for the coyote connector. >> >>>port="8019" minProcessors="100" maxProcessors="600" >>enableLookups="false" redirectPort="8443" acceptCount="10" debug="10" >>connectionTimeout="60000" useURIValidationHack="false" >>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> >> >> >>I have also configured apache with 600 max threads, see snippet >>below. >> >># WinNT MPM # ThreadsPerChild: constant number of worker threads in >>the server process # MaxRequestsPerChild: maximum number of requests >>a server process serves ThreadsPerChild 600 >>MaxRequestsPerChild 0 >> >>If someone has any idea what I have misconfigured or if you need more >>information, let me know. I am desperate at this point to find the >>root of this problem that has been plaguing our website since its >>release January. >> >>Thank you, >> >>Randall Svancara >> >>--------------------------------------------------------------------- >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >> >> >>--------------------------------------------------------------------- >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >> >> >> >> >> >> >> >> >> >> >>>className="org.apache.catalina.mbeans.ServerLifecycleListener" >>debug="0"/> >className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" >> debug="0"/> >> >> >> >> >name="simpleValue" type="java.lang.Integer" value="30"/> >> >> >name="UserDatabase" auth="Container" >>type="org.apache.catalina.UserDatabase" description="User database >>that can be updated and saved"> >name="UserDatabase"> factory >>org.apache.catalina.users.MemoryUserDatabaseFactory >> pathname >>conf/tomcat-users.xml >> >> >> >> >> >> >name="Tomcat-Standalone"> >> >> >> >> >>>port="8080" minProcessors="5" maxProcessors="75" >>enableLookups="true" redirectPort="8443" acceptCount="100" debug="0" >>connectionTimeout="20000" useURIValidationHack="false" >>disableUploadTimeout="true" /> >> >> >> >> >> >> >>>port="8019" minProcessors="100" maxProcessors="600" >>enableLookups="false" redirectPort="8443" acceptCount="10" debug="99" >>connectionTimeout="60000" useURIValidationHack="false" >>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>>jvmRoute="worker1"> >> >> >> >> >className="org.apache.catalina.logger.FileLogger" >>prefix="catalina_log." suffix=".txt" timestamp="true"/> >> >> >> >> >className="org.apache.catalina.realm.UserDatabaseRealm" debug="0" >>resourceName="UserDatabase"/> >> >> >> >> >> >> >> >> >> >> >> >> >debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true"> >> >> >> >> >> >> >className="org.apache.catalina.logger.FileLogger" directory="logs" >>prefix="localhost_log." suffix=".txt" timestamp="true"/> >> >> >> >> >> >> >docBase="examples" debug="0" reloadable="true" crossContext="true"> >>>prefix="localhost_examples_log." suffix=".txt" timestamp="true"/> >>>home="com.wombat.empl.EmployeeRecordHome" >>remote="com.wombat.empl.EmployeeRecord"/> >> >> >> >> >> >>>value="15"/> >value="context.param.value" override="false"/> >name="jdbc/EmployeeAppDb" auth="SERVLET" >>type="javax.sql.DataSource"/> >name="jdbc/EmployeeAppDb"> >>usersa >>password >>driverClassName >>org.hsql.jdbcDriver >>driverName >>jdbc:HypersonicSQL:database >> >type="javax.mail.Session"/> >> mail.smtp.host localhost >> >name="linkToGlobalResource" global="simpleValue" >>type="java.lang.Integer"/> >> >> >> >> >> >> >> >> >> >> >> >> > > > -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org