Web Hosting Forum | Lunarpages


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



Login with username, password and session length
February 09, 2012, 10:07:45 AM

Pages: [1]   Go Down
  Print  
Author Topic: oomguarpages  (Read 3453 times)
Snooty
Spaceship Captain
*****
Offline Offline

Posts: 112


WWW
« on: October 03, 2009, 11:55:17 PM »

I'm having problem with my oomguarpages. First of all, I'm not techy and have no idea what that is, but it's often in the red even though my memory usage is pretty low:



If this happens, my sites will not load and the only way (that I know) to fix it, is to restart the container. My questions are:
- Is this the correct way of fixing things?
- Why is this oomguarpages so high while my recources and rest is low?
- Can you tell if the settings on the second pic are correct or are they set wrong?

Another thing, sometimes it's in the yellow but then my sites won't load either. Why is that? Red I understand but in the yellow it should load right?:


[Edit]Oh and 1 other thing, it seems my sites do not use any CPU power. What's up with that:

« Last Edit: October 04, 2009, 02:35:52 AM by Snooty » Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1394



« Reply #1 on: October 05, 2009, 10:21:25 AM »

Hi Snoity,

As per http://download.swsoft.com/virtuozzo/virtuozzo4.0/docs/en/lin/VzLinuxUBCMgmt/18778.htm:

Quote
The oomguarpages parameter accounts the total amount of memory and swap space used by the processes of a particular Container. The barrier of the oomguarpages parameter is the out-of-memory guarantee.

It is not a surprise that your sites stop working when this limit is reached as this means that your VPS is out of memory to serve new requests. When oomguarpages is red, this means that the hard limit for it is reached and the kernel begins killing processes inside VPS to get some memory free. The yellow color means VPS is at the soft limit (or about to reach the hard limit). Although, this is not the limit but there are still too little memory for new processes to built up to serve services for new connections.

The issue with low memory is usually caused by two reasons: (1) your sites are very popular and require a lot of resources to serve so many clients; (2) you use some not-optimized scripts which consume more resources than it would be sufficient. The problem (1) can be solve by upgrade to a dedicated server only. The problem (2) can be solved by reviewing the coding of scripts you run and disabling the scripts you do not use. For the both issues, there is a temporary solution  to disable services you do not need on the server like, if you use it for www only, disabling email, POP3 and IMAP servers etc.

The settings on the both pictures look fine. As for the CPU, it is not being counted till your VPS starts using more CPU cycles than it is allowed for him to use without interruption for other VPS servers.
Logged

Kind Regards,
Vlad Artamonov
Snooty
Spaceship Captain
*****
Offline Offline

Posts: 112


WWW
« Reply #2 on: October 09, 2009, 03:28:05 AM »

Well, I'm only using an email adress for my site and have a forum. What can I disable? I found that I use the following services:
Web Server (Apache)             
SMTP Server (QMail)          
IMAP/POP3 Server (Courier-IMAP)          
DNS Server (BIND)

Apache and DNS seems important but what does SMTP and IMAP/POP3 do?

[edit]Oh and I found another set of services in Virtuozzo:
- crond
- httpd
- iptables
- mysqld
- psa
- qmail
- smb
- sshd
- syslog
- xinetd

Which of these can be disabled?
« Last Edit: October 09, 2009, 03:44:18 AM by Snooty » Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1394



« Reply #3 on: October 09, 2009, 10:26:12 AM »

Well, I'm only using an email adress for my site and have a forum. What can I disable? I found that I use the following services:
Web Server (Apache)             
SMTP Server (QMail)          
IMAP/POP3 Server (Courier-IMAP)          
DNS Server (BIND)

Apache and DNS seems important but what does SMTP and IMAP/POP3 do?

[edit]Oh and I found another set of services in Virtuozzo:
- crond
- httpd
- iptables
- mysqld
- psa
- qmail
- smb
- sshd
- syslog
- xinetd

Which of these can be disabled?

SMTP and POP3/IMAP need to run so your email address works. The only thing you can try to disable is smb service which is more than likely a SAMBA server that is required to interact with windows machines by providing and accessing windows shares, etc.
Logged

Kind Regards,
Vlad Artamonov
Snooty
Spaceship Captain
*****
Offline Offline

Posts: 112


WWW
« Reply #4 on: October 09, 2009, 01:12:15 PM »

Ok thanks. Well smb is off since I can remember. Does the mail really use a lot of memory? If so, I can just use a hotmail adress or something.
Logged
conga3
Knows just enough to get in trouble.
Spacescooter Operator
*****
Offline Offline

Posts: 39


WWW
« Reply #5 on: October 11, 2009, 12:59:22 PM »

What Forum software are you using?  They can sometimes be resource hogs, and many times need performance tweaking.  Also, check your access logs for suspicious traffic, you might have bots hitting your forum trying to post SPAM.

Logged
Snooty
Spaceship Captain
*****
Offline Offline

Posts: 112


WWW
« Reply #6 on: October 13, 2009, 10:29:23 AM »

I have phpbb. Forum is up to date.
I talked to Support and the reason for all this, is ip numbers that access my site with 50 requests simultaniously. I followed this a few times but the ip's are different each time I check, so blocking them is no use.
Logged
conga3
Knows just enough to get in trouble.
Spacescooter Operator
*****
Offline Offline

Posts: 39


WWW
« Reply #7 on: October 13, 2009, 02:24:24 PM »

I had a similar problem. (vBulletin)  And your forum software being up-to-date only means you have a better chance to stop the attacks from working, not stop them from using up resources during the failed attempts.

What I did to "fix" it was rename some of the file names the bots were trying to attack.

For example, I renamed "register.php" to "register2.php".  Now, the bots trying to access register.php got a 404 and no resources were used.

The idea is, your site has been targeted as a phpbb forum, and your receive attacks specifically designed to break into phpbb files.  By renaming the files to custom names, the bots don't know where forum files are. (although a more sophisticated bot could find them by crawling your site...but this solution assumes they don't do this.)

You'll have to also modify some template files so you don't have broken links throughout your forum, and it will cause issues with upgrading.... but it's a slight fix.

There are other more sophisticated scripts you can find out there to auto-block IPs that are being bad, but I haven't ever implemented any of them, so I can't comment on those.  I just know they are out there and in many different forms.

A file rename solution should help in the short term as you build a more sophisticated solution.



« Last Edit: October 13, 2009, 02:35:05 PM by conga3 » Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1394



« Reply #8 on: October 15, 2009, 04:34:13 AM »


Do you have any addons activated for your forums? Try to disable them as well to see, if this will help. It is also rather possible that your forums are just too popular and require much more resources that are available for VPS.
Logged

Kind Regards,
Vlad Artamonov
Snooty
Spaceship Captain
*****
Offline Offline

Posts: 112


WWW
« Reply #9 on: October 24, 2009, 12:35:29 AM »

I don't have any add-ons on my forum and it's not that popular at all. It really sucks as I have no idea where this load-issue comes from. But anyway, I'm planning to get dedicated soon, and hopefully that will fix the problems. Will try the 'register' trick from conga first though.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: