Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tomcat 4.0 throws a SocketException (wondering why:p)

0 views
Skip to first unread message

Luis

unread,
Aug 1, 2002, 10:43:55 AM8/1/02
to
Hi'all.

At work we have just deployed Apache 1.3.26 and Tomcat 4.0 to serve
our
corporate sites. We have 1 instance of Tomcat in a solaris box serving
4 Apache instances (in their own solaris boxes serving static stuff).
At some point, we experienced problems because the apache max
processes
were more than the max processors in tomcat. We fixed that by making
Tomcat max processors > Apache max processors * 4 (cuz we have 4
instances:p)
Everything seems fine except that SocketExceptions are being reported
in
the log of my tomcat engine, and I would like to know what's going on.

The exact exception is the following:

2002-08-01 13:58:16 StandardEngine[v1.engine]: Mapping server name
'[server name omited]'
2002-08-01 13:58:16 Ajp13Processor[30000][588] done invoking,
finishing request/response....
2002-08-01 13:58:16 Ajp13Processor[30000][588] finished handling
request.
2002-08-01 13:58:18 Ajp13Processor[30000][538] done invoking,
finishing request/response....
2002-08-01 13:58:18 Ajp13Processor[30000][538] 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:192)
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)


Our configuration is as follows:

Apache 1.3.26 (4 servers in total):
httpd.conf:
MinSpareServers 50
MaxSpareServers 150
StartServers 65
MaxClients 200
workers.properties:
workers.tomcat_home=/usr/local/jakarta/tomcat
workers.java_home=/usr/java
ps=/
#worker.list=ajp12,ajp13
worker.list=ajp13
worker.ajp13.port=30000
worker.ajp13.host=dynserv
worker.ajp13.type=ajp13
worker.ajp13.cachesize=1

Tomcat 4.0:
server xml (Connector and Engine entries only):
<Server port="65006" shutdown="SHUTDOWN" debug="1">
<Service name="v1.service">
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="30000" minProcessors="600" maxProcessors
="2500" acceptCount="10" enableLookups="false" debug="1"/>
<Engine name="v1.engine" defaultHost="default.host" debug="1"
jvmRoute="v1.cluster.1">


I've looked everywhere, but I haven't found this issue documented or
mentioned, just similar ones that I don't see (or know) if they are
applicable to our situation. If anyone out there could give me a hint,
that would be greatly appreciated.

Regards,

Luis.

0 new messages