hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : VPS problem. Apache?
Reply

Forum Jump

VPS problem. Apache?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Newbie
 
Join Date: Apr 2010
Posts: 9

VPS problem. Apache?


Hello,

I have some problem. I have one site on my vps.
- I dont use php scripts.
- Only clean and optimized html/css with small images.
- The most active page has around 20-25kb with images. Whole site has around 130kb.

When my website has around 2000 peoples online site is not available for others.

Load average with 2000people is around:
Load Average 0.05, 0.05, 0.05
CPU 0.00% up to 0.05%
Memory 260MB from 4gb.

My cpu:
GenuineIntel, Intel(R) Xeon(R)CPU E5504 @ 2.00GHz
4gb of ram.
Plesk 9.3.0

Apache settings:
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>

<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>


EDIT:
In var/log/httpd/access_log and acces_log1 i vae around 9000 errors:
::1 - - [18/Apr/2010:00:58:37 +0300] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"



Could somebody tell what could be wrong with my vps?

Thanks


Last edited by imtheboss; 04-20-2010 at 09:45 AM.


Sponsored Links
  #2  
Old
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,543
It is very difficult to track down the exact problem by just looking at those figures, however, what I feel is Apache is reaching the "MaxClients" limit. Try increasing MaxClients and ServerLimit to say 500 and restart the httpd service.

BTW, you can search MaxClients in the Apache error logs to see if it is really the root cause of the problem.

Quote:
grep MaxClients /var/log/httpd/error_log

__________________
| LinuxHostingSupport.net
| Server Setup | Security | Optimization | Troubleshooting | Server Migration
| Monthly and Task basis services.
| MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux

  #3  
Old
Newbie
 
Join Date: Apr 2010
Posts: 9
My Error Log:
Quote:
/var/log/httpd/error_log:[Sun Apr 18 21:53:58 2010] [error] server reached MaxCl ients setting, consider raising the MaxClients setting
/var/log/httpd/error_log:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
/var/log/httpd/error_log: lowering MaxClients to 10. To increase, please see th e ServerLimit
/var/log/httpd/error_log:[Mon Apr 19 22:14:09 2010] [error] server reached MaxCl ients setting, consider raising the MaxClients setting
/var/log/httpd/error_log:[Mon Apr 19 22:22:11 2010] [error] server reached MaxCl ients setting, consider raising the MaxClients setting
/var/log/httpd/error_log:[Mon Apr 19 22:42:07 2010] [error] server reached MaxCl ients setting, consider raising the MaxClients setting
/var/log/httpd/error_log.1:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
/var/log/httpd/error_log.1: lowering MaxClients to 10. To increase, please see the ServerLimit
/var/log/httpd/error_log.2:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
/var/log/httpd/error_log.2: lowering MaxClients to 10. To increase, please see the ServerLimit
/var/log/httpd/error_log.2:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
/var/log/httpd/error_log.2: lowering MaxClients to 10. To increase, please see the ServerLimit
/var/log/httpd/error_log.2:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
/var/log/httpd/error_log.2: lowering MaxClients to 10. To increase, please see the ServerLimit
/var/log/httpd/error_log.2:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
/var/log/httpd/error_log.2: lowering MaxClients to 10. To increase, please see the ServerLimit
/var/log/httpd/error_log.2:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
/var/log/httpd/error_log.2: lowering MaxClients to 10. To increase, please see the ServerLimit
/var/log/httpd/error_log.2:[Sat Apr 10 23:21:55 2010] [error] server reached Max Clients setting, consider raising the MaxClients setting
/var/log/httpd/error_log.2:[Sun Apr 11 00:09:48 2010] [error] server reached Max Clients setting, consider raising the MaxClients setting
/var/log/httpd/error_log.2:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
/var/log/httpd/error_log.2: lowering MaxClients to 10. To increase, please see the ServerLimit

I have increased now MaxClients and ServerLimits to 500. I will check today how it will work with more than 2000 peoples online.

Thanks for reply.

Sponsored Links
  #4  
Old
Web Hosting Master
 
Join Date: Nov 2004
Location: India
Posts: 1,101
Increasing the MaxClients/ServerLimit is the only option here.

__________________
AssistanZ - Beyond Boundaries...
Cloudstack Consultancy / 24x7 Web Hosting Support / 24x7 Server Management / Infrastructure Management Services
Web & Mobile Apps Development / Web Designing Services / Php, Grails, Java Development


  #5  
Old
Newbie
 
Join Date: Apr 2010
Posts: 9
Is there any limit of MaxClients/ServerLimit or i can increase if cpu/memory/server load is still low?

  #6  
Old
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,543
You can increase it... however a value of around 2000 should be ideal in case of your server but again, no figures can be accurate unless the server is checked thoroughly during the peak hours.

__________________
| LinuxHostingSupport.net
| Server Setup | Security | Optimization | Troubleshooting | Server Migration
| Monthly and Task basis services.
| MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux

  #7  
Old
Newbie
 
Join Date: Apr 2010
Posts: 9
Ok. Thanks for answers.

Topic can be closed.

  #8  
Old
Newbie
 
Join Date: Apr 2010
Posts: 9
Quote:
Originally Posted by imtheboss View Post
Ok. Thanks for answers.

Topic can be closed.
EDIT: Not Yet.

I do that what you guys said but i have this problem again when i have around 2000 peoples ;/

Quote:
[Tue Apr 20 18:49:43 2010] [error] server reached MaxClients setting, consider r aising the MaxClients setting
[Tue Apr 20 19:45:15 2010] [error] server reached MaxClients setting, consider r aising the MaxClients setting
[Tue Apr 20 19:49:24 2010] [error] server reached MaxClients setting, consider r aising the MaxClients setting



Last edited by imtheboss; 04-20-2010 at 12:01 PM.
  #9  
Old
Web Hosting Master
 
Join Date: Nov 2004
Location: India
Posts: 1,101
If this load is normal for your sites then you may need to go for a better server and get an expert to configure your apache. If this not normal and something happening recently then some of your site is having bugs/coding errors/DDOS. Also check you have latest version of php softwares running in that site.

__________________
AssistanZ - Beyond Boundaries...
Cloudstack Consultancy / 24x7 Web Hosting Support / 24x7 Server Management / Infrastructure Management Services
Web & Mobile Apps Development / Web Designing Services / Php, Grails, Java Development


Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache problem VPS etusha Hosting Security and Technology 4 02-22-2008 02:01 PM
php problem? Apache problem? Mime? Script can't do upload.... galacnet Hosting Security and Technology 7 05-30-2005 11:15 AM
problem with permissions being set apache.apache VagrantHost Hosting Software and Control Panels 0 07-29-2004 01:33 PM
apache problem... switch from cgi to apache module URGENT! needhelpcom Hosting Security and Technology 8 06-07-2004 06:53 AM
HELP - Apache problem twrs Dedicated Server 2 10-10-2003 02:38 AM

Related posts from TheWhir.com
Title Type Date Posted
Microsoft Gains Most Websites in May Netcraft Web Server Survey Web Hosting News 2014-05-09 11:38:05
Apache Market Share Falls in Netcraft October Web Server Survey Web Hosting News 2013-10-04 14:34:11
Apache Market Share Dips Slightly in June Netcraft Web Server Survey Web Hosting News 2013-06-06 13:40:21
Researchers Urge System Admins to Check for New Apache Web Server Backdoor Malware Web Hosting News 2013-05-01 11:35:53
CloudStack 4.0 Open Source Cloud Software Released as Apache Incubator Project Web Hosting News 2012-11-08 13:54:10


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?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

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?