dev@glassfish.java.net

Re: High thread count during 3.1 build

From: Joe Di Pol <joe.dipol_at_oracle.com>
Date: Mon, 14 Jun 2010 17:34:44 -0700

I have verified that at r37711 my build peaks at less than 75 threads.
With r37712 the thread count skyrockets when
com.sun.enterprise.configapi.tests.ModulesTest
starts to run.

On the Mac I see the same effect, but the increase is less dramatic
(it peaks at hundreds of threads not thousands) and therefore doesn't
cause an error.

Anybody else building on OpenSolaris/Solaris and seeing this
problem?

Joe

Joe Di Pol wrote:
>
> Late last week I started to have build failures where some of
> the build tests could not allocate threads. Today I can only
> get through an "mvn install" with:
>
> MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=512m -Xss128k"
>
> I'm on OpenSolaris.
>
> According to jconsole my maven java process hits a peak thread
> count of 9,943 with most of the threads looking like this:
>
> "pool-11198-thread-1" daemon prio=3 tid=0x0aa82800 nid=0x2be4 waiting on
> condition [0x5e70f000..0x5e70fc60]
> java.lang.Thread.State: TIMED_WAITING (parking)
> at sun.misc.Unsafe.park(Native Method)
> - parking to wait for <0xc6847018> (a
> java.util.concurrent.SynchronousQueue$TransferStack)
> at
> java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
> at
> java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:424)
>
> at
> java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:323)
>
> at
> java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:874)
> at
> java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:945)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>
> at java.lang.Thread.run(Thread.java:619)
>
> Lots of threads start to appear shortly after:
> Running com.sun.enterprise.configapi.tests.ModulesTest
>
> I'm not sure if something in my environment changed, or if something
> else changed. Is anybody else seeing issues like this?
>
> Thanks,
>
> Joe
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>