我正在使用spring dbcp基本数据源连接池。我最近将我的mysql版本从5.6.11社区升级到5.6.39企业。帖子,我面临的问题,如应用程序挂出,我的所有线程都进入等待状态,它只会在野外重启后工作正常。如果我没有重启我的野外四天,应用程序不起作用。我按照以下方式为该过程进行了线程转储。请帮忙。
Attach Listener" #35402 daemon prio=9 os_prio=0 tid=0x00007ff884010800 nid=0x95d8 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None
"default task-768" #1382 prio=5 os_prio=0 tid=0x00007ff63c025800 nid=0xa930 waiting on condition [0x00007ff2e14d7000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000005c08c7fc8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None
"default task-767" #1381 prio=5 os_prio=0 tid=0x00007ff3dc00e800 nid=0xa92f waiting on condition [0x00007ff2e15d8000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000005c08c7fc8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
Parameters:
<property name="initialSize" value="5" />
<property name="minIdle" value="5" />
<property name="minEvictableIdleTimeMillis" value="5000" />
<property name="timeBetweenEvictionRunsMillis" value="60000"/>
<property name="maxIdle" value="10" /> -->
<property name="maxActive" value="100" />