RE: Problem....Hangs up

2003-12-26 Thread Zsolt Koppany
If you use Redhat-9 you might need

export LD_ASSUME_KERNEL=2.4.1

before you start tomcat.

Zsolt

 -Original Message-
 From: Chelisant Pavel [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 24, 2003 2:10 PM
 To: [EMAIL PROTECTED]
 Subject: ProblemHangs up


 Good day!
 Ive got Tomcat running as stand-alone web server + Java
 Tomcat configured with SSL connector on port 443.
 Its all ok.. and working properly..
 But after three - four days of working it quits process user
 requests.. and hangs-up..

 ---
 server.xml config file

 !-- Define a SSL Coyote HTTP/1.1 Connector on port 443 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=443
minProcessors=5 maxProcessors=1
enableLookups=false compression=force
connectionLinger=3 connectionTimeout=12
acceptCount=2000 debug=0 scheme=https secure=true
useURIValidationHack=false disableUploadTimeout=false

Factory
 className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
clientAuth=false keystorePass=tomcat
 keystoreFile=/home/tomcat/keystore/.keystore protocol=
 TLS /
 /Connector

 !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=1
enableLookups=false redirectPort=8443
acceptCount=2000 debug=0

 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 --




 Here the log files i got..


 its Linux top ( take notice of memory usage and size )

  11:24:28  up 27 days, 23:05,  1 user,  load average: 0.82, 0.44, 0.17
 1049 processes: 1048 sleeping, 1 running, 0 zombie, 0 stopped
 CPU states:   0.9% user  89.4% system   0.0% nice   0.0% iowait
 9.5% idle
 Mem:   516724k av,  511824k used,4900k free,   0k shrd,
 31640k buff
298968k active, 193000k inactive
 Swap: 1044216k av,  487764k used,  556452k free
  9448k cached


   PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
  10604 root  17   0  2392 2392   888 R90.2  0.4   5:22   0 top
  7757 root   9   0  558M 433M  352M S 0.0 85.8   3:30   0 java

 here netstat -a
 

 tcp0  0 update.registru.m:https 192.168.150.249:59726
   TIMA_WAIT
 . thousands of unclosed connections
 tcp0  0 update.registru.m:https 192.168.150.249:59780
   TIME_WAIT

 Why this connections are still open? But in that period i havent
 got users used my server...


  ---here
 logs--



   11:28:19  up 27 days, 23:09,  1 user,  load average: 0.89, 0.69, 0.33
  File: localhos~-23.txt  Col 0  21726 bytes
  0%
  2003-12-23 15:11:08 ApplicationDispatcher[] Servlet.service()
 for servlet jsp threw exception
  org.apache.jasper.JasperException: Connection has been shutdown:
 javax.net.ssl.SSLException: java.net.SocketExce
  ption: Broken pipe
  at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
 per.java:248)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationD
 ispatcher.java:684)
  at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(Applicati
 onDispatcher.java:575)
  at
 org.apache.catalina.core.ApplicationDispatcher.include(Application
 Dispatcher.java:498)
  at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibr
 ary.java:822)
  at org.apache.jsp.index_jsp._jspService(index_jsp.java:95)
  at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
 per.java:204)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
 pplicationFilterChain.java:247)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
 onFilterChain.java:193)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
 erValve.java:260)
  at
 

Re: Problem....Hangs up

2003-12-26 Thread Remy Maucherat
Chelisant Pavel wrote:
Good day!
Ive got Tomcat running as stand-alone web server + Java
Tomcat configured with SSL connector on port 443.
Its all ok.. and working properly..
But after three - four days of working it quits process user requests.. and hangs-up..
Good. You included everything that is not essential information that is: 
which OS you're using (what Linux ?), which Tomcat release, and a thread 
dump (since Tomcat is hanging).

There has been a SSL bug similar to what you experience which has been 
fixed (in 4.1.24).

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem....Hangs up

2003-12-26 Thread Remy Maucherat
Chelisant Pavel wrote:

Hello Remy,

Friday, December 26, 2003, 11:38:15 AM, you wrote:

RM Chelisant Pavel wrote:

Good day!
Ive got Tomcat running as stand-alone web server + Java
Tomcat configured with SSL connector on port 443.
Its all ok.. and working properly..
But after three - four days of working it quits process user requests.. and hangs-up..


RM Good. You included everything that is not essential information that is:
RM which OS you're using (what Linux ?), which Tomcat release, and a thread
RM dump (since Tomcat is hanging).
RM There has been a SSL bug similar to what you experience which has been
RM fixed (in 4.1.24).
Well ive got RedHat 9 + kernel 2.4.21
There are stability issues on RH 9: use LD_ASSUME_KERNEL=2.4.1 in addition.

Tomcat  4.1
pulling_teeth
4.1.what ?
/pulling_teeth
Java 1.4.1
--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem....Hangs up

2003-12-26 Thread Remy Maucherat
Chelisant Pavel wrote:
RM pulling_teeth
RM 4.1.what ?
RM /pulling_teeth

Sorry a made a mistake
Tomcat 4.0 (release/v4.0-b7/)
Your stack traces indiate you're using Tomcat 4.1.x, definitely not 4.0 
b7. I don't know which release exactly though.
As I said, you need TC 4.1.x = 4.1.24 to have no problems with SSL (and 
LD_ASSUME_KERNEL can't hurt either).

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]