Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on Cannot allocate memory: fork: Unable to fork new process in the VPS & Dedicated forum
Lately, I have been hitting the error "Cannot allocate memory: fork: Unable to fork new process" eventhough it appears that I'm only using 120MB out ...

  1. #1
    Loyal Client
    Join Date
    May 2009
    Posts
    18

    Cannot allocate memory: fork: Unable to fork new process

    Lately, I have been hitting the error "Cannot allocate memory: fork: Unable to fork new process" eventhough it appears that I'm only using 120MB out of 640MB of guaranteed RAM. I created a support ticket and they said they can't find any problem because I still have ample amount of memory left. So what could be causing this error? On a daily basis, I get at least a 100 instances of this error. That's at least 100 pageviews gone.

    apache prefork
    Code:
    <IfModule prefork.c>
    StartServers      4
    MinSpareServers   4
    MaxSpareServers  8
    ServerLimit     400
    MaxClients      400
    MaxRequestsPerChild  4000
    </IfModule>
    php.ini resource limit
    Code:
    max_execution_time = 40     ; Maximum execution time of each script, in seconds
    max_input_time = 80     ; Maximum amount of time each script may spend parsing request data
    memory_limit = 64M      ; Maximum amount of memory a script may consume

  2. #2
    JPC Dream Team JPC-Bilal's Avatar
    Join Date
    Nov 2006
    Posts
    1,175
    Hi kwatog,

    Please provide me the Ticket number so that I can check and assist you regarding this issue. Thank you.

  3. #3
    Loyal Client
    Join Date
    May 2009
    Posts
    18
    Quote Originally Posted by JPC-Bilal View Post
    Hi kwatog,

    Please provide me the Ticket number so that I can check and assist you regarding this issue. Thank you.

    Thanks, Bilal! I already closed my original ticket (the recommendation was to restart the vps, which I did, to plug memory leaks. My server uptime by that time was already 500 days. But anyway, I raised a new support ticket -- 13408884.

    By the way, I ran userbeans.sh and the output as below.
    Code:
    [root@vps ~]# sh userbeans.sh +lufkm
    1024 MB Allocation Limit [privvmpages limit]
    1024 MB Allocation Barrier [privvmpages barrier]
     640 MB Allocation Guarantee [vmguarpages barrier]
     256 MB Memory Guarantee [oomguarpages barrier]
     718 MB ( 750 MB Max) page memory allocated [privvmpages held]
      87 MB ( 108 MB Max) memory + swap used [oomguarpages held]
      87 MB ( 108 MB Max) page memory used [physpages held]
      62 MB ( 64000 KB) kernel memory limit [kmemsize limit]
      62 MB ( 64000 KB) kernel memory barrier [kmemsize barrier]
       6 MB (  6213 KB) kernel memory used [kmemsize held]
       0 MB (   539 KB) buffer memory used [*buf held]
    Fail Count conditions: 2
    privvmpages 184056 192249 262144 262144 124554
    numfile 2256 2412 10000 10000 52654

  4. #4
    JPC Dream Team JPC-Bilal's Avatar
    Join Date
    Nov 2006
    Posts
    1,175
    I'll check the ticket and will update you. Please follow up in the Ticket. Thank you.

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
  •