Results 1 to 11 of 11
  1. #1

    VPS running out of memory :(

    First off sorry if this is the wrong section I couldn't quite from a proper one for my question. I'm having a problem where my memory is sucked up by I believe PHP. At first it was one a week but now its almost happening daily where all my memory is used up and I can't access the server anymore.

    Once when it happened I had my host go in and he said PHP used up all my memory and both 512 of mem and 512 of swap were used up. Now I can ping the box when this happens but I can't ping via domain name and can't SSH in via ip or domain.

    I'm a Windows guy and honestly I'm not sure where to start with this in linux I've been trying to look on Google and what not but I just can't seem to find anything decent for a starting point.

    My server is running CENTOS 5 x64 Cpanel with the shoutcast admin panel addon and fantastico I have 7 or so domains but many of them just run Wordpress. I'm just trying to figure out how can I find out what is causing the issue so I don't have to reboot my server everyday.

    Thanks everyone for any help I appreciate it.

  2. #2
    Join Date
    Apr 2009
    inside wht
    You may need to upgrade the vps. Also try to find which domain have more access and usage . Change php to DSO options and set apache limits too.
    Now Available The first Support Brand for Startup Hosting Companies

    Sales : sales @ | Skype us : SyslintSkype | Call us : (+91)6007799

  3. #3
    Join Date
    Aug 2010
    Its time to Hire a System Admin, you can find some good ones in WHT offers section.
    █ l Host Monsterz Pvt Ltd • Superb Support Network • DES 64 bit Secured Network
    l Linux Shared/Reseller Hosting • Virtual Server • Dedicated Server • cPanelฎ
    █ l Nginx • Softaculous • Fantastico • RVSite Builder • WHMCS • 24x7 Available Server Admin
    l Premium Managed VPS • Reliable & Sustainable • Instant Setup • Raid Drives

  4. #4
    Join Date
    May 2011
    optimize apache/mysql & kill not needed stuff can save some ram.

  5. #5
    Join Date
    Nov 2010
    some of the work can be done from WHM but you'll have to go elbow deep in SSH to do what people here suggest.
    My money is on a wordpress site with bad plugins. Been there, not very nice expericence.

    1)Hire a system administrator or start learning yourself.
    2)Upgrade your VPS, 512 RAM is not enough
    cPanel HelpNet - cPanel, Linux, Virtualization tutorials, guides and more

  6. #6
    Join Date
    Aug 2001
    512MB simply isn't enough for what you are running... you can probably make it work, but it's not going to be close to optimal at all. bite the bullet and get more RAM (I wouldn't count the swap as available memory which I think they suggested to you). - Reseller, VPS and dedicated hosting - Friendly Customer Service - DirectAdmin - cPanel - InterWorx

  7. #7
    You could use a cache for Wordpress to make nearly no sql queries and providing only static HTML content via apache. One of this wonderful plugins is 'Quick Cache'. It helped us alot!

  8. #8
    Join Date
    May 2011
    Quote Originally Posted by sexyflanders View Post
    7 or so domains but many of them just run Wordpress.
    how much unique visitors a day?

  9. #9
    Join Date
    Apr 2011
    You do hosting and streaming from this server?

  10. #10
    Join Date
    Oct 2001
    Do the 7 sites receive much traffic? cPanel has done a tremendous job at reducing it's memory footprint, but with the number of tasks it's involved in, it still does use quite a bit of memory. I would recommend looking switching to using PHPSuexec to see if there might be a process that is hanging around as well.

    It may simply be time to add a little more RAM to your VPS though.

  11. #11
    Thanks so much guys for the replies. So yeah I host 7 sites but at the end of the month maybe 40GB uses in total traffic none of the sites get much in the way of hits.

    I was able to fix the issue by changing the number of connections and such I've seemed to get memory under control I was seeing a lot of OOM killer processes for PHP. Since changing the number of PHP connections and such the server has been a tad sluggish but honestly I'm just happy everything is running and the server hasn't gone down. Should I probably upgrade the ram maybe but honestly until I really get pushed to do so I won't.

    PHP was the issue messing around with PHP.ini settings and hit and miss fixed it although I must say I made a huge mistake I used that auto calculate memory usage and I took down all my wordpress sites with error 500's after some figuring out what happened I erased it and fixed the issue.

    typical BW usage:
    April 2011:36.87 Gig
    March 2011:22.84 Gig

    Root is always using the most with 23% used depending on how the server looks I may get an extra 512mb but already spending $30 a month and I love my host but I have my spending limits too.

    Thanks everyone for the assistance with this.

Similar Threads

  1. VPS crashing due to running out of memory
    By thiokol in forum Hosting Security and Technology
    Replies: 16
    Last Post: 06-21-2009, 08:53 PM
  2. Cpanel VPS - Plenty of free memory, but 'committed' memory exceeds VPS RAM. Why?
    By tnedator in forum Hosting Security and Technology
    Replies: 3
    Last Post: 06-12-2009, 02:56 PM
  3. Physical memory running out
    By matthisco in forum Web Hosting
    Replies: 14
    Last Post: 05-15-2009, 04:41 AM
  4. VPS running out of memory
    By ~kev~ in forum VPS Hosting
    Replies: 16
    Last Post: 06-04-2007, 03:55 PM
  5. Replies: 4
    Last Post: 10-13-2006, 09:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts