Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
October 31, 2014, 04:57:51 AM

Pages: [1]   Go Down
  Print  
Author Topic: reducing RAM usage on VPS  (Read 4645 times)
pOnju
Newbie
*
Offline Offline

Posts: 4


« on: November 20, 2009, 03:21:50 AM »

Hello,

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.

Thanks,

- pOnju
Logged
conga3
Knows just enough to get in trouble.
Spacescooter Operator
*****
Offline Offline

Posts: 40


WWW
« 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!
Logged
bryantrv
Guest
« 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.
Logged
JoshuaK
SysAdmin Supervisor
Pong! (the videogame) Master
*****
Offline Offline

Posts: 26



WWW
« 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 » Logged

steve schmidt
Intergalactic Superstar
*****
Offline Offline

Posts: 170


« 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...
Logged

At mantra we provide world class mobile app development Services
Pages: [1]   Go Up
  Print  
 
Jump to: