Java Threads Tracing on Linux

Posted on 2006-03-20
Last Modified: 2010-03-31
Hi all,

I am running multi-threaded java program on linux, and after running for a while it is killed by the OS or hangs.

when I display the processes I got so many processes with the command line I used to run the program "java Server". I can see that one process that caused the crash is in "R" state for (Runnable in linux words).

is there a way to display the processes and there corresponding threads by class name, through Linux pr JVM???

Question by:louai
    LVL 86

    Accepted Solution

    >>Is there a way to display the processes and there corresponding threads by class name, through Linux pr JVM???

    No. The best way is to implement a proper logging strategy, followed by running in a debugger
    LVL 30

    Assisted Solution

    Are you using many threads in the program? Is it possible for you to use a thread-pool?
    LVL 24

    Assisted Solution

    You could make use of ECLIPSE and put breakpoints in multiple critical zones of threads,
    but you just can't monitor more than one thread at a time.

    LVL 86

    Expert Comment

    LVL 30

    Expert Comment

    So what was the solution?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now