dev@grizzly.java.net

Re: thread block

From: gustav trede <gustav.trede_at_gmail.com>
Date: Thu, 12 Nov 2009 17:54:08 +0100

2009/11/12 rama.rama_at_tiscali.it <rama.rama_at_tiscali.it>

> Hi all,
>
> i am doing some test with 1.9.18-f gws.
>
>
> I have configured it
> as follow
> maxThread = 24
> jdk 1.6_13
> use of 1 asyncfilter
> use of 1
> grizzllyresadapter
>
>
> basically after a stress test, i have found that
> all the workerTread lock on a common point (forever) and GWS stop to
> serve requests.
>
> This is where the lock happen
>
>
> ----WAITING THREAD
> (uin this case workerthread(2))--------
> com.sun.grizzly.util.
> SyncThreadPool$SyncThreadWorker.getTask()
> com.sun.grizzly.util.
> AbstractThreadPool$Worker.doWork()
> com.sun.grizzly.util.
> AbstractThreadPool$Worker.run()
>
> -------owning thread (in this case
> workerthread(95)---
> java.util.Queue.offer(java.lang.Object)
> com.sun.
> grizzly.util.SyncThreadPool.execute(java.lang.Runnable)
> java.util.
> concurrent.ExecutorService.execute(java.lang.Runnable)
> com.sun.grizzly.
> http.TaskBase.execute()
> com.sun.grizzly.arp.DefaultAsyncHandler.handle
> (com.sun.grizzly.http.Task)
> com.sun.grizzly.arp.AsyncProtocolFilter.
> execute(com.sun.grizzly.Context)
> com.sun.grizzly.DefaultProtocolChain.
> executeProtocolFilter(com.sun.grizzly.Context, int)
> com.sun.grizzly.
> DefaultProtocolChain.execute(com.sun.grizzly.Context, int)
> com.sun.
> grizzly.DefaultProtocolChain.execute(com.sun.grizzly.Context)
> com.sun.
> grizzly.http.HttpProtocolChain.execute(com.sun.grizzly.Context)
> com.sun.
> grizzly.ProtocolChainContextTask.doCall()
> com.sun.grizzly.
> SelectionKeyContextTask.call()
> com.sun.grizzly.ContextTask.run()
> java.
> lang.Runnable.run()
> com.sun.grizzly.util.AbstractThreadPool$Worker.
> doWork()
> com.sun.grizzly.util.AbstractThreadPool$Worker.run()
>
>
> that's
> quite strange, right now the thread are locked for 456s :)
>
> some other
> information
> os = win
> n*cpu core = 4
> ram = 4gb heap = 1gb
>
>
>
> any
> suggestion is appreciated :)
>
>
>
>
>
>
> Passa a Tiscali Tutto Incluso Light: telefono + adsl 8 Mb senza limiti a
> soli 9,95 euro al mese fino al 01/04/2010. Gratis la Sim Tiscali Mobile con
> 25 euro di traffico.
>
> L’offerta è valida solo se attivi entro il 12/11/09
>
>
> http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/?WT.mc_id=01fw
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>
>
Does it help to use latest jdk6 and 7 builds ?.
In older jdks, some problems with concurrent datastructures are not fixed.

-- 
regards
 gustav trede