hosted by liquidweb


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

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
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 04-20-2010, 09:33 AM
imtheboss imtheboss is offline
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.
Reply With Quote


Sponsored Links
  #2  
Old 04-20-2010, 09:56 AM
madaboutlinux madaboutlinux is offline
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,493
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

__________________
Linux WebHosting Solutions
http://linuxhostingsupport.net/blog/
MSN: madaboutlinux@hotmail.com

Reply With Quote
  #3  
Old 04-20-2010, 10:15 AM
imtheboss imtheboss is offline
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.

Reply With Quote
Sponsored Links
  #4  
Old 04-20-2010, 10:20 AM
assistanz247 assistanz247 is offline
Web Hosting Master
 
Join Date: Nov 2004
Location: India
Posts: 1,069
Increasing the MaxClients/ServerLimit is the only option here.

__________________
Outsourced Webhosting Support / cPanel Server Management Since 2004
Technical Support / Web Development / Billing Support

Reply With Quote
  #5  
Old 04-20-2010, 10:46 AM
imtheboss imtheboss is offline
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?

Reply With Quote
  #6  
Old 04-20-2010, 10:50 AM
madaboutlinux madaboutlinux is offline
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,493
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.

__________________
Linux WebHosting Solutions
http://linuxhostingsupport.net/blog/
MSN: madaboutlinux@hotmail.com

Reply With Quote
  #7  
Old 04-20-2010, 10:57 AM
imtheboss imtheboss is offline
Newbie
 
Join Date: Apr 2010
Posts: 9
Ok. Thanks for answers.

Topic can be closed.

Reply With Quote
  #8  
Old 04-20-2010, 11:49 AM
imtheboss imtheboss is offline
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.
Reply With Quote
  #9  
Old 04-20-2010, 11:51 PM
assistanz247 assistanz247 is offline
Web Hosting Master
 
Join Date: Nov 2004
Location: India
Posts: 1,069
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.

__________________
Outsourced Webhosting Support / cPanel Server Management Since 2004
Technical Support / Web Development / Billing Support

Reply With Quote
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
Researchers Urge System Admins to Check for New Apache Web Server Backdoor Malware Web Hosting News 2013-05-01 11:35:53
Apache Web Server Adds Cloud Capabilities with First Major Update in 5 Years Web Hosting News 2012-02-21 16:05:02
The Apache Software Foundation Launches Hadoop v1.0 Web Hosting News 2012-01-05 18:29:16
Oracle is the Latest Vendor to Apply Patch for Apache Killer Flaw Web Hosting News 2011-09-19 14:43:58
Patch Released for Apache Software DDoS Vulnerability Web Hosting News 2011-08-26 15:03: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?
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?