You could alternatively use jstack (Included with JDK) to take a thread dump and write the output wherever you want. Is that not available in a unix environment?
jstack PID > outfile
More Related Contents:
- I have wondered why ‘new Thread(new Thread(),”string”);’ is running correctly
- Convert a string representation of a hex dump to a byte array using Java?
- What’s the difference between Thread start() and Runnable run()
- Difference between volatile and synchronized in Java
- How many threads can a Java VM support?
- What does java.lang.Thread.interrupt() do?
- How to make a Java thread wait for another thread’s output?
- Synchronizing on String objects in Java
- What does SwingUtilities.invokeLater do? [duplicate]
- Difference between thread’s context class loader and normal classloader
- Thread.stop() – deprecated
- Calling one JFrame from another using Timer without any buttons
- Multithreaded quicksort or mergesort
- java.lang.IllegalStateException: Not on FX application thread; currentThread = Thread-4
- What are the advantages of using an ExecutorService?
- Should I use a separate ScriptEngine and CompiledScript instances per each thread?
- Is ExecutorService (specifically ThreadPoolExecutor) thread safe?
- Use cases for RxJava schedulers
- Are Thread.stop and friends ever safe in Java?
- Should you synchronize the run method? Why or why not?
- Why does Java not see the updated value from another thread?
- What is adaptive spinning w.r.t lock acquisition?
- Testing initialization safety of final fields
- How can I wrap a method so that I can kill its execution if it exceeds a specified timeout?
- Thread safe Hash Map?
- Java multithreading – thread priority
- How to listen for Firebase setValue completion
- Does a breakpoint halt all threads?
- How to restart thread in java? [duplicate]
- Random over ThreadLocalRandom