Had a couple of questions on Tomcat 5.0 behaviour on Linux

1. How would i interpret the "minSpareThreads" attribute in the AJP
connector element in server.xml? The document says that it is the number of
threads that Tomcat initially starts up with and also the minimum number of
idle threads that it has around. I would think this to mean that if i had N
requests to be processed by Tomcat, Tomcat would need to create N+M threads
where M is minSpareThreads. But my tests so far do not show that. Wanted to
confirm my understanding?

2. I have set a connectionTimeout within Tomcat's server.xml. I notice the
following exception in the logs.  We are using this to recycle connections
since the number of Tomcat threads is currently set to be less than
MaxClients in Apache. Is this an expected exception as a result of timing
out the connections?

2006-08-02 00:00:17,581 7427924 ERROR [org.apache.jk.common.HandlerRequest]
(TP-Processor70:) Error decoding request
java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:129)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
        at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:598)
        at
org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:535)
        at
org.apache.jk.common.JkInputStream.receive(JkInputStream.java:247)
        at
org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:500)
        at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
        at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
        at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
        at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:534)
2006-08-02 00:00:17,582 7427925 INFO  [STDOUT] (TP-Processor70:) 12 34 01
38 02 04 00 08 48 54 54 50 2f 31 2e 31  | .4.8....HTTP/1.1
2006-08-02 00:00:17,583 7427926 INFO  [STDOUT] (TP-Processor70:) 00 00 0e
2f 62 69 67 77 65 62 2f 42 69 67 58 4d  | .../bigweb/BigXM
2006-08-02 00:00:17,583 7427926 INFO  [STDOUT] (TP-Processor70:) 4c 00 00
0d 36


Thanks

Ramdas


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to