hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : VPS Hosting : VPS & memory - my experience
Reply

VPS Hosting Virtual private server discussion and vps hosting solutions. Review VPS hosting providers and offer advice on virtual web hosting solutions. If your service is unavailable, please click here.
Forum Jump

VPS & memory - my experience

Reply Post New Thread In VPS Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 06-05-2008, 01:44 PM
jfm30204 jfm30204 is offline
Junior Guru Wannabe
 
Join Date: Sep 2004
Posts: 41

VPS & memory - my experience


Basically, I screwed up. I came from a shared hosting environment and did not understand the VPS thing well enough. Got in a hurry, bought a 384mb VPS, and transferred a few very low activity sites. I enabled Mailman and Clamd, but made no other changes.

With the server basically idling and doing only a little email, the mem use climbed almost immediately to 390mb or more and processes began crashing. Mailman had gone off the resevation, and that was corrected by the management team - a great bunch, by the way. Usage went down below the 384 limit but then began climbing again to around 400mb. So, we dumped Clamd, and it went down to 291mb but then began climbing again and now sits just under the 384 limit at around 351mb. Who knows where it will top out.

Like I said, this is a different playground, and you need to be ready if you want to play in it. Usually, I do my homework, because, when I don't, I mess up. There is ample testimony on these boards that 512mb is the practical minimum for a cPanel VPS, but I didn't see it. I didn't see it, because I didn't look. Now, my experience seems to support those who say that you should go to 512mb, and I'm not sure that 512 is enough.

Anyway, take a fool's advice and do more research than I did before moving from a shared environment to a VPS.

Incidentally, I didn't mention the name of the VPS host, because I didn't want to imply that any of this was their fault. I like them a lot and wish I could stay with them, but this was probably not the right time.

Jere

Reply With Quote


Sponsored Links
  #2  
Old 06-05-2008, 04:21 PM
PCS-Chris PCS-Chris is offline
Premium Member
 
Join Date: Dec 2005
Location: Berkshire, UK
Posts: 2,851
SpamAssassin is the main problem for people with small VPS's and cPanel. With some basic optimization you can easily run cPanel < 256MB infact - even easier with cPanel VPS Optimized.

__________________
System Administrator
» Follow me on twitter: Here

Reply With Quote
  #3  
Old 06-05-2008, 04:38 PM
CF-Rick CF-Rick is offline
Web Hosting Guru
 
Join Date: Nov 2006
Posts: 263
If you have a managed server your host should be able to do all the optimizations for you (depending on the level of management). I'd send them an email and see if they're able to help you.

Reply With Quote
Sponsored Links
  #4  
Old 06-05-2008, 05:14 PM
Douglas Douglas is offline
Community Guide
 
Join Date: Apr 2003
Location: Atlanta, Jawja
Posts: 2,905
Jere, definitely investigate going onto the VPS Optimized version of cPanel. I've heard of some folks getting RAM usage down to as little as 125 megs of RAM for cPanel.

Be warned that SpamAssassin is a memory hog and one of the first thing advocated for complete removal from running. ClamAV can be a resource hog, if not properly tuned. There are a few tutorials out there on how to properly optimize your VPS running VPS Optimized cPanel, so do some searches via google or cpanel.net

__________________
Douglas Hazard - Blog: DLHazard.com | @BearlyDoug on Twitter
FortressITX.com Infrastructure Operations Analyst
(Dang it! I got roped back in! )
GridironHistory.com - Your ONE source for Collegiate Football History!

Reply With Quote
  #5  
Old 06-05-2008, 07:26 PM
jfm30204 jfm30204 is offline
Junior Guru Wannabe
 
Join Date: Sep 2004
Posts: 41
Quote:
Originally Posted by Douglas View Post
Be warned that SpamAssassin is a memory hog and one of the first thing advocated for complete removal from running. ClamAV can be a resource hog, if not properly tuned. There are a few tutorials out there on how to properly optimize your VPS running VPS Optimized cPanel, so do some searches via google or cpanel.net
Spam Assassin doesn't appear to be the problem. Here's top output:

[root@host ~]# top
top - 18:20:35 up 3 days, 19:15, 2 users, load average: 0.05, 0.02, 0.00
Mem: 1048576k total, 357516k used, 691060k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30083 nobody 15 0 94760 35m 13m S 0 3.5 0:18.46 httpd
30079 nobody 15 0 97956 42m 17m S 0 4.1 0:18.19 httpd
30081 nobody 15 0 97.8m 40m 12m S 0 3.9 0:16.52 httpd
3481 nobody 18 0 93892 40m 19m S 0 3.9 0:16.34 httpd
3480 nobody 15 0 95716 42m 19m S 0 4.1 0:16.27 httpd
30072 nobody 15 0 98.7m 41m 13m S 0 4.1 0:16.13 httpd
30074 nobody 15 0 99000 43m 17m S 0 4.2 0:15.55 httpd
30077 mysql 15 0 48240 19m 4024 S 0 1.9 0:15.02 mysqld
30080 nobody 15 0 95840 40m 17m S 0 4.0 0:14.48 httpd
30069 nobody 15 0 93304 33m 13m S 0 3.3 0:14.08 httpd
24475 named 18 0 108m 4088 1944 S 0 0.4 0:08.08 named
13812 root 15 0 40072 36m 2380 S 0 3.5 0:05.88 spamd
3700 root 34 19 10192 6608 1904 S 0 0.6 0:05.01 cpanellogd
22238 root 15 0 2104 1056 824 R 0 0.1 0:04.80 top
3739 mailman 18 0 10708 6688 2556 S 0 0.6 0:04.20 python2.4
3742 mailman 18 0 10708 6696 2556 S 0 0.6 0:04.05 python2.4
13672 nobody 15 0 95804 35m 12m S 0 3.5 0:03.53 httpd
3625 root 18 0 7636 5116 1720 S 0 0.5 0:03.40 tailwatchd
25621 nobody 18 0 43380 11m 1284 S 0 1.1 0:03.19 dccifd

Reply With Quote
  #6  
Old 06-05-2008, 07:29 PM
rghf rghf is offline
Web Hosting Master
 
Join Date: Jun 2003
Location: UK
Posts: 6,566
Run top again then press M (capital) to sort by RAM usage and past that

__________________
Rus Foster - Managing Director
VPS.net - Cloud Hosting At Its Finest -21 locations and growing!
VPNHQ - Come get yourself a lovely VPN

Reply With Quote
  #7  
Old 06-05-2008, 08:44 PM
jfm30204 jfm30204 is offline
Junior Guru Wannabe
 
Join Date: Sep 2004
Posts: 41
It was sorted. For some reason in Putty, it seems to come unsorted in copying to clipboard. I'm attaching a jpg screenshot.

Reply With Quote
  #8  
Old 06-05-2008, 09:34 PM
dale dale is offline
Arbeitsloser
 
Join Date: Mar 2005
Location: Cardboard box
Posts: 942
How low activity are these low activity sites?

__________________
distrACT -- an open community

Reply With Quote
  #9  
Old 06-05-2008, 09:48 PM
jfm30204 jfm30204 is offline
Junior Guru Wannabe
 
Join Date: Sep 2004
Posts: 41
Quote:
Originally Posted by dale View Post
How low activity are these low activity sites?
Except for modest mail use on my account, nearly zero activity.

Reply With Quote
  #10  
Old 06-05-2008, 10:42 PM
sleddog sleddog is offline
Web Hosting Master
 
Join Date: Mar 2005
Location: Labrador, Canada
Posts: 873
~40M seems a very fat Apache. I'd look at recompiling Apache in WHM. Unselect modules you don't really need. You should be able to significantly reduce the size of those Apache processes.

If your low-traffic, you can also reduce the number of Apache processes. How you do it depends on the Apache version (1.x or 2.x) . For a low traffic server you can cut the default numbers at least in half.

__________________
sleddog

Reply With Quote
  #11  
Old 06-06-2008, 05:25 AM
artan artan is offline
Newbie
 
Join Date: Apr 2008
Posts: 14
You can ditch Apache-monster and switch to more lightweight alternatives popular on small VPS
Eg I use nginx and it takes around 5Mb RSS
h**p://hostingfu.com/article/nginx-vs-lighttpd-for-a-small-vps

Reply With Quote
  #12  
Old 06-06-2008, 06:28 AM
Yogesh Sarkar Yogesh Sarkar is offline
Junior Guru
 
Join Date: Jun 2006
Location: India
Posts: 241
What is the timeout for Apache processes?

__________________
Webpreneur Tips

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
VMware Study Finds 62 Percent of Indian Organizations Increasing Cloud Training Budgets Web Hosting News 2012-10-30 16:49:55
Peak Hosting Launches Dell R815 Dedicated Server for Large Scale Memory Requirements Web Hosting News 2012-07-13 14:31:31
Web Host InMotion Upgrades VPS with More Memory, Bandwidth Web Hosting News 2012-03-08 14:15:08
Linux OS CloudLinux Now Compatible with Swedish Automation Platform Atomia Web Hosting News 2012-01-18 14:18:16
Web Host Amazon Web Services Launches ElastiCache Service Web Hosting News 2011-08-23 17:53:00


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?
Advertisement:
Web Hosting News:



 

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?