Analyst Integration Question:

How do you find a running Java process on UNIX?

Tweet Share WhatsApp

Answer:

You can use combination of 'ps' and 'grep' command to find any process running on UNIX machine. Suppose your Java process has a name or any text which you can use to match against just use following command.

ps -ef | grep "myJavaApp"

ps -e will list every process i.e. process from all user not just you and ps -f will give you full details including PID, which will be required if you want to investigate more or would like to kill this process using kill command.

Download Integration Programmer PDF Read All 87 Integration Programmer Questions
Previous QuestionNext Question
Explain what is unit testing?Senior Software Engineer Integration Related Questions Part One: