logo       

Re: Jetty 4.2.3 and theads: msg#00099

java.jetty.support

Subject: Re: Jetty 4.2.3 and theads


4.2.3 was a rapid fix of the (embarrassing) multi-thread race in 4.2.2

The CVS version (tagged for 4.2.4rc0) has further simplifications to the thread
model with may help - so you may want to try a nightly build from the
ftp.mortbay.org server.

I'm currently running a test that takes the server to out of THREADS and then
lets
it idle back to min threads repeatedly while the server is running in
optimizeIt.

That should flushout any such problems.

Note that Jetty does not set the memory parameters for the JVM, so if you have
a high
thread utilization you may have to start your JVM with more allowable heap
space.
But then you smaller tests (5&50) should work OK.

If this is a production system, then you may want to consider using 4.1.x,
whose thread
pool is much more mature, tried and tested.

regards


Robert Jaros wrote:> I'm not quite sure but I think something is wrong with
Jetty threading
> engine. I'm using Jetty on Linux and I noticed that when I set in config
> file MinThreads and MaxThreads properties of SocketListener to different
> values (the default values are now 10 and 100 but I also tried 5&255,
> 5&50, 50&150 and probably a few different combinations) the server
> throws "java.lang.OutOfMemoryError: unable to create new native thread"
> and everything dies after some time of work (from a few hours to one
> day).
> But when I set MinThreads and MaxThread to equals values - 50 (which as
> I suppose disables Jetty's threading management ?) the server runs
> stable for a long time (although it gave me LOW ON THREADS:
> SocketListener@xxxxxxx:8080 warning during start!)
>
> It's just my observation but maybe someone has similar problems and
> could confirm that.
>
> Robert Jaros
>
>
>
>
>
> For the latest information about Jetty, please see http://jetty.mortbay.org
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>



--
Greg Wilkins<gregw@xxxxxxxxxxx> Phone/fax: +44 7092063462
Mort Bay Consulting Australia and UK. http://www.mortbay.com


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/CefplB/TM
---------------------------------------------------------------------~->

For the latest information about Jetty, please see http://jetty.mortbay.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise