tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricky Leung" <ri...@booksense.com>
Subject RE: tomcat,mod_jk & loadbalancing
Date Tue, 10 Dec 2002 00:01:04 GMT
I know the documentation says the socket_timeout is there since 1.2.0, but
when I look at the source code, it seems to only read this configuration
setting with 1.2.1.  You might want to give that a try and also make sure
that you invalidate your sessions when people logout (which helps).  As for
that error, if a user stops the browser from waiting then you will get that
error.  If your site is slow, then you might see more of that then because
users will get inpatient waiting and waiting.


Ricky

> -----Original Message-----
> From: Julian Löffelhardt [mailto:julian@austria.fm]
> Sent: Monday, December 09, 2002 11:18 AM
> To: tomcat-user@jakarta.apache.org
> Subject: tomcat,mod_jk & loadbalancing
>
>
> Hi,
>
> I'm using an Apache <---> 3 Tomcats loadbalancing scenario with
>
> Apache 1.3.26 mod_jk 1.2.0
> 3 x tomcat 4.0.4
>
> The tomcats are configured with:
> Xmx: 512m
> AJP13 Connector allows for 800 connections
>
> Each worker is set up like this and added to an loadbalanced worker
>
> worker.host1.port=8009
> worker.host1.host=host1
> worker.host1.type=ajp13
> worker.host1.lbfactor=10
> worker.host1.socket_timeout=300
>
>
> I keep experiencing the following problems:
> -The threadcount of each tomcat process keeps increasing (never decreases)
> - The memory usage keeps also increasing
> - When examinig the tomcat process with "ps -aux" I see many(>200) threads
> older than 1 day.
>     I  thought that teh socket_timeout would always stop such
> threads after
> 5 minutes
>
> The AJP-Connectior threads keep throwing exceptions like:
>
>
> 2002-12-09 16:58:59 Ajp13Processor[8009][583] 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:495)
>         at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
>         at
> org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.
> java:196)
>         at
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
>         at
> org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
>         at java.lang.Thread.run(Thread.java:536)
>
>
> 2002-12-09 13:09:21 Ajp13Processor[8009][349] process: invoke
> java.lang.IllegalArgumentException: Cookie name path is a reserved token
>         at javax.servlet.http.Cookie.<init>(Cookie.java:185)
>         at
> org.apache.ajp.tomcat4.Ajp13Request.addCookies(Ajp13Request.java:189)
>         at
> org.apache.ajp.tomcat4.Ajp13Request.setAjpRequest(Ajp13Request.java:148)
>         at
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:446)
>         at
> org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
>         at java.lang.Thread.run(Thread.java:536)
>
>
> - When a tomcat instance gets into problems some connections still seem to
> work while others emit:
>
> 2002-12-09 13:32:25 Ajp13Processor[8009][155] process: invoke
> java.lang.OutOfMemoryError
>
> problem is that the mod_jk module (in the apache server) sometimes doesn't
> notive that a tomcat instance has problems and keeps sending
> connectuions to
> this particular instance , thereby freezing the whole cluster.
>
> ----------
>
> Now my question is:
>
> Do you think that upgrading to some other version of  tomcat,
> mod_jk, apache
> ...... would solve some of my problems. Any experience with tomcat
> load-balancing under high -loads (Currently ~1 million pageviews/day).
>
>
> Any help would be appreciated?
>
> llap,
> julian löffelhardt
>
>
>
>
>
>
> -
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message