

Since a Java program may start many threads, each executing some program code, it is necessary to understand which threads are using CPUs.
#PROCESS MONITOR COMMAND LINE LINUX CODE#
Native threads run something which is not written in Java, usually it’s code in C/C++ and usually all these threads are special utility threads started by a VM itself. Application threads are those that run some Java code, and usually this is what applications are using to run their code.


Linux x86-64 is considered as OS platform. This post is about Oracle’s JVM which is called HotSpot. there are different vendors of Java Virtual Machine.Following the links is not necessary, they are available for the reference. Here are a few things you need to know before starting. Using just Linux command line tools and JDK supplied command line utilities. A quick and easy way to know what is it inside Java process that is using your CPU.
