Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2004
    Location
    South Africa
    Posts
    55

    Post High Server Load - Auto Kill Proccess Script Needed

    From time to time I get runaway processes like below .. killing my server.

    Is there any script that I can run to automatically kill such proccess??
    Right now I will settle for anything, even if not highly configurable.

    Code:
    top - 21:41:11 up 15:52,  2 users,  load average: 4.00, 2.45, 1.85
    Tasks: 315 total,   2 running, 313 sleeping,   0 stopped,   0 zombie
    Cpu(s):  52.6% user,   2.6% system,   0.0% nice,  44.7% idle
    Mem:   1014612k total,  1002532k used,    12080k free,     2392k buffers
    Swap: 20482856k total,        0k used, 20482856k free,   240024k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
     1108 www-data  15   0  8000 7992 5932 R 99.6  0.8 147:58.77 apache2
     1705 root      13   0  1212 1212  844 R  1.3  0.1   0:00.22 top
    11161 www-data   9   0  7760 7752 5840 S  1.0  0.8   0:00.04 apache2
    10584 www-data   9   0  8160 8152 5924 S  1.0  0.8   0:00.36 apache2
       13 www-data   9   0  7896 7888 5916 S  1.0  0.8   0:01.57 apache2
     8376 www-data   9   0  8172 8164 5936 S  0.7  0.8   0:00.80 apache2
    16310 www-data   9   0 10472  10m 5912 S  0.7  1.0   0:00.97 apache2
    14667 www-data   9   0 11104  10m 5920 S  0.7  1.1   0:00.88 apache2
        5 root       9   0     0    0    0 S  0.3  0.0   0:25.86 kswapd
     9166 www-data   9   0 11124  10m 5932 S  0.3  1.1   0:01.73 apache2
    26783 www-data   9   0  8972 8964 5932 S  0.3  0.9   0:02.23 apache2
     7387 www-data   9   0  8044 8036 5920 S  0.3  0.8   0:00.52 apache2
     5026 www-data   9   0  8128 8120 5916 S  0.3  0.8   0:00.38 apache2

  2. #2
    Join Date
    May 2003
    Location
    Florida
    Posts
    902
    You might check out Process Resource Monitor at http://rfxnetworks.com/prm.php I believe it does what you want.

  3. #3
    Join Date
    Sep 2004
    Location
    South Africa
    Posts
    55
    Aaaahhh .. how could i forget about that one.

    Now .. anyone know how to create a rougue proccess to test the killing

  4. #4
    Join Date
    May 2003
    Posts
    1,708
    If you install it and have those rogues getting started it will really take care of it quickly. You might try setting the ruleset a little stringent for testing purposes.
    ~~~~~~~~~~~~~~~~~~~~~
    UrNode - Virtual Solutions
    http://www.UrNode.com

  5. #5
    Join Date
    May 2006
    Posts
    1,426
    you can try the unix benchmark test in this forum and try it, It does work though, you can make rules for about everything. such as ircd, bnc, etc;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •