Re: R: Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA
On 7 Jun 2010, at 01:24, ago...@libero.it ago...@libero.it wrote: HI for right knowledge I am able, now, to reproduce the socket error that occur. In my lan i have a proxy server (192.168.0.254) so on server win2003 on which i have tomcat5.5.28 (IP: 192..168.0.100) if i don't use in IE proxy configuration all it's ok but if i configure proxy server and port : if i don't specify a server IP(tomcat server) as exception (i.e example 192.168.0.100) i have the error on socket , meanwhile if i specy this IP i don't have a error. So the only clients that are seeing this problem are ones on your internal network? p Now how can i configure Tomcat so that it is insensible to proxy configuration on IE namely tomcat don't have a error on socket if i have or don't have proxy configuration? I already use Remote Address Filter on server.xml but this isn't useful. Best regards Agostino Messaggio originale Da: p...@pidster.com Data: 05/06/2010 22.06 A: Tomcat Users Listusers@tomcat.apache.org Ogg: Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA On 05/06/2010 20:56, ago...@libero.it wrote: Thanks for replay. I'm sorry I have missed e-mail regard server .xml with romment removed. so I attached this file. regard Context path= docBase=SIT// i think that a mistake the correct form is in the file. SIT is name of my application. I don't able to match timestamp of error whith a request because i don't know how to trace all request in tomcat conaitner. How can do it? Configure an access log. http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html p I have essentially only catalina_log (with error) and standard_out_log (in which i have application SIT stdout message). Best regards Agostino Messaggio originale Da: p...@pidster.com Data: 05/06/2010 21.26 A: Tomcat Users Listusers@tomcat.apache.org Ogg: Re: R: Re: R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA On 05/06/2010 14:41, ago...@libero.it wrote: Thanks The question started in http://mail-archives.apache.org/mod_mbox/tomcat-users/201005. mbox/thread? 3 on same thread. Now i have reduce the number of user (about 50 user simultanely) on a win2003 ED quad processor with 8GB bram (I have tomcat 5.5.28, jdk. 1.6.16, IIS (with certificate instaled) on port 80 that redirect request from port 80 to 8080 tomcat connector server. Besides https request are directly managed from second connector, on port 443 of tomcat.) So the error referred, sometime occours. In particular i have noted that this error rise when a lot user make login in the application ( in a few second). Probably this may be depend from a lot tcp/ip connection, but, this using netstat -na not appear. May be i must increase the number on maxTcpConnection on win2003 server and/or reduce tcpDelay. Please give me a help to resolve the problem. What tool i can use for investigate who cause socket close. The part of default server.xml of tomcat that i have change(2 connector configuration an docbase) is : I guess you missed the bit about comments removed. Why not backup that file, and then create a server.xml with all of the comments removed? ... !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=8080maxHttpHeaderSize=8192 maxThreads=350 minSpareThreads=50 maxSpareThreads= 100 enableLookups=false redirectPort=443 acceptCount= 100 connectionTimeout=2 disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to 0 -- !-- Note : To use gzip compression you could set the following properties : compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml -- !-- Define a SSL HTTP/1.1 Connector on port 8443 -- !-- Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads= 75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS / -- Connector port=443 maxHttpHeaderSize=10240 maxThreads=150 minSpareThreads=25 maxSpareThreads= 100 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=C:\CertificatiHTTPS\aaa.pfx keystorePass= keystoreType=PKCS12 / !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=443 protocol=AJP/1. 3 / !-- Define a Proxied HTTP/1.1
R: Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA
HI for right knowledge I am able, now, to reproduce the socket error that occur. In my lan i have a proxy server (192.168.0.254) so on server win2003 on which i have tomcat5.5.28 (IP: 192..168.0.100) if i don't use in IE proxy configuration all it's ok but if i configure proxy server and port : if i don't specify a server IP(tomcat server) as exception (i.e example 192.168.0.100) i have the error on socket , meanwhile if i specy this IP i don't have a error. Now how can i configure Tomcat so that it is insensible to proxy configuration on IE namely tomcat don't have a error on socket if i have or don't have proxy configuration? I already use Remote Address Filter on server.xml but this isn't useful. Best regards Agostino Messaggio originale Da: p...@pidster.com Data: 05/06/2010 22.06 A: Tomcat Users Listusers@tomcat.apache.org Ogg: Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA On 05/06/2010 20:56, ago...@libero.it wrote: Thanks for replay. I'm sorry I have missed e-mail regard server .xml with romment removed. so I attached this file. regard Context path= docBase=SIT// i think that a mistake the correct form is in the file. SIT is name of my application. I don't able to match timestamp of error whith a request because i don't know how to trace all request in tomcat conaitner. How can do it? Configure an access log. http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html p I have essentially only catalina_log (with error) and standard_out_log (in which i have application SIT stdout message). Best regards Agostino Messaggio originale Da: p...@pidster.com Data: 05/06/2010 21.26 A: Tomcat Users Listusers@tomcat.apache.org Ogg: Re: R: Re: R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA On 05/06/2010 14:41, ago...@libero.it wrote: Thanks The question started in http://mail-archives.apache.org/mod_mbox/tomcat-users/201005. mbox/thread? 3 on same thread. Now i have reduce the number of user (about 50 user simultanely) on a win2003 ED quad processor with 8GB bram (I have tomcat 5.5.28, jdk. 1.6.16, IIS (with certificate instaled) on port 80 that redirect request from port 80 to 8080 tomcat connector server. Besides https request are directly managed from second connector, on port 443 of tomcat.) So the error referred, sometime occours. In particular i have noted that this error rise when a lot user make login in the application ( in a few second). Probably this may be depend from a lot tcp/ip connection, but, this using netstat -na not appear. May be i must increase the number on maxTcpConnection on win2003 server and/or reduce tcpDelay. Please give me a help to resolve the problem. What tool i can use for investigate who cause socket close. The part of default server.xml of tomcat that i have change(2 connector configuration an docbase) is : I guess you missed the bit about comments removed. Why not backup that file, and then create a server.xml with all of the comments removed? ... !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=8080maxHttpHeaderSize=8192 maxThreads=350 minSpareThreads=50 maxSpareThreads= 100 enableLookups=false redirectPort=443 acceptCount= 100 connectionTimeout=2 disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to 0 -- !-- Note : To use gzip compression you could set the following properties : compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml -- !-- Define a SSL HTTP/1.1 Connector on port 8443 -- !-- Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads= 75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS / -- Connector port=443 maxHttpHeaderSize=10240 maxThreads=150 minSpareThreads=25 maxSpareThreads= 100 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=C:\CertificatiHTTPS\aaa.pfx keystorePass= keystoreType=PKCS12 / !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=443 protocol=AJP/1. 3 / !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy
R: Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA
Yes i have one application SIT under C:\tomcat5\webapps\SIT In the same dir i have olso a rar (not war) file SIT.rar that is a rar compressed file of SIT. Only file log that i have other tomcat log is standard IIS log. How i can improve verbosity of tomcat so i can match timestamp of error on other relevant information ? bye. Agostino Messaggio originale Da: p...@pidster.com Data: 05/06/2010 22.00 A: Tomcat Users Listusers@tomcat.apache.org Ogg: Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA On 05/06/2010 20:56, ago...@libero.it wrote: Thanks for replay. I'm sorry I have missed e-mail regard server .xml with romment removed. so I attached this file. regard Context path= docBase=SIT// i think that a mistake the correct form is in the file. SIT is name of my application. So in the file you attached, you have: Context path= docBase=/SIT / Is the SIT application at: path/to/tomcat/webapps/SIT or somewhere else? p I don't able to match timestamp of error whith a request because i don't know how to trace all request in tomcat conaitner. How can do it? I have essentially only catalina_log (with error) and standard_out_log (in which i have application SIT stdout message). Best regards Agostino Messaggio originale Da: p...@pidster.com Data: 05/06/2010 21.26 A: Tomcat Users Listusers@tomcat.apache.org Ogg: Re: R: Re: R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA On 05/06/2010 14:41, ago...@libero.it wrote: Thanks The question started in http://mail-archives.apache.org/mod_mbox/tomcat-users/201005. mbox/thread? 3 on same thread. Now i have reduce the number of user (about 50 user simultanely) on a win2003 ED quad processor with 8GB bram (I have tomcat 5.5.28, jdk. 1.6.16, IIS (with certificate instaled) on port 80 that redirect request from port 80 to 8080 tomcat connector server. Besides https request are directly managed from second connector, on port 443 of tomcat.) So the error referred, sometime occours. In particular i have noted that this error rise when a lot user make login in the application ( in a few second). Probably this may be depend from a lot tcp/ip connection, but, this using netstat -na not appear. May be i must increase the number on maxTcpConnection on win2003 server and/or reduce tcpDelay. Please give me a help to resolve the problem. What tool i can use for investigate who cause socket close. The part of default server.xml of tomcat that i have change(2 connector configuration an docbase) is : I guess you missed the bit about comments removed. Why not backup that file, and then create a server.xml with all of the comments removed? ... !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=8080maxHttpHeaderSize=8192 maxThreads=350 minSpareThreads=50 maxSpareThreads= 100 enableLookups=false redirectPort=443 acceptCount= 100 connectionTimeout=2 disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to 0 -- !-- Note : To use gzip compression you could set the following properties : compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml -- !-- Define a SSL HTTP/1.1 Connector on port 8443 -- !-- Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads= 75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS / -- Connector port=443 maxHttpHeaderSize=10240 maxThreads=150 minSpareThreads=25 maxSpareThreads= 100 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=C:\CertificatiHTTPS\aaa.pfx keystorePass= keystoreType=PKCS12 / !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=443 protocol=AJP/1. 3 / !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- !-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. -- Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false
R: Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA
Sorry i have never used a Valve Component i will use this component in production enviroment. so i don't want have a trouble. Can you give me a little example of configuration of Valve Component fom my (unique) application SIT under C:\tomcat5\webapps\SIT thanks a lot fot suggest. Agostino Messaggio originale Da: p...@pidster.com Data: 05/06/2010 22.06 A: Tomcat Users Listusers@tomcat.apache.org Ogg: Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA On 05/06/2010 20:56, ago...@libero.it wrote: Thanks for replay. I'm sorry I have missed e-mail regard server .xml with romment removed. so I attached this file. regard Context path= docBase=SIT// i think that a mistake the correct form is in the file. SIT is name of my application. I don't able to match timestamp of error whith a request because i don't know how to trace all request in tomcat conaitner. How can do it? Configure an access log. http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html p I have essentially only catalina_log (with error) and standard_out_log (in which i have application SIT stdout message). Best regards Agostino Messaggio originale Da: p...@pidster.com Data: 05/06/2010 21.26 A: Tomcat Users Listusers@tomcat.apache.org Ogg: Re: R: Re: R: RE: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA On 05/06/2010 14:41, ago...@libero.it wrote: Thanks The question started in http://mail-archives.apache.org/mod_mbox/tomcat-users/201005. mbox/thread? 3 on same thread. Now i have reduce the number of user (about 50 user simultanely) on a win2003 ED quad processor with 8GB bram (I have tomcat 5.5.28, jdk. 1.6.16, IIS (with certificate instaled) on port 80 that redirect request from port 80 to 8080 tomcat connector server. Besides https request are directly managed from second connector, on port 443 of tomcat.) So the error referred, sometime occours. In particular i have noted that this error rise when a lot user make login in the application ( in a few second). Probably this may be depend from a lot tcp/ip connection, but, this using netstat -na not appear. May be i must increase the number on maxTcpConnection on win2003 server and/or reduce tcpDelay. Please give me a help to resolve the problem. What tool i can use for investigate who cause socket close. The part of default server.xml of tomcat that i have change(2 connector configuration an docbase) is : I guess you missed the bit about comments removed. Why not backup that file, and then create a server.xml with all of the comments removed? ... !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=8080maxHttpHeaderSize=8192 maxThreads=350 minSpareThreads=50 maxSpareThreads= 100 enableLookups=false redirectPort=443 acceptCount= 100 connectionTimeout=2 disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to 0 -- !-- Note : To use gzip compression you could set the following properties : compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml -- !-- Define a SSL HTTP/1.1 Connector on port 8443 -- !-- Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads= 75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS / -- Connector port=443 maxHttpHeaderSize=10240 maxThreads=150 minSpareThreads=25 maxSpareThreads= 100 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=C:\CertificatiHTTPS\aaa.pfx keystorePass= keystoreType=PKCS12 / !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=443 protocol=AJP/1. 3 / !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- !-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. -- Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=SIT// Is the above accurate, or is the extra slash after SIT an error
Re: R: Re: R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA
ago...@libero.it wrote: Sorry i have never used a Valve Component i will use this component in production enviroment. so i don't want have a trouble. Can you give me a little example of configuration of Valve Component fom my (unique) application SIT under C:\tomcat5\webapps\SIT Then read the documentation page that pid already pointed you to. http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html I think it should already be in your server.xml, just commented out, like this : !-- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ -- Just remove the comment signs around it. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org