Reply
Optimizing VPS with 128 MB RAM
Old 09-12-2006, 01:27 AM Optimizing VPS with 128 MB RAM
Junior Talker

Posts: 7
Hello,

I am new to this web business and I need some help. My VPS has only 128MB of RAM guaranteed (up to 512MB dynamic) and I have problems with slow response times / downtime at peak hours.
What could be wrong? The CPU utilization is never very high so my guess is the small RAM is to blame. I removed unnecessary apache modules and I will do the same with PHP extensions (btw: PHP scripts are extremely simple and short).

Here is the screenshot of 'top' at the time the server was failing to deliver pages (sorry can't link).

img216.imageshack.us/img216/705/topyk9.gif

Thank you!
EFPower is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 09-13-2006, 06:12 PM
$100 - $999 Monthly

Posts: 284
If you happen to use PowerVPS, you can ask them to optimize things for you. In my case, I had them optimize MySQL and it helped tremendously.
__________________
Atomm
Gamers Radio: New and Improved Ad Blending!
Advertisepedia Internet Marketing Blog
Atomm is offline
Reply With Quote
View Public Profile Visit Atomm's homepage!
 
Old 09-14-2006, 09:10 PM
Junior Talker

Posts: 7
Well I'll have to do it by myself I guess. Currently I'm experimenting with apache settings - MaxClients which the error log said was too low.
Its easy for the big guys.. they just add another gig of RAM, while I have to tweak my 128 MB VPS
EFPower is offline
Reply With Quote
View Public Profile
 
Old 09-15-2006, 12:42 PM
59ideas's Avatar
Junior Talker

Posts: 1
Location: China
What kind of traffic are you getting at peak?

I run 5 wordpress blogs with no problem on my 128mb vps. It recently handled a small burst of traffic and was surprise that it had no problem. Am wonder how far I can push it.
59ideas is offline
Reply With Quote
View Public Profile Visit 59ideas's homepage!
 
Old 09-15-2006, 02:06 PM
kthdsn's Avatar
Junior Talker

Posts: 96
My VPS has only 64mb ram. We got around this by using lighter software. We use Lighttpd instead of apache, we found it much easier to set up than apache with all the features we need. We use SQLite instead of MYSQL. We run visitors instead of awstats. You get the picture

Granted we're only running a handfull of very small sites at the moment, but the server seems to be managing really well.
kthdsn is offline
Reply With Quote
View Public Profile Visit kthdsn's homepage!
 
Old 09-15-2006, 02:39 PM
59ideas's Avatar
Junior Talker

Posts: 1
Location: China
Quote:
Originally Posted by kthdsn View Post
We run visitors instead of awstats.
Could you point me to Visitors. I like to take a look.
59ideas is offline
Reply With Quote
View Public Profile Visit 59ideas's homepage!
 
Old 09-15-2006, 02:44 PM
kthdsn's Avatar
Junior Talker

Posts: 96
Yep, it's here http://www.hping.org/visitors/
kthdsn is offline
Reply With Quote
View Public Profile Visit kthdsn's homepage!
 
Old 09-15-2006, 03:42 PM
59ideas's Avatar
Junior Talker

Posts: 1
Location: China
Thanks! I look at webstats quite a bit and looked at many tools and have not come across this yet.

Opensource is truely amazing
59ideas is offline
Reply With Quote
View Public Profile Visit 59ideas's homepage!
 
Old 09-16-2006, 11:49 AM
Junior Talker

Posts: 7
Well I got around 14.000 pageviews per day when I had trouble.

I figured out that apache was using swap file because it ran out of memory so I decreased the maximum number of apache clients. But the number (6 i think) was too low and apache couldn't serve everybody.
Then I set it to 15 clients and I don't have any problems.

I don't really any good statistics, I think I will use Google analytics.
EFPower is offline
Reply With Quote
View Public Profile
 
Old 10-05-2006, 05:51 AM
yung proxy's Avatar
Junior Talker

Posts: 16
Check this out it should really help - webhostingtalk(DOTCOM)/forumdisplay.php?f=108
__________________
VOIPo Coupon
yung proxy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Optimizing VPS with 128 MB RAM
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.17451 seconds with 12 queries