Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Server memory alerts?
Old 11-30-2010, 09:01 PM Server memory alerts?
BorisTheSpider's Avatar
Junior Talker

Posts: 4
Name: Boris Karlsson
Location: Sweden
Trades: 0
I have a VPS level 3 plan with Hostgator, providing a server memory of 768MB. I only run one website on it. It's an affiliate wordpress blog and I have optimized its speed as much as I can - mostly by using the W3 total cache plugin. Its still not loading as fast as I would like to be however, sometimes having first render times of up to 4 or 6 seconds, and sometimes under a second. (Overall load time is usually up to 10 seconds or so) So I checked my resource alert logs in the power panel - and It looks like every day I have a few yellow and red alerts. Here's an example list:

Nov 30, 2010 10:15:39 AM Green zone slmmemorylimit
Nov 30, 2010 10:10:39 AM Yellow zone slmmemorylimit
Nov 30, 2010 10:09:39 AM Red zone slmmemorylimit
Nov 30, 2010 06:16:39 AM Green zone slmmemorylimit
Nov 30, 2010 06:14:39 AM Red zone slmmemorylimit
Nov 30, 2010 02:33:39 AM Green zone slmmemorylimit
Nov 30, 2010 02:28:39 AM Red zone slmmemorylimit
Nov 30, 2010 01:30:39 AM Green zone slmmemorylimit
Nov 30, 2010 01:29:39 AM Yellow zone slmmemorylimit
Nov 30, 2010 01:26:39 AM Green zone slmmemorylimit
Nov 30, 2010 01:25:39 AM Yellow zone slmmemorylimit
Nov 29, 2010 12:29:39 PM Green zone slmmemorylimit
Nov 29, 2010 12:24:40 PM Yellow zone slmmemorylimit
Nov 29, 2010 12:23:39 PM Red zone slmmemorylimit
Nov 29, 2010 12:22:39 PM Yellow zone slmmemorylimit
Nov 29, 2010 10:27:39 AM Green zone slmmemorylimit
Nov 29, 2010 10:23:39 AM Yellow zone slmmemorylimit
Nov 29, 2010 10:22:39 AM Green zone slmmemorylimit
Nov 29, 2010 10:20:39 AM Red zone slmmemorylimit
Nov 29, 2010 10:19:40 AM Yellow zone slmmemorylimit

Is this normal for my type of traffic, do I need to be concerned yet? According to awstats my traffic for those two days was:

Day------Visits---Pages---Hits---Bandwidth
28 Nov---2144---5719---74380---1.10 GB
29 Nov---2844---8061---98895---1.49 GB

and according to the traffic log in power panel my traffic usage for those two days were:

Nov 28 601.00 MB Incoming 1,699.34 MB Outgoing
Nov 29 492.12 MB Incoming 1,323.03 MB Outgoing

First of all, I take it that its normal that the bandwidth amount shown in the awstats is different than the overall MB amount shown in the traffic log?


Now - how can I find it out what exactly is causing the resource alerts? E.g. what script or applications? Or which visitors? Maybe there some undesirable referrers that drain unnecessary resources. (In my htaccess, I have hotlink prevention set as well as a couple of referrers already blocked)

Is it possible that some of this comes from too much receiving mail? I do have several email addresses set up and get a fair amount of stuff plus a lot of failed delivery notices on an address that is being spoofed (SPF is set). If I delete some of my email addresses (most of them I dont really use anyway), would that help? Or is it that if people/websites continued to sent email to them that it would still drain resources on my server?

I read on some webpage that modifying the Apache Memory Usage Limit can be a solution. But since Im the only user on my VPS, with usage set to unlimited I dont think this can help me in any way?

Is it possible to do some setting that will tell the kernel what processes to kill first in case of a red alert, before going random?

Last but not least, what is TOP command and can it help me here?

Obviously Im asking all these questions in the hope of tweaking/reducing my server memory as I dont think I can afford an upgrade to level 4 which would be 30 dollars more (with 1,1GB memory).

Thanks so much for any insight and help,
Dennis

Last edited by BorisTheSpider; 11-30-2010 at 09:04 PM..
BorisTheSpider is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-05-2010, 12:28 PM Re: Server memory alerts?
SysAssist's Avatar
Novice Talker

Posts: 5
Trades: 0
Install nginx as reverse proxy, serve all static files via nginx instead of apache. nginx usually uses very small amounts of ram compared to apache.

The term slmmemorylimit usually used in virtuozzo containers or openvz. virtuozzo usually won't allow usage of swap so you are left with your ram only.
__________________
I provide server administration and management services. 13 years of experience. PM if help is needed.
SysAssist is offline
Reply With Quote
View Public Profile
 
Old 12-11-2010, 12:17 AM Re: Server memory alerts?
Novice Talker

Posts: 10
Trades: 0
Quote:
Originally Posted by SysAssist View Post
Install nginx as reverse proxy, serve all static files via nginx instead of apache. nginx usually uses very small amounts of ram compared to apache.

The term slmmemorylimit usually used in virtuozzo containers or openvz. virtuozzo usually won't allow usage of swap so you are left with your ram only.
OpenVZ doesn't have slm memory management, only virtuozzo does.

You might want to optimize the vps to serve the content more efficiently. If you can tell us what's exactly on the website I might be able to make recommendations.
tepid is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Server memory alerts?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 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.37601 seconds with 12 queries