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