Results 1 to 9 of 9
Thread: VPS problem. Apache?
-
04-20-2010, 09:33 AM #1Newbie
- 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?
ThanksLast edited by imtheboss; 04-20-2010 at 09:45 AM.
-
04-20-2010, 09:56 AM #2Web Hosting Master
- Join Date
- Jul 2009
- Posts
- 1,568
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.
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
-
04-20-2010, 10:15 AM #3Newbie
- Join Date
- Apr 2010
- Posts
- 9
My Error Log:
/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.
-
04-20-2010, 10:20 AM #4Web Hosting Master
- Join Date
- Nov 2004
- Location
- India
- Posts
- 1,104
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
-
04-20-2010, 10:46 AM #5Newbie
- 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?
-
04-20-2010, 10:50 AM #6Web Hosting Master
- Join Date
- Jul 2009
- Posts
- 1,568
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
-
04-20-2010, 10:57 AM #7Newbie
- Join Date
- Apr 2010
- Posts
- 9
Ok. Thanks for answers.
Topic can be closed.
-
04-20-2010, 11:49 AM #8Newbie
- Join Date
- Apr 2010
- Posts
- 9
EDIT: Not Yet.
I do that what you guys said but i have this problem again when i have around 2000 peoples ;/
[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.
-
04-20-2010, 11:51 PM #9Web Hosting Master
- Join Date
- Nov 2004
- Location
- India
- Posts
- 1,104
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
Similar Threads
-
apache problem VPS
By etusha in forum Hosting Security and TechnologyReplies: 4Last Post: 02-22-2008, 02:01 PM -
php problem? Apache problem? Mime? Script can't do upload....
By galacnet in forum Hosting Security and TechnologyReplies: 7Last Post: 05-30-2005, 11:15 AM -
problem with permissions being set apache.apache
By VagrantHost in forum Hosting Software and Control PanelsReplies: 0Last Post: 07-29-2004, 01:33 PM -
apache problem... switch from cgi to apache module URGENT!
By needhelpcom in forum Hosting Security and TechnologyReplies: 8Last Post: 06-07-2004, 06:53 AM -
HELP - Apache problem
By twrs in forum Dedicated ServerReplies: 2Last Post: 10-10-2003, 02:38 AM