I do have the same problem, number of ajp13 processor spikes up with out valid
load. seems most of the processor are just idle or hung
Darin Kuntze wrote:
> Background:
> Website has been up and running with this particular configuration for
> over a year with minimal problems. A couple of weeks ago we started
> getting some "internal server errors" in apache. In viewing the logs I
> was noticing a several "java.net.SocketException: Socket closed" in the
> catalina log file. It seems to reject the connection to apache, but
> still starts another Ajp13Processor. Eventually the server has so many
> java processes running that no content is served. Most of the processes
> that are spawned are doing nothing. Seems to me that GC should take care
> of them.
>
> Some of the log files indicate that there are servlet errors when the
> jsp is compiled. This is odd, since the page has worked fine in the
> past. I can send along the page source if need be.
>
> Below I have included some (hopefully) helpful info to diagnose this
> bugger.
>
> Setup:
> Tomcat 4.0.2
> JDK 1.4.0
> Apache 1.3.26
> Mod_jk 1.1.0
> Ajp13
>
> Current Server.xml:
>
> <Server port="8005" shutdown="SHUTDOWN" debug="0">
> <Service name="Tomcat-Standalone">
> <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
> port="8009" minProcessors="10" maxProcessors="1024"
> acceptCount="10" debug="0"/>
>
> <Engine name="Standalone" defaultHost="localhost" debug="0">
> <Logger className="org.apache.catalina.logger.FileLogger"
> prefix="catalina_log." suffix=".txt"
> timestamp="true"/>
>
> <Realm className="org.apache.catalina.realm.MemoryRealm" />
> <Host name="localhost" debug="0" appBase="webapps"
> unpackWARs="true">
> <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="logs" prefix="localhost_access_log."
> suffix=".txt"
> pattern="common"/>
> <Logger className="org.apache.catalina.logger.FileLogger"
> directory="logs" prefix="localhost_log." suffix=".txt"
> timestamp="true"/>
> <Context path="" docBase="/usr/local/apache/htdocs" debug="0"
> reloadable="true" />
> </Host>
> <Host name="qa.comfedbank.com" debug="0" appBase="webapps"
> unpackWARs="true">
> <Context path="" docBase="/usr/local/apache/qa_site"
> debug="0" reloadable="true" />
> </Host>
> </Engine>
>
> </Service>
> <Service name="Tomcat-Apache">
>
> <Connector
> className="org.apache.catalina.connector.warp.WarpConnector"
> port="8008" minProcessors="10" maxProcessors="1024"
> enableLookups="true" appBase="webapps"
> acceptCount="10" debug="0"/>
>
> <Engine className="org.apache.catalina.connector.warp.WarpEngine"
> name="Apache" debug="0">
>
> <Logger className="org.apache.catalina.logger.FileLogger"
> prefix="apache_log." suffix=".txt"
> timestamp="true"/>
> <Realm className="org.apache.catalina.realm.MemoryRealm" />
> </Engine>
> </Service>
> </Server>
>
> Snippet from catalina log:
>
> ....
> 2002-12-04 09:43:15 Ajp13Processor[8009][35] Starting background thread
> 2002-12-04 09:43:20 Ajp13Processor[8009][3] process: invoke
> java.net.SocketException: Socket closed
> at java.net.SocketOutputStream.socketWrite0(Native Method)
> at
> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> at
> java.net.SocketOutputStream.write(SocketOutputStream.java:126)
> at org.apache.ajp.Ajp13.send(Ajp13.java:525)
> at org.apache.ajp.RequestHandler.finish(RequestHandler.java:496)
> at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
> at
> org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:1
> 92)
> at
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:435)
> at
> org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
> at java.lang.Thread.run(Thread.java:536)
> ....
>
> Snippet from site log (the interesting stuff):
>
> ....
> 2002-12-04 08:30:05 StandardWrapperValve[jsp]: Servlet.service() for
> servlet jsp threw exception
> org.apache.jasper.JasperException: Unable to compile class for JSPNote:
> sun.tools.javac.Main has been deprecated.
>
> An error occurred between lines: 293 and 374 in the jsp file: /index.jsp
>
> Generated servlet error:
> /usr/local/jakarta-tomcat-4.0.2/work/localhost/_/index$jsp.java:251:
> String not terminated at end of input.
> out.write("</td>\r\n<!--- END SMALL BANNER
> CELL --->\r\n</tr>\r\n<tr>\r\n etc...
> ....
>
> Keeps giving errors about missing ; and } characters.
>
> It also has a ton of entries like the one below:
>
> ....
> /usr/local/jakarta-tomcat-4.0.2/work/localhost/_/index$jsp.java:1:
> Invalid character in input.
> import javax.servlet.http.*;
> ....
>
> 16385 errors, 1 warning
>
> Etc...
>
> ----------------------------
> Darin Kuntze
> Senior Technologist
> The Sacco Group
> http://www.saccogroup.com
> (p)402.392.2222 x120
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
BM
Architect
Praxid Inc
408-941-8306
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>