Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Dec 2009
    Posts
    9

    Default open3: fork failed: Cannot allocate memory at cpsrvd-ssl.pl line 4852

    Hello ,
    i have a problem on my VPS , many times i have an Internal server error 500
    and this message show on the WHM :

    open3: fork failed: Cannot allocate memory at cpsrvd-ssl.pl line 4852
    Please provide me about the reason and how can i solve it .

    the load avg is : Load Averages: 0.32 0.38 0.39
    and the memory usage is : about (12% to 15%) 4 G.B or ram .

    and this is a print screen from HyperVM explain the memory usage on my VPS :
    http://img262.imageshack.us/img262/7407/memory.gif

    I'M WAITING YOUR HELP !

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by Ahmed Saleh View Post
    Hello ,
    i have a problem on my VPS , many times i have an Internal server error 500
    and this message show on the WHM :

    Please provide me about the reason and how can i solve it .

    the load avg is : Load Averages: 0.32 0.38 0.39
    and the memory usage is : about (12% to 15%) 4 G.B or ram .

    and this is a print screen from HyperVM explain the memory usage on my VPS :
    http://img262.imageshack.us/img262/7407/memory.gif

    I'M WAITING YOUR HELP !
    Via root SSH access, please let us know the output from the following commands:
    Code:
    # grep -H '' /etc/*release /usr/local/cpanel/version /var/cpanel/envtype
    # grep "conserve_memory\|enable_cpansqlite\|maxmem" /var/cpanel/cpanel.config
    # cat /proc/user_beancounters

  3. #3
    Member
    Join Date
    Jan 2010
    Location
    at net :D
    Posts
    48

    Unhappy 500 internal server error problem

    hi i have the same problem , here is what u wanted.
    i get internal server error every time i want to do something.

    /etc/redhat-release:CentOS release 5.4 (Final)
    /usr/local/cpanel/version:11.25.0-RELEASE_42404
    /var/cpanel/envtype:virtuozzo


    conserve_memory=1
    enable_cpansqlite=0
    maxmem=256


    Version: 2.5
    uid resource held maxheld barrier limit failcnt
    290: kmemsize 12507682 23472746 214 7483646 2147483646 0
    lockedpages 0 0 999999 999999 0
    privvmpages 777254 786711 786432 786432 595
    shmpages 2940 26039 262144 262144 0
    dummy 0 0 0 0 0
    numproc 204 215 999999 999999 0
    physpages 36860 59636 0 2147483647 0
    vmguarpages 0 0 262144 2147483647 0
    oomguarpages 36861 59636 262144 2147483647 0
    numtcpsock 107 498 7999992 7999992 0
    numflock 9 14 999999 999999 0
    numpty 2 2 500000 500000 0
    numsiginfo 0 158 999999 999999 0
    tcpsndbuf 6749504 18038512 21 4748160 396774400 0
    tcprcvbuf 1760048 8802208 21 4748160 396774400 0
    othersockbuf 40976 250752 21 4748160 396774400 0
    dgramrcvbuf 0 78624 21 4748160 396774400 0
    numothersock 42 75 7999992 7999992 0
    dcachesize 0 0 214 7483646 2147483646 0
    numfile 3477 3992 2 3999976 23999976 0
    dummy 0 0 0 0 0
    dummy 0 0 0 0 0
    dummy 0 0 0 0 0
    numiptent 33 33 999999 999999 0


    well , what should i do ? i have configured apache with easyapache. and i have activated worker,fcgi,cgi,curl,ioncube,zend &...

    thanks in advanced

  4. #4
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Try increasing memory for cPanel from WHM >> "Tweak Settings" and see if the problem continues. The option is:

    The maximum memory a cPanel process can use before it is killed off (in megabytes). Values less than 256 megabytes can not be specified. A value of "0" will disable the memory limits.

  5. #5
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by LAZer View Post
    hi i have the same problem , here is what u wanted.
    i get internal server error every time i want to do something.

    Code:
    # grep -H '' /etc/*release /usr/local/cpanel/version /var/cpanel/envtype
    /etc/redhat-release:CentOS release 5.4 (Final)
    /usr/local/cpanel/version:11.25.0-RELEASE_42404
    /var/cpanel/envtype:virtuozzo
    Code:
    # grep "conserve_memory\|enable_cpansqlite\|maxmem" /var/cpanel/cpanel.config
    conserve_memory=1
    enable_cpansqlite=0
    maxmem=256
    Code:
    # cat /proc/user_beancounters
    Version: 2.5
           uid  resource                     held              maxheld                                         barrier                limit              failcnt
          290:  kmemsize                 12507682             23472746           214                           7483646           2147483646                    0
                lockedpages                     0                    0                                          999999               999999                    0
                privvmpages                777254               786711                                          786432               786432                  595
                shmpages                     2940                26039                                          262144               262144                    0
                dummy                           0                    0                                               0                    0                    0
                numproc                       204                  215                                          999999               999999                    0
                physpages                   36860                59636                                               0           2147483647                    0
                vmguarpages                     0                    0                                          262144           2147483647                    0
                oomguarpages                36861                59636                                          262144           2147483647                    0
                numtcpsock                    107                  498                                         7999992              7999992                    0
                numflock                        9                   14                                          999999               999999                    0
                numpty                          2                    2                                          500000               500000                    0
                numsiginfo                      0                  158                                          999999               999999                    0
                tcpsndbuf                 6749504             18038512            21                           4748160            396774400                    0
                tcprcvbuf                 1760048              8802208            21                           4748160            396774400                    0
                othersockbuf                40976               250752            21                           4748160            396774400                    0
                dgramrcvbuf                     0                78624            21                           4748160            396774400                    0
                numothersock                   42                   75                                         7999992              7999992                    0
                dcachesize                      0                    0           214                           7483646           2147483646                    0
                numfile                      3477                 3992             2                           3999976             23999976                    0
                dummy                           0                    0                                               0                    0                    0
                dummy                           0                    0                                               0                    0                    0
                dummy                           0                    0                                               0                    0                    0
                numiptent                      33                   33                                          999999               999999                    0
    well , what should i do ? i have configured apache with easyapache. and i have activated worker,fcgi,cgi,curl,ioncube,zend &...

    thanks in advanced
    Based on the provided detail the issue stems from the VPS reaching a memory limit (e.g., "privvmpages") that is defined in the hardware node configuration of the Virtuozzo/OpenVZ container.

    Of most importance is the "fail count" number seen above (e.g., "595" for "privvmpages"), and that it is likely increasing on the system; this is evidence that the hardware node is not allowing enough resources to the virtual environment (VPS) container under the hardware-node-defined Virtuozzo/OpenVZ "UBC" limits.

    Regarding specific corrective methods and procedures I believe the following documentation references for Virtuozzo/OpenVZ may help to narrow what to check or look for in the hardware node configuration.

    Specific to privvmpages:
    UBC secondary parameters - privvmpages - OpenVZ Wiki

    Additional resources:
    Setting UBC parameters - OpenVZ Wiki
    User Guide/Managing Resources - OpenVZ Wiki
    UBC primary parameters - OpenVZ Wiki
    UBC secondary parameters - OpenVZ Wiki
    UBC auxiliary parameters - OpenVZ Wiki
    UBC parameters table - OpenVZ Wiki

  6. #6
    Registered User
    Join Date
    Jun 2010
    Posts
    4

    Default

    I'm also having some issue with my VPS lately.

    server load and ram usage is fine.
    But some times whm /cpanel won't work. Webmail will say service temporary unavailable.

    I've got a bad surprise when I looked at my /proc/user_beancounters

    many fails

    Any advice?

    Code:
    Version: 2.5
           uid  resource                     held              maxheld              barrier                limit              failcnt
          121:  kmemsize                 29901024             30421221            157286400            157286400                    0
                lockedpages                     0                    0  9223372036854775807  9223372036854775807                    0
                privvmpages                919955               923133              1000000              1000000                51354
                shmpages                   274966               274966               350000               350000                 6305
                dummy                           0                    0  9223372036854775807  9223372036854775807                    0
                numproc                       254                  259                  600                  600                    0
                physpages                  129318               130097                    0  9223372036854775807                    0
                vmguarpages                     0                    0         206158430208         206158430208                    0
                oomguarpages               129319               130098  9223372036854775807         164926744166                    0
                numtcpsock                     60                   62                  800                  800                    0
                numflock                        9                   11  9223372036854775807  9223372036854775807                    0
                numpty                          1                    1                   30                   30                    0
                numsiginfo                      0                    2                  256                  256                    0
                tcpsndbuf                 1920256              2725696  9223372036854775807  9223372036854775807                    0
                tcprcvbuf                  996144              1012528  9223372036854775807  9223372036854775807                    0
                othersockbuf                57968               328368  9223372036854775807  9223372036854775807                    0
                dgramrcvbuf                     0                30576  9223372036854775807  9223372036854775807                    0
                numothersock                   51                   62                  300                  300                    0
                dcachesize                3334290              3355887  9223372036854775807  9223372036854775807                    0
                numfile                      8551                 8559                29312                29312                  763
                dummy                           0                    0                    0                    0                    0
                dummy                           0                    0                    0                    0                    0
                dummy                           0                    0                    0                    0                    0
                numiptent                     287                  287                 2000                 2000                    0

  7. #7
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Your VPS is out of memory

    /proc/user_beancounters reports information about what are called Quality of Service (QoS) parameters. These are defined in the hardware node that hosts your VPS, and they are defined by the hardware node's administrator.

    Any number higher than 0 in the failcnt column for any of these parameters indicates that your VPS has tried to exceed the value set by the administrator for your VPS. Your server has exceeded the allowed value for privvmpages, shmpages and numfile. These are key QoS parameters, and the short explanation is that your server is both trying to use too much memory, and trying to open more files, than allowed.

    The following pages provide good explanations of the parameters that are reported in /proc/user_beancounters:

    Meaning of the /proc/user beancounters Values - VPSLink Wiki
    QoS explinations [Archive] - Layered Tech Support Forums
    1&1 Webhosting FAQ | What are those User Beancounters?

    Basically, this is not an issue caused by cPanel itself. This is an issue of your VPS exceeding the resource limits set by the administrator of the hardware node. You will need to contact the VPS hardware node administrator to ask if these limits can be increased for your VPS.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  8. #8
    Registered User
    Join Date
    Jun 2010
    Posts
    4

    Default

    Thank you.

    Is the mysqld settings (my.cnf) could have an impact on the privvmpages.

    If I low the cache size of buffer size ... could it help?

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 02-26-2010, 04:06 PM
  2. open3: close(main::RNULL) failed: Bad file descriptor at ./install line 650
    By thenynoc in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-06-2007, 10:06 AM
  3. Cannot dup STDIN at cpsrvd-ssl.pl line 2533 (yes, one of THOSE again)
    By EvangarCG in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-15-2007, 10:17 PM
  4. cpsrvd error: Cannot dup stdin at cpsrvd.pl line 292.
    By NNNils in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 11-06-2004, 10:27 AM
  5. Cannot allocate memory
    By flashweb in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-21-2003, 10:25 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube