Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

what's wrongwith this

Discussion in 'cPanel Developers' started by Spring0105, Dec 12, 2009.

  1. Spring0105

    Spring0105 Registered

    Dec 5, 2009
    Likes Received:
    Trophy Points:
    on my cluster i'm using FCGI, and i want to set limits on processes number, memory usage and cpu usage.

    I've tried many many ways, but any of them seems to be working.

    Here are some examples:


    ulimit -t 3 -u 1

    - Also with this setting, if i try to reload many times an user page i can see douzens of php processes


    GID=`id -g`

    if [ "$LIMITUSER" != "root" ]; then
    ulimit -n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000
    elif [ "$GID" -gt "500" ]; then
    ulimit -n 100 -u 20 -m 40000 -d 40000 -s 8192 -c 40000 -v 40000 -t 10
    ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v
    unlimited 2>/dev/null

    - Same as above, this seems to be ignored

    FCGI Wrapper:

    ulimit -u 2 -m 40000 -d 40000 -c 40000 -v 40000 -t 10
    exec /usr/local/cpanel/cgi-sys/php5

    - Still seems being ignored

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice