+ Reply to Thread
Results 1 to 2 of 2

Thread: Process Resource Monitor for your web server!

  1. #1
    phpforfun's Avatar
    phpforfun is offline Speaks fluent binary
    Join Date
    Feb 2008
    Posts
    1,232
    Blog Entries
    17
    Rep Power
    24

    Process Resource Monitor for your web server!

    Have any processes that are killing your server? I had a client who was using some software and it would bring the CPU up to 50% sometimes, I couldn't take it anymore.

    I found a neat little tool, ServerWizards Helped me find it actually.
    R-fx Networks - Internet Security Solutions - Projects » PRM

    How to Install
    1) SSH in as root, OR Sudoer
    2) Type these commands:
    1. cd /usr/src
    2. wget http://www.rfxnetworks.com/downloads/prm-current.tar.gz
    3. tar xvfz prm-current.tar.gz
    4. cd prm*
    5. ./install.sh
    And thats it!

    This is a neat little tool that will let you set specific process limits per a process.

    How to use
    - First you must configure the '/usr/local/prm/conf.prm' config file to meet your needs. The file is commented through, so it should be a walk in the park.
    - Navigate to your '/usr/local/prm/rules/' directory..
    cd /usr/local/prm/rules/
    this is where you will store files with certain process rules! Say you want to limit sc_trans. You would need to..
    nano sc_trans
    sc_trans is just my example, please make your own, unless you do use Shoutcast Radio. Here are the settings you would want to throw in there:
    # seconds to wait before rechecking a flaged pid (pid's noted resource
    # intensive but not yet killed).
    WAIT="12"

    # counter limit that a process must reach prior to kill. the counter value
    # increases for a process flaged resource intensive on rechecks.
    KILL_TRIG="3"

    # argument to pass onto kill commands
    KARG="9"

    # Max CPU usage readout for a process - % of all cpu resources (decimal values unsupported)
    MAXCPU="20"

    # Max MEM usage readout for a process - % of system total memory (decimal values unsupported)
    MAXMEM="5"

    # Max processes for a given command - this is not max processes for user but rather the executable
    MAXPS="10"

    And thats it !
    Checkout my new forum! http://adminreference.com/

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest
    Very nice tutorial and very handy for admins. +rep!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Help] How can i open an EXE from resource [C#]
    By lil-fino in forum C# Programming
    Replies: 4
    Last Post: 01-23-2011, 09:15 PM
  2. Call upon a resource
    By Kierien in forum C# Programming
    Replies: 2
    Last Post: 07-09-2009, 03:18 AM
  3. Whats your resource?
    By CjacK in forum General Programming
    Replies: 6
    Last Post: 07-23-2008, 03:47 AM
  4. Resource id #59
    By TcM in forum PHP Development
    Replies: 5
    Last Post: 01-13-2008, 08:45 AM

Tags for this Thread

Bookmarks

Posting Permissions

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