Java Technology

Blog about Java Programming Errors and Exceptions, Java technology related stack

Monday, September 7, 2015

How to kill Some Java Process without Input PID?

To extract the PID use awk command and send the argument to xargs command.

ex: To kill activemq process use the below command

ps -ef | grep $USER | grep java | grep activemq | awk '{print $2}' | xargs kill -9

Posted by Subbaiah at 4:39 AM
Email This BlogThis! Share to X Share to Facebook Share to Pinterest

No comments :

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments ( Atom )

Blog Archive

  • ▼  2015 ( 15 )
    • ▼  September ( 14 )
      • What are new changes in java 8 for Date API?
      • Problem with commiting new code to SVN ?
      • What are hibernate.hbm2ddl.auto values?
      • An internal error occurred during: "reload maven p...
      • An internal error occurred during: "Starting Tomca...
      • How to update svn code into local project using sv...
      • How to create and apply patch file in svn?
      • How to work with rpm packages installation, upgrad...
      • How to know TCP/IP port listening or free in UNIX ...
      • How to export and import mysql dump ?
      • How to kill Some Java Process without Input PID?
      • How to analyze how much time a program spends in e...
      • How to compile and run java code in EditPlus?
      • How to start learning java?
    • ►  February ( 1 )
  • ►  2014 ( 1 )
    • ►  April ( 1 )

About Me

Subbaiah
View my complete profile
Powered by Blogger.