Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of Java processes

How can I list all Java processes in bash? I need an command line. I know there is command ps but I don't know what parameters I need to use.

like image 520
Jacek Koralik Avatar asked Jun 08 '11 18:06

Jacek Koralik


People also ask

How can I see what processes are running in Java?

On Linux, you can view processes with the ps command. It is the simplest way to view the running processes on your system. You can use the ps command to view running Java processes on a system also by piping output to grep .

How do I list all Java processes in Windows?

Go to 'Processes' tab. You will see the list of processes running on the system. Bam! Now you will see the entire command line of your java application in the 'command line' column of your java process.

What is Java running process?

The Process is an abstract class defined in the java. lang package that encapsulates the runtime information of a program in execution. The exec method invoked by the Runtime instance returns a reference to this class instance. There is an another way to create an instance of this class, through the ProcessBuilder.


1 Answers

try:

ps aux | grep java 

and see how you get on

like image 146
Rich Avatar answered Oct 02 '22 03:10

Rich