Previously I was running tomcat with it's default
thread settings (50 max) and I was getting the errors.
I set the value at 60max and everything's running
smooth. I'm using -server version of hotSpot. I'm glad
I got it to work, but I still think there's a bug in
the VM, or possibly Tomcat.


--- William Au <[EMAIL PROTECTED]> wrote:
> I saw exactly the same thing when I ran a load test
> on
> tomcat 3.2.1 wth jdk 1.2.2_07.  What's your Tomcat
> max_thread set to?  I changed it to 10 and the
> problem
> went away.  But I am not happy with the performance
> with only 10 threads.
> 
> Bill
> 
> Bill Graham wrote:
> 
> > I'm just getting started with Tomcat and the first
> > thing I'm doing
> > is some load testing. I'm using VA Linux with
> Tomcat
> > 3.2.1 and the Sun
> > j2re1.3 VM. When hitting Tomcat with 60 threads
> each
> > making 1000 requests,
> > I periodically will get the following excepion on
> my
> > client machines:
> >
> >         java.net.SocketException: Connection reset
> by peer:
> > Connection reset by peer
> >
> > and following excepion on hy server machine:
> >
> >         2001-03-16 03:20:24 - ContextManager:
> Error reading
> > request, ignored -     
> java.lang.NullPointerException
> >         at
> >
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
> >         (HttpConnectionHandler.java:191)
> >         at
> >
>
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> >         at
> >
>
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> >         at java.lang.Thread.run(Thread.java:484)
> >
> > Of the 20k requests made, I'll get about 60 errors
> on
> > the first run, which might be
> > exceptable but on subsequest runs They's incread
> up to
> > about 150. By the third or
> > fourth run, some or all of my client machines will
> > hang while waiting for responses.
> > This is not acceptable. I'm about to start diggin
> into
> > the tomcat source but would
> > love it if someone has solved (or knows how to
> soleve)
> > this problem already.
> >
> > anyone?
> >
> > - bill
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get email at your own domain with Yahoo! Mail.
> > http://personal.mail.yahoo.com/
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Reply via email to