Linux - How to kill a particular service process, Kill a specific process

How to kill a particular service process

How to kill a particular process which consumes more memory or resources

You can see a particular process which consumes more CPU resources or more memory on the server. In such scenario you may need to kill a particular service or process. There may be large number of java or php process runs and causes load to the server,in this time if want to kill all java or php program you can use the following command :

To kill all java programs:
  # pkill java

To kill all php programs
  # pkill php

To list the particular process
  # fuser -v /usr/bin/php

To kill all php programs
  # fuser -k /usr/bin/php

The topic on Linux - How to kill a particular service process is posted by - Nandhu

Hope you have enjoyed, Linux - How to kill a particular service processThanks for your time

Tech Bluff