RE: Socket Exception - Heavy load
Where are you getting your "1000" connection number? maxThreads? Try using maxProcessors="0" for infinite. This value should match The maximum number of processors allowed. This should be set to a value that is greater than or equal to the maximum number of concurrent connections the remote web server can open to Tomcat simultaneously. For example, if the web server is Apache 1.x or 2.x Tomcat's maxProcessors should be set to the value of Apache's maxClients directive. A maxProcessors value of zero (0) signifies that the number of processors is unlimited. If not specified, this atttribute defaults to 20. maxThreads is a configuration option for the Http connector, not the AJP connector. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html Derrick -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 3:16 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Derrick, I tried the default settings and also my settings. I get the same error. I turned the jklog file and saw the below error [Fri Jan 07 15:10:53 2005] [error] ajp_service::jk_ajp_common.c (1673): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=worker1 failed errno = 61. I checked tomcat and it is running. Probably something todo with the number of connections between apache and tomcat. Just for curiosity, how many connections does apache and tomcat have between them? The tomcat server.xml has a setting for a port 8009 of 1000 connections. But for 100 concurrent users doing heavy load is this the correct number of connections? thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:58 PM To: Tomcat Users List Subject: RE: Socket Exception - Heavy load Do you see the problem when # worker.worker1.cachesize=200 # worker.worker1.cache_timeout=60 # worker.worker1.socket_keepalive=1 # worker.worker1.reclycle_timeout=60 # worker.worker1.retries=5 That is, defaults used for all these properties. BTW, you don't need an lbfactor unless this is actually a load balanced worker. Also, what do your JK logs say with debugging turned up around the time of the error? You have to set this in the registry for JK. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:49 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load I am including my workers.properties here # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=200 worker.worker1.cache_timeout=60 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=60 worker.worker1.retries=5 this the server.xml configuration of tomcat thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:43 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load What is your wait_timeout set to? Derrick Koes Senior Software Engineer http://www.skillsoft.com"/> codeauthor2001 [EMAIL PROTECTED] (603) 821-3260 (603) 305-1753 No, try not, do or do not, there is no try. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:38 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember th
RE: Socket Exception - Heavy load
Hi Derrick, I tried the default settings and also my settings. I get the same error. I turned the jklog file and saw the below error [Fri Jan 07 15:10:53 2005] [error] ajp_service::jk_ajp_common.c (1673): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=worker1 failed errno = 61. I checked tomcat and it is running. Probably something todo with the number of connections between apache and tomcat. Just for curiosity, how many connections does apache and tomcat have between them? The tomcat server.xml has a setting for a port 8009 of 1000 connections. But for 100 concurrent users doing heavy load is this the correct number of connections? thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:58 PM To: Tomcat Users List Subject: RE: Socket Exception - Heavy load Do you see the problem when # worker.worker1.cachesize=200 # worker.worker1.cache_timeout=60 # worker.worker1.socket_keepalive=1 # worker.worker1.reclycle_timeout=60 # worker.worker1.retries=5 That is, defaults used for all these properties. BTW, you don't need an lbfactor unless this is actually a load balanced worker. Also, what do your JK logs say with debugging turned up around the time of the error? You have to set this in the registry for JK. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:49 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load I am including my workers.properties here # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=200 worker.worker1.cache_timeout=60 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=60 worker.worker1.retries=5 this the server.xml configuration of tomcat thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:43 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load What is your wait_timeout set to? Derrick Koes Senior Software Engineer http://www.skillsoft.com"/> codeauthor2001 [EMAIL PROTECTED] (603) 821-3260 (603) 305-1753 No, try not, do or do not, there is no try. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:38 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: > Hi All, > > I am doing some performance tests. Under heavy load I get socket > exceptions in my tomcat logs > > SEVERE: Error, processing connection > java.net.SocketException: Software caused connection abort: recv failed > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(Unknown Source) > at java.io.BufferedInputStream.fill(Unknown Source) > at java.io.BufferedInputStream.read1(Unknown Source) > at java.io.BufferedInputStream.read(Unknown Source) >
RE: Socket Exception - Heavy load
maxThreads isn't a valid connector attribute, right? Did you mean maxProcessors? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html The maximum number of processors allowed. This should be set to a value that is greater than or equal to the maximum number of concurrent connections the remote web server can open to Tomcat simultaneously. For example, if the web server is Apache 1.x or 2.x Tomcat's maxProcessors should be set to the value of Apache's maxClients directive. A maxProcessors value of zero (0) signifies that the number of processors is unlimited. If not specified, this atttribute defaults to 20. Try setting to 0 if you have many concurrent active connections. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:58 PM To: Tomcat Users List Subject: RE: Socket Exception - Heavy load Do you see the problem when # worker.worker1.cachesize=200 # worker.worker1.cache_timeout=60 # worker.worker1.socket_keepalive=1 # worker.worker1.reclycle_timeout=60 # worker.worker1.retries=5 That is, defaults used for all these properties. BTW, you don't need an lbfactor unless this is actually a load balanced worker. Also, what do your JK logs say with debugging turned up around the time of the error? You have to set this in the registry for JK. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:49 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load I am including my workers.properties here # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=200 worker.worker1.cache_timeout=60 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=60 worker.worker1.retries=5 this the server.xml configuration of tomcat thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:43 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load What is your wait_timeout set to? Derrick Koes Senior Software Engineer http://www.skillsoft.com"/> codeauthor2001 [EMAIL PROTECTED] (603) 821-3260 (603) 305-1753 No, try not, do or do not, there is no try. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:38 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: > Hi All, > > I am doing some performance tests. Under heavy load I get socket > exceptions in my tomcat logs > > SEVERE: Error, processing connection > java.net.SocketException: Software caused connection abort: recv failed > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(Unknown Source) > at java.io.BufferedInputStream.fill(Unknown Source) > at java.io.BufferedInputStream.read1(Unknown Source) > at java.io.BufferedInputStream.read(Unkn
RE: Socket Exception - Heavy load
Do you see the problem when # worker.worker1.cachesize=200 # worker.worker1.cache_timeout=60 # worker.worker1.socket_keepalive=1 # worker.worker1.reclycle_timeout=60 # worker.worker1.retries=5 That is, defaults used for all these properties. BTW, you don't need an lbfactor unless this is actually a load balanced worker. Also, what do your JK logs say with debugging turned up around the time of the error? You have to set this in the registry for JK. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:49 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load I am including my workers.properties here # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=200 worker.worker1.cache_timeout=60 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=60 worker.worker1.retries=5 this the server.xml configuration of tomcat thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:43 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load What is your wait_timeout set to? Derrick Koes Senior Software Engineer http://www.skillsoft.com"/> codeauthor2001 [EMAIL PROTECTED] (603) 821-3260 (603) 305-1753 No, try not, do or do not, there is no try. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:38 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: > Hi All, > > I am doing some performance tests. Under heavy load I get socket > exceptions in my tomcat logs > > SEVERE: Error, processing connection > java.net.SocketException: Software caused connection abort: recv failed > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(Unknown Source) > at java.io.BufferedInputStream.fill(Unknown Source) > at java.io.BufferedInputStream.read1(Unknown Source) > at java.io.BufferedInputStream.read(Unknown Source) > at > org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) > at > org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) > at > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > 614) > at > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool > java:644) > at java.lang.Thread.run(Unknown Source) > > I guess it has something to do with jk2 and the sockets. It would be > helpful if someone can explain this and why it is happening? > My configuration is > Apache 2.0.52 > Tomcat 5.0.29 > Jk2 - 1.2.8 > > Thanks > shyam > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] &g
RE: Socket Exception - Heavy load
I am including my workers.properties here # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=200 worker.worker1.cache_timeout=60 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=60 worker.worker1.retries=5 this the server.xml configuration of tomcat thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:43 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load What is your wait_timeout set to? Derrick Koes Senior Software Engineer http://www.skillsoft.com"/> codeauthor2001 [EMAIL PROTECTED] (603) 821-3260 (603) 305-1753 No, try not, do or do not, there is no try. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:38 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: > Hi All, > > I am doing some performance tests. Under heavy load I get socket > exceptions in my tomcat logs > > SEVERE: Error, processing connection > java.net.SocketException: Software caused connection abort: recv failed > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(Unknown Source) > at java.io.BufferedInputStream.fill(Unknown Source) > at java.io.BufferedInputStream.read1(Unknown Source) > at java.io.BufferedInputStream.read(Unknown Source) > at > org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) > at > org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) > at > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > 614) > at > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool > java:644) > at java.lang.Thread.run(Unknown Source) > > I guess it has something to do with jk2 and the sockets. It would be > helpful if someone can explain this and why it is happening? > My configuration is > Apache 2.0.52 > Tomcat 5.0.29 > Jk2 - 1.2.8 > > Thanks > shyam > > - > 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] - 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] --
RE: Socket Exception - Heavy load
Hi Derrick, Yeah it the read error. For reasonable amount of load tomcat doesn't complain. But for high loads , tomcat takes almost 400M (max allocated is 512) and as I observe it , there is a GC, and tomcat uses the minimum and during that time all these exceptions occur. I tried playing with the cachesize and cachetimeout values in workers.properties. But no success. And yeah it is jk version. Thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:38 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: > Hi All, > > I am doing some performance tests. Under heavy load I get socket > exceptions in my tomcat logs > > SEVERE: Error, processing connection > java.net.SocketException: Software caused connection abort: recv failed > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(Unknown Source) > at java.io.BufferedInputStream.fill(Unknown Source) > at java.io.BufferedInputStream.read1(Unknown Source) > at java.io.BufferedInputStream.read(Unknown Source) > at > org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) > at > org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) > at > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > 614) > at > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool > java:644) > at java.lang.Thread.run(Unknown Source) > > I guess it has something to do with jk2 and the sockets. It would be > helpful if someone can explain this and why it is happening? > My configuration is > Apache 2.0.52 > Tomcat 5.0.29 > Jk2 - 1.2.8 > > Thanks > shyam > > - > 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] - 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] - 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]
RE: Socket Exception - Heavy load
What is your wait_timeout set to? Derrick Koes Senior Software Engineer http://www.skillsoft.com"/> codeauthor2001 [EMAIL PROTECTED] (603) 821-3260 (603) 305-1753 No, try not, do or do not, there is no try. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:38 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: > Hi All, > > I am doing some performance tests. Under heavy load I get socket > exceptions in my tomcat logs > > SEVERE: Error, processing connection > java.net.SocketException: Software caused connection abort: recv failed > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(Unknown Source) > at java.io.BufferedInputStream.fill(Unknown Source) > at java.io.BufferedInputStream.read1(Unknown Source) > at java.io.BufferedInputStream.read(Unknown Source) > at > org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) > at > org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) > at > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > 614) > at > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool > java:644) > at java.lang.Thread.run(Unknown Source) > > I guess it has something to do with jk2 and the sockets. It would be > helpful if someone can explain this and why it is happening? > My configuration is > Apache 2.0.52 > Tomcat 5.0.29 > Jk2 - 1.2.8 > > Thanks > shyam > > - > 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] - 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] - 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]
RE: Socket Exception - Heavy load
Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: > Hi All, > > I am doing some performance tests. Under heavy load I get socket > exceptions in my tomcat logs > > SEVERE: Error, processing connection > java.net.SocketException: Software caused connection abort: recv failed > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(Unknown Source) > at java.io.BufferedInputStream.fill(Unknown Source) > at java.io.BufferedInputStream.read1(Unknown Source) > at java.io.BufferedInputStream.read(Unknown Source) > at > org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) > at > org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) > at > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > 614) > at > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool > java:644) > at java.lang.Thread.run(Unknown Source) > > I guess it has something to do with jk2 and the sockets. It would be > helpful if someone can explain this and why it is happening? > My configuration is > Apache 2.0.52 > Tomcat 5.0.29 > Jk2 - 1.2.8 > > Thanks > shyam > > - > 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Socket Exception - Heavy load
Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: > Hi All, > > I am doing some performance tests. Under heavy load I get socket > exceptions in my tomcat logs > > SEVERE: Error, processing connection > java.net.SocketException: Software caused connection abort: recv failed > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(Unknown Source) > at java.io.BufferedInputStream.fill(Unknown Source) > at java.io.BufferedInputStream.read1(Unknown Source) > at java.io.BufferedInputStream.read(Unknown Source) > at > org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) > at > org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) > at > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > 614) > at > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool > java:644) > at java.lang.Thread.run(Unknown Source) > > I guess it has something to do with jk2 and the sockets. It would be > helpful if someone can explain this and why it is happening? > My configuration is > Apache 2.0.52 > Tomcat 5.0.29 > Jk2 - 1.2.8 > > Thanks > shyam > > - > 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] - 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]
RE: Socket Exception - Heavy load
Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: > Hi All, > > I am doing some performance tests. Under heavy load I get socket > exceptions in my tomcat logs > > SEVERE: Error, processing connection > java.net.SocketException: Software caused connection abort: recv failed > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(Unknown Source) > at java.io.BufferedInputStream.fill(Unknown Source) > at java.io.BufferedInputStream.read1(Unknown Source) > at java.io.BufferedInputStream.read(Unknown Source) > at > org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) > at > org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) > at > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > 614) > at > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool > java:644) > at java.lang.Thread.run(Unknown Source) > > I guess it has something to do with jk2 and the sockets. It would be > helpful if someone can explain this and why it is happening? > My configuration is > Apache 2.0.52 > Tomcat 5.0.29 > Jk2 - 1.2.8 > > Thanks > shyam > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Socket Exception - Heavy load
Yes I am on windows Thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:12 PM To: Tomcat Users List Subject: RE: Socket Exception - Heavy load Are you on a windows environment? -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 1:41 PM To: 'Tomcat Users List' Subject: Socket Exception - Heavy load Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 614) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool java:644) at java.lang.Thread.run(Unknown Source) I guess it has something to do with jk2 and the sockets. It would be helpful if someone can explain this and why it is happening? My configuration is Apache 2.0.52 Tomcat 5.0.29 Jk2 - 1.2.8 Thanks shyam - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Socket Exception - Heavy load
Are you on a windows environment? -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 1:41 PM To: 'Tomcat Users List' Subject: Socket Exception - Heavy load Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 614) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool java:644) at java.lang.Thread.run(Unknown Source) I guess it has something to do with jk2 and the sockets. It would be helpful if someone can explain this and why it is happening? My configuration is Apache 2.0.52 Tomcat 5.0.29 Jk2 - 1.2.8 Thanks shyam - 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]
Re: Socket Exception - Heavy load
Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 614) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool java:644) at java.lang.Thread.run(Unknown Source) I guess it has something to do with jk2 and the sockets. It would be helpful if someone can explain this and why it is happening? My configuration is Apache 2.0.52 Tomcat 5.0.29 Jk2 - 1.2.8 Thanks shyam - 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]