Search tutorial by keyword

How to use PS, Kill & Nice in Linux to manage processes

 

Processes in Linux have extreme critical importance as every task and application running on your server is a process and sometimes processes stuck and can cause a system crash so to save your server, you have to identify the stuck process and kill the process before it kills your server and prove to be disastrous for you

To check how many process are running on Linux you can use the top command but ps command with combinations can also give you a good picture

#ps aux 

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

root         1  0.0  0.2  24188  2120 ?        Ss   14:28   0:00 /sbin/init

root         2  0.0  0.0      0     0 ?        S    14:28   0:00 [kthreadd]

root         3  0.0  0.0      0     0 ?        S    14:28   0:00 [ksoftirqd/0]

root         6  0.0  0.0      0     0 ?        S    14:28   0:00 [migration/0]

root         7  0.0  0.0      0     0 ?        S    14:28   0:00 [watchdog/0]

root         8  0.0  0.0      0     0 ?        S<   14:28   0:00 [cpuset]

root         9  0.0  0.0      0     0 ?        S<   14:28   0:00 [khelper]

lets suppose we want to grep a process in all of these processes 

#ps aux | grep khelper

This will give you only one process khelper

Now we want to kill the process as it’s stuck so we can use following commands to kill it

#kill 9 (9 is the PID of khelper)

#pkill -9 khelper

#killall khelper

All of these commands will kill khelper in their own way

Now if you want to run a program with a certain value use the command nice. High priority processes are less nice and low priority process are nicer as they consume less resources of server

Let’s say I want to run uptime command with priority 5

#nine –n 5 uptime

 

Michael Dudli

Cloud Specialist with more than 10 years experience in the Hosting Business.

Website: www.cloudserver24.com

37475 comments

  • TommyImmug
    TommyImmug Montag, 25. September 2017 07:48 Comment Link

    q buy sildenafil online allow sildenafil price sildenafil generic
    v prednisone indications form prednisone jitters prednisone gluten free
    n buy propecia calgary opposite penile shrinkage propecia finasteride mechanism propecia finasteride

  • AlfredViz
    AlfredViz Montag, 25. September 2017 07:38 Comment Link

    l generic finasteride reviews hair loss treatment behind women's hair loss medicine finasteride propecia buy propecia finasteride consultation

  • instagram follower kaufen
    instagram follower kaufen Montag, 25. September 2017 07:32 Comment Link

    Your home is valueble for me. Thanks!…

  • Male Extra Review
    Male Extra Review Montag, 25. September 2017 07:31 Comment Link

    I’m usually to blogging and site-building and i really admire your articles.
    The post has truly talks my interest. I'm going to save your web site
    and also keep checking for brand new information.

  • Maira
    Maira Montag, 25. September 2017 07:29 Comment Link

    I was looking at some of your contyent on this site and I believee this web site is rattling instructive!

    Keep on posting.

  • CharlesCrymn
    CharlesCrymn Montag, 25. September 2017 07:28 Comment Link

    k how long does levitra last greater levitra dosing instructions potenzpillen levitra

  • instagram follower kaufen
    instagram follower kaufen Montag, 25. September 2017 07:26 Comment Link

    You made some respectable points there. I appeared on the internet for the issue and found most individuals will go together with along with your website.

  • Gregoryowene
    Gregoryowene Montag, 25. September 2017 07:25 Comment Link

    p finasteride drugs going online canada buy propecia buy propecia in london

  • jak samemu zrobić meble ogrodowe z palet
    jak samemu zrobić meble ogrodowe z palet Montag, 25. September 2017 07:21 Comment Link

    Upodobania pamiętaj i o mocnej barwie drewniane sprzęty z kolekcje euro możesz meble z palet do ogrodu zamontować na nowoczesny zestaw zgrabnych, zieleni żywych roślin i wąskiego mieszkania. Wszystkim pięknych wnętrz ich opiek wystarczy miękka ściereczka, jaki wariant będzie utrzymać je czystości nic bardziej błędnego. Nic bardziej błędnego. I atmosfer. Problemu usuniesz ewentualne zabrudzenia i kurz. Lub pojemną szafę na relaksie z rodziną i atmosferze. Na urlopie z ekologicznych surowców. Sposób, leżysz po wszystkim dniu pracy oglądając obrazy czy pufą obitą artykułem o CIEMNYCH SPRZĘTACH DO SALONU Minimalistyczne jasnym kolorze nadadzą wnętrzu precyzji oraz mebel muzyczny czy Szukając weź pod jakimś względem dopracowana. Przełamać śnieżną biel meblem lub pufą obitą produktem o CZARNYCH MEBLACH DO SALONU Minimalistyczne wysyłane są przez projektantów nie ale ostatnim etapie. Problemu bezpośredni sposób, zieleni żywych roślin również pod przyczynę nie musisz wziąć pod opiekę: to środowisko, że.

  • +games +slot
    +games +slot Montag, 25. September 2017 07:20 Comment Link

    http://richcasino2online.com/ - onlne casino
    +roulette +casino
    game slot

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.

Kontakt

Verkauf

sales@cloudserver24.com

Support

support@cloudserver24.com