Lunarpages Web Hosting Forum

Author Topic: reducing RAM usage on VPS  (Read 8154 times)

Offline pOnju

  • Newbie
  • *
  • Posts: 4
reducing RAM usage on VPS
« on: November 20, 2009, 03:21:50 AM »

I've been encountering crashes of my website fairly frequently - about 2-3 times a month ever since I moved to this hosting plan. 

At this point I've been informed that the crashes happen when my VPS runs out of memory.  I've started looking at my VPS from that angle, and even when it just restarts already 405 out of the available 512 MB is eaten up.  Right now the support guys are telling me this is what is needed for the base OS to run properly.

Is there some optimization that can be done?  I don't know if I necessarily need all the services that are currently running - for example I don't need an inbound mail server, and I haven't explicitly configured any cron jobs.

If its really the case that I only have about 100MB buffer on my VPS outside of what's just needed for the bare necessities to run - I mean - sorry to sound a little frustrated, but how is a person really supposed to run a website off of that?

I don't run game servers or video sharing or anything overly fancy - all I run are two things these days, a web forum, and a drawing board for young adults.


- pOnju

Offline conga3

  • Knows just enough to get in trouble.
  • Spacescooter Operator
  • *****
  • Posts: 40
    • Conga3
Re: reducing RAM usage on VPS
« Reply #1 on: November 20, 2009, 05:25:25 AM »
First I would check if your web forum and drawing board software is up-to-date.  Many times scripts have bugs in them that can eat up memory over time, and developers will fix them with updates.

I'm not very knowledgeable about memory usage, and would like to learn more myself.  If someone has a good tool/method for diagnosing the VPS memory usage, that'd be a great start.

Keep us posted on what you find pOnju!


  • Guest
Re: reducing RAM usage on VPS
« Reply #2 on: November 20, 2009, 11:18:11 AM »
Memory usage in Linux is far different than Windows- Linux will always try to use all of the memory, loading everything it can in to it.
512mb is plenty of memory for a single server, and CentOS certainly doesn't need 405 mb just to run- that answer bothers me.

Offline JoshuaK

  • Pong! (the videogame) Master
  • *****
  • Posts: 26
    • Check Out My Blog
Re: reducing RAM usage on VPS
« Reply #3 on: November 26, 2009, 09:06:56 PM »
Hello pOnju,

The first thing I would look at is the size and activity of your databases that run the different functions of your site.  Invision can sometimes cause mysql's memory usage to spike very high. If at all possible you may want to prune or archive items in your forum that are either rarely used or not used anymore.

If that is not a possibility I would go with conga3's suggestion and check for updates to any of your scripts, many times minor revisions have bug fixes and security updates.

Lastly, you may want to have one of the dedicated support staff look at your system's usage and see if they can spot anything, as sometimes it takes a trained eye to catch the cause of issues like this.
« Last Edit: November 26, 2009, 09:20:49 PM by JoshuaK »

Offline steve schmidt

  • Intergalactic Superstar
  • *****
  • Posts: 168
Re: reducing RAM usage on VPS
« Reply #4 on: March 27, 2012, 02:20:36 AM »
You can try Dedicated Server. Scan your full system using good anti-virus. Maybe this can be a big issue for your system. Try this...
At mantra we provide world class mobile app development Services