View Java thread calls and deadlocks in jstack

Source: Internet
Author: User

Command: jstack-l PID

If there is a deadlock in the Wired path, It is shown as follows:

"Idleremover" daemon PRIO = 10 tid = 0x00007f6b2c148800 nid = 0x11d7 waiting on condition [0x00007f6b222e1000]
Java. Lang. thread. State: timed_waiting (Parking)
At sun. Misc. Unsafe. Park (native method)
-Parking to wait for <0x0000000766888158> (a java. util. Concurrent. locks. abstractqueuedsynchronizer $ conditionobject)
At java. util. Concurrent. locks. locksupport. parknanos (locksupport. Java: 226)
At java. util. Concurrent. locks. abstractqueuedsynchronizer $ conditionobject. Await (abstractqueuedsynchronizer. Java: 2176)
At org. JBoss. JCA. Core. connectionmanager. Pool. idle. idleremover $ idleremoverrunner. Run (idleremover. Java: 261)
At java. util. Concurrent. threadpoolexecutor. runworker (threadpoolexecutor. Java: 1110)
At java. util. Concurrent. threadpoolexecutor $ worker. Run (threadpoolexecutor. Java: 603)
At java. Lang. thread. Run (thread. Java: 722) Locked ownable synchronizers:
-<0x0000000765df4068> (a java. util. Concurrent. threadpoolexecutor $ worker) "Connectionvalidator" daemon PRIO = 10 tid = 0x00007f6b3c06c000 nid = 0x11d6 waiting on condition [0x00007f6b223e2000]
Java. Lang. thread. State: timed_waiting (Parking)
At sun. Misc. Unsafe. Park (native method)
-Parking to wait for <0x0000000766888368> (a java. util. Concurrent. locks. abstractqueuedsynchronizer $ conditionobject)
At java. util. Concurrent. locks. locksupport. parknanos (locksupport. Java: 226)
At java. util. Concurrent. locks. abstractqueuedsynchronizer $ conditionobject. Await (abstractqueuedsynchronizer. Java: 2176)
At org. JBoss. JCA. Core. connectionmanager. Pool. validator. connectionvalidator $ connectionvalidatorrunner. Run (connectionvalidator. Java: 263)
At java. util. Concurrent. threadpoolexecutor. runworker (threadpoolexecutor. Java: 1110)
At java. util. Concurrent. threadpoolexecutor $ worker. Run (threadpoolexecutor. Java: 603)
At java. Lang. thread. Run (thread. Java: 722) Locked ownable synchronizers:

-<0x000000076664a320> (a java. util. Concurrent. threadpoolexecutor $ worker) 

 

After locating, You Can troubleshoot environment resources or services.CodeLogic.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.