Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)
edited by

I am working on a Java application that runs on my console which executes another Java process. I am trying to get the thread/heap dump of the child process.

On Unix, I can use the command 

 kill -3 <pid> 

but on the Windows AFAIK only option to get the thread dump is 

Ctrl-Break in your console. But it gives me a dump of a parent process, not a child.

Is there any way to get this heap dump?

1 Answer

0 votes
by (36.8k points)

If the jar file already has contained absolute pathname as shown, it is particularly easy:

cd /where/you/want/it; jar xf /path/to/jarfile.jar

That is, you have one shell executed by Python setting directory for you and when run the extraction.

If the jar file doesn't include an absolute pathname, then you have to convert certain relative names to absolute, through that your jar can find it after the change of directory.

Want to be a Linux expert? Come and join this Linux course

Related questions

0 votes
1 answer
asked Jan 5, 2021 in Linux by blackindya (18.4k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...