Current time: 11-27-2024, 06:08 PM Hello There, Guest! (LoginRegister)


Post Reply 
HELP! bash: fork: Cannot allocate memory
Author Message
leha Offline
Junior Member
*

Posts: 36
Joined: Mar 2009
Reputation: 0
Post: #1
Exclamation HELP! bash: fork: Cannot allocate memory
After update to 1.0.5, I was got this error - Fatal error: Out of memory (allocated 262144) (tried to allocate 77824 bytes) in All my sites! After several minutes, apache shutdown.

In VPS admin I see:
privvmpages 261,840 limit: 262,144

before the update was nothing similar.
Help me please, what can I do to resolve this problem?
(This post was last modified: 04-27-2010 07:31 AM by leha.)
04-27-2010 07:01 AM
Find all posts by this user Quote this message in a reply
foxb Offline
Junior Member
*

Posts: 37
Joined: Mar 2010
Reputation: 0
Post: #2
RE: HELP! bash: fork: Cannot allocate memory
(04-27-2010 07:01 AM)leha Wrote:  After update to 1.0.5, I was got this error - Fatal error: Out of memory (allocated 262144) (tried to allocate 77824 bytes) in All my sites! After several minutes, apache shutdown.

In VPS admin I see:
privvmpages 261,840 limit: 262,144

before the update was nothing similar.
Help me please, what can I do to resolve this problem?
Try:
Code:
cat /proc/user_beancounters
(This post was last modified: 04-27-2010 08:32 AM by foxb.)
04-27-2010 08:32 AM
Find all posts by this user Quote this message in a reply
leha Offline
Junior Member
*

Posts: 36
Joined: Mar 2009
Reputation: 0
Post: #3
RE: HELP! bash: fork: Cannot allocate memory
:# cat /proc/user_beancounters

PHP Code:
Version2.5
       uid  resource           held    maxheld    barrier      limit    failcnt
      101
:  kmemsize       11585047   11656259   52428800  104857600          0
            lockedpages           0          0        256        256          0
            privvmpages      193323     193522     262144     262200       6009
            shmpages            776        792      21504      21504        164
            dummy                 0          0 2147483647 2147483647          0
            numproc             167        168        500        500          0
            physpages         39012      39082          0 2147483647          0
            vmguarpages           0          0     196608 2147483647          0
            oomguarpages      40609      40679 2147483647 2147483647          0
            numtcpsock           26         27       1360       1360          0
            numflock             19         20        188        206          0
            numpty                1          1         25         25          0
            numsiginfo            2          3        256        256          0
            tcpsndbuf        237440     266560   11720320   12703360          0
            tcprcvbuf        425984     409600   11720320   12703360          0
            othersockbuf     235328     246528    1126080    2097152     118405
            dgramrcvbuf        4864       7296    1262144    1262144          0
            numothersock        170        176        360        360          0
            dcachesize            0          0    2273280    2416640          0
            numfile            5309       5340      15820      15820          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            14         14        400        400          0 
(This post was last modified: 04-28-2010 12:13 AM by leha.)
04-28-2010 12:13 AM
Find all posts by this user Quote this message in a reply
foxb Offline
Junior Member
*

Posts: 37
Joined: Mar 2010
Reputation: 0
Post: #4
RE: HELP! bash: fork: Cannot allocate memory
Whenever you have failcnt more than 0 there is the problem...

You have to increase the values for your VPS

Just for reference here is the output from my test system:
Code:
cat /proc/user_beancounters
Version: 2.5
       uid  resource           held    maxheld    barrier      limit    failcnt
      106:  kmemsize        9729093   13134782 2147483647 2147483647        188
            lockedpages           0          4        256        256          0
            privvmpages      112238     177184     256000     256000          0
            shmpages            892        908      21504      21504          0
            dummy                 0          0          0          0          0
            numproc              92        134        240        240          0
            physpages         57891      97864          0 2147483647          0
            vmguarpages           0          0      33792 2147483647          0
            oomguarpages      57891      97864      26112 2147483647          0
            numtcpsock           27         53        360        360          0
            numflock             16         28        188        206          0
            numpty                1          1         16         16          0
            numsiginfo            0          4        256        256          0
            tcpsndbuf        208320     949760    1720320    2703360          0
            tcprcvbuf        214208     456768    1720320    2703360          0
            othersockbuf     213248     390016    1126080    2097152          0
            dgramrcvbuf           0       8384     262144     262144          0
            numothersock        148        184        360        360          0
            dcachesize            0          0    3409920    3624960          0
            numfile            2339       3149       9312       9312          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            42         42        128        128          0
04-30-2010 08:31 AM
Find all posts by this user Quote this message in a reply
leha Offline
Junior Member
*

Posts: 36
Joined: Mar 2009
Reputation: 0
Post: #5
RE: HELP! bash: fork: Cannot allocate memory
Now problem only with privvmpages, but before update CP I didn't have any problems.
04-30-2010 05:58 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)