Caused by: java.lang.OutOfMemoryError: unable to create new native thread
OOM了,立马jstack了一把,发现好多下面的线程:
1 2 3 4 5 6 7 8 9 10 11
"pool-63-thread-4" prio=10 tid=0x00007f81601ee800 nid=0x1e79 waiting on condition [0x00007f8145353000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x00000007167b7490> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1043) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1103) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)
ga?>stack java.util.concurrent.Executors defaultThreadFactory Press Ctrl+D to abort. Affect(class-cnt:1 , method-cnt:1) cost in 50 ms. thread_name="Thread-0" thread_id=0x8;is_daemon=false;priority=5; @java.util.concurrent.Executors.defaultThreadFactory(Executors.java:-1) at java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:1198) at java.util.concurrent.Executors.newFixedThreadPool(Executors.java:89) at com.vdian.lishoubo.demo.threadpool.ThreadPoolCreator.createNewPool(ThreadPoolCreator.java:25) at com.vdian.lishoubo.demo.threadpool.ThreadPoolCreator$1.run(ThreadPoolCreator.java:17)