hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Cannot allocate memory error
Reply

Forum Jump

Cannot allocate memory error

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
New Member
 
Join Date: Feb 2012
Posts: 3

Cannot allocate memory error


Hello there.


I own a VPS server with CentOS, and 1.5GB RAM memmory, which is reinstalled few days ago.

I noted that i periodically get error - 500 internal server error pages, but for most time site is working fine.

I wanted to investigate what caused this error and i found this in server error log:
Code:
[Wed Feb 01 07:35:28 2012] [error] [client 208.86.198.103] (12)Cannot allocate memory: couldn't create child process: /usr/sbin/suphp for /home/admin/opusteno/forum/index.php
[Wed Feb 01 07:35:28 2012] [error] [client 208.86.198.103] (12)Cannot allocate memory: couldn't create child process: /usr/sbin/suphp for /home/admin/opusteno/forum/index.php
[Wed Feb 01 07:35:28 2012] [error] [client 208.86.198.103] (12)Cannot allocate memory: couldn't create child process: /usr/sbin/suphp for /home/admin/opusteno/forum/index.php
There is plenty of those errors in error log.
Now im not sure what is causing it, as i don't use suphp, and my memmory is not full though.
RAM usage is never higher than 45%
CPU usage - 12%
HDD usage - 13%
When RAM usage goes higher than 80% i should get email allert, but i never get some, so RAM memmory is not the problem i think.

I guess that it's some kind of problem with chmod, but i'm not sure.

Also, for what it's worth, i'm using kloxo panel.

Regards.



Sponsored Links
  #2  
Old
Junior Guru Wannabe
 
Join Date: Sep 2007
Location: In ur heart
Posts: 60
Do you have installed any memory monitoring modules on your VPS, if no then contact VPS provider and consult this issue with them because some VPS provider company apply memory usage monitoring on the main node where your VPS is hosted....

__________________
Regards,
G R S


  #3  
Old
Junior Guru Wannabe
 
Join Date: Feb 2012
Location: WHT
Posts: 80
you are sure your vps has ded Hardware ? i mean maybe your server provider
oversell and physical your memory is limit !

Sponsored Links
  #4  
Old
Web Hosting Master
 
Join Date: Nov 2005
Location: Michigan, USA
Posts: 3,733
I'm assuming this is OpenVZ or Virtuozzo, simply type:

cat /proc/user_beancounters

Look in the far right column for failcounts. There is more than one memory limit in OpenVZ and it is possible your host hasn't set them properly or your server is using an abnormal amount of one.

__________________
ByteonSite - 7 Years of Virtual Server Hosting
Affordable cloud servers in 3 US Locations - WHT Specials


  #5  
Old
New Member
 
Join Date: Feb 2012
Posts: 3
Hello again.

I thought that my problem dissapeared but yesterday i noticed the same errors again.

I'm pretty sure that my memory is not limited, as i work with my provider for a long period of years now, and i trust them.

Here is what i get after typing cat /proc/user_beancounters:
Code:
[root@vserver /]# cat /proc/user_beancounters
Version: 2.5
       uid  resource                     held              maxheld                                                                                                      barrier                limit              failcnt
      111:  kmemsize                 15552357             51200000             5                                                                                        1200000             51200000                19220
            lockedpages                     0                    6                                                                                                         2048                 2048                    0
            privvmpages                119652               209268                                                                                                       262144               262144                    0
            shmpages                      911                 1615                                                                                                       128000               128000                    0
            dummy                           0                    0                                                                                                            0                    0                    0
            numproc                        67                  150                                                                                                          500                  500                    0
            physpages                   42054               136242                                                                                                            0            200000000                    0
            vmguarpages                     0                    0                                                                                                       262144               262144                    0
            oomguarpages                42054               136263                                                                                                       262144               262144                    0
            numtcpsock                     38                  169                                                                                                         4096                 4096                    0
            numflock                        6                    8                                                                                                         2048                 2048                    0
            numpty                          1                    1                                                                                                           32                   32                    0
            numsiginfo                      0                   22                                                                                                         1024                 1024                    0
            tcpsndbuf                  743568              6096328             2                                                                                        0480000             20480000                    0
            tcprcvbuf                  631064              2567184             2                                                                                        0480000             20480000                    0
            othersockbuf                21928              2233200             2                                                                                        0480000             20480000                    0
            dgramrcvbuf                     0                29336             1                                                                                        0240000             10240000                    0
            numothersock                   33                   89                                                                                                         2048                 2048                    0
            dcachesize                      0                    0             1                                                                                        0240000             10240000                    0
            numfile                      3330                 6564                                                                                                        50000                50000                    0
            dummy                           0                    0                                                                                                            0                    0                    0
            dummy                           0                    0                                                                                                            0                    0                    0
            dummy                           0                    0                                                                                                            0                    0                    0
            numiptent                      24                   24                                                                                                         2048                 2048                    0
Does it look okay? What else can i try? Any suggestions please?

  #6  
Old
Russ
 
Join Date: Mar 2002
Location: Philadelphia, PA
Posts: 2,508
I always find it helpful to look at 'VMPeak' of an individual process to see if at any point usage went up explicitly.

This is the maximum virtual memory space used by the process, in kB (1024 bytes).

You can review i.e: /proc/1617/status

Format is: /proc/pid/status

__________________
Linux junkie | steward.io

  #7  
Old
Warp Speed!
 
Join Date: Feb 2008
Location: Houston, Texas, USA
Posts: 2,846
Hopefully you've had Sysstat installed all along. See what sar -r returns.

Regards

__________________
|- UNIXY :: Fully Managed Servers and Clusters Since 2006
|- DC POP :: Houston, Los Angeles, Atlanta, & Rotterdam NL
|- Managed Magento Varnish Servers w/ ESI. < 250ms Page Load / TTFB
L- We LOVE helping our clients!

  #8  
Old
New Member
 
Join Date: Feb 2012
Posts: 3
Quote:
Originally Posted by viGeek View Post
I always find it helpful to look at 'VMPeak' of an individual process to see if at any point usage went up explicitly.

This is the maximum virtual memory space used by the process, in kB (1024 bytes).

You can review i.e: /proc/1617/status

Format is: /proc/pid/status
Thank you.
I tried with random pid, and here is the results:
Code:
[root@vserver 9582]# cat status
Name:   php
State:  S (sleeping)
SleepAVG:       63%
Tgid:   9582
Pid:    9582
PPid:   16131
TracerPid:      0
FNid:   111
Uid:    0       0       0       0
Gid:    0       0       0       0
FDSize: 256
Groups:
envID:  111
VPid:   9582
PNState:        0
StopState:      0
VmPeak:    28544 kB
VmSize:    28540 kB
VmLck:         0 kB
VmHWM:     15224 kB
VmRSS:     15224 kB
VmData:    10656 kB
VmStk:        88 kB
VmExe:      4264 kB
VmLib:     10724 kB
VmPTE:        72 kB
StaBrk: 0977e000 kB
Brk:    0a194000 kB
StaStk: bf96f6a0 kB
Threads:        1
SigQ:   0/139248
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000001006
SigCgt: 0000000180000000
SigSvd: 0000000000000000
CapInh: 00000000fdcceeff
CapPrm: 00000000fdcceeff
CapEff: 00000000fdcceeff
Cpus_allowed:   7fffffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff
Mems_allowed:   00000000,00000001
TaskUB: 111
MMUB:   111
Anything looks strange there to you?

@UNIXy - sorry, i don't have Sysstat installed.

  #9  
Old
Warp Speed!
 
Join Date: Feb 2008
Location: Houston, Texas, USA
Posts: 2,846
Quote:
Originally Posted by Nightmaster View Post

@UNIXy - sorry, i don't have Sysstat installed.
It's never too late. I'd get it installed. You just need a couple of days worth of history to figure things out.

Cheers
Joe / UNIXY

__________________
|- UNIXY :: Fully Managed Servers and Clusters Since 2006
|- DC POP :: Houston, Los Angeles, Atlanta, & Rotterdam NL
|- Managed Magento Varnish Servers w/ ESI. < 250ms Page Load / TTFB
L- We LOVE helping our clients!

  #10  
Old
Temporarily Suspended
 
Join Date: Mar 2012
Posts: 71
Are you sure the memory limit is not set too low in php.ini ?

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 24 by seachen Web Hosting 9 11-21-2010 12:35 AM
suphp error - Cannot allocate memory kselva Hosting Security and Technology 9 02-15-2010 06:59 AM
Cannot allocate memory error justinbytes Hosting Security and Technology 2 01-19-2010 11:18 PM
iconv: unable to allocate buffer for input: Cannot allocate memory Ba$im Hosting Security and Technology 12 07-01-2009 02:56 AM
"bash: fork: Cannot allocate memory" error wir3d Hosting Security and Technology 13 03-29-2008 02:32 PM

Related posts from TheWhir.com
Title Type Date Posted
Admin Error Brings Down Joyent’s Ashburn Data Center Web Hosting News 2014-05-28 10:18:18
App-Aware Storage Provider Tintri Raises $75M in Pre-IPO Funding Round Web Hosting News 2014-02-13 12:56:26
Turnkey Internet Launches Cloud Server Reseller Platform Web Hosting News 2014-01-31 14:01:32
Unusual DNS Error Leads to Internet Outage in China Web Hosting News 2014-01-21 12:16:24
Rackspace Adds Redis as a Service with Exceptional Cloud Services Acquisition Web Hosting News 2013-04-01 10:55:48


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?