hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Apache slow but light server load
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

Apache slow but light server load

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 07-01-2005, 03:30 AM
jimmy_a jimmy_a is offline
Newbie
 
Join Date: Jul 2005
Posts: 6

Apache slow but light server load


Hello,

I rund a dedicated webserver and I have problems with the Apache webserver. It loads websites very slowly. The amount of users accessing the website is very high though, but for me it is difficult to understand why the server load at Cpanel is low (0.28 with 2 CPU´s) and memory usage is just 31%.
Is that really possible that Apache goes down while the overall server load is low (according to Cpanel). Is there a way to give the Apache webserver more server ressources, because obviously the server is ok. Here are details of the server:

Linux OS: Centos 3.5
Kernel Version(uname -r) 2.4.21-32.0.1.ELsmp
Hardware Information: Pentium 4 HT, 3.0 Ghz, 1024MB RAM
Control Panel(if any) Cpanel 10.2.0-RELEASE 82
Apache 1.3.33 (Unix)

Any help appreciated, the server is managed, but the hoster insists that nothing can be done to solve the problem, just too many user accessing the site....

Reply With Quote


Sponsored Links
  #2  
Old 07-01-2005, 03:48 AM
aikmedia aikmedia is offline
Disabled
 
Join Date: Jun 2005
Posts: 27
Try to manipulate in this settings in httpd.conf file:

MinSpareServers 5
MaxSpareServers 10
StartServers 5

Maybe it will help

remember to restart apache after changing this values

Adam

Reply With Quote
  #3  
Old 07-01-2005, 03:51 AM
jimmy_a jimmy_a is offline
Newbie
 
Join Date: Jul 2005
Posts: 6
Hi Adam,

thanks, will this allocate more server ressources to Apache?

Jim

Reply With Quote
Sponsored Links
  #4  
Old 07-01-2005, 03:53 AM
aikmedia aikmedia is offline
Disabled
 
Join Date: Jun 2005
Posts: 27
This will run more server instances , so if more users will come httpd will wait for them instead of running next httpd process everytime, try it

Reply With Quote
  #5  
Old 07-01-2005, 05:02 AM
bijo bijo is offline
WHT Addict
 
Join Date: Jun 2005
Location: India
Posts: 123
Quote:
Originally posted by aikmedia
Try to manipulate in this settings in httpd.conf file:

MinSpareServers 5
MaxSpareServers 10
StartServers 5

Maybe it will help

remember to restart apache after changing this values

Adam
Hello,

And also change the value of MaxClients from 150 to a higher value. It should solve your problem.

Let me know the status

With regards,
Bijo

Reply With Quote
  #6  
Old 07-01-2005, 05:59 AM
jimmy_a jimmy_a is offline
Newbie
 
Join Date: Jul 2005
Posts: 6
now the httpd has the following configuration:


MinSpareServers 10
MaxSpareServers 35
StartServers 10
MaxClients 250

is that OK?

Reply With Quote
  #7  
Old 07-01-2005, 06:12 AM
bijo bijo is offline
WHT Addict
 
Join Date: Jun 2005
Location: India
Posts: 123
Quote:
Originally posted by jimmy_a
now the httpd has the following configuration:


MinSpareServers 10
MaxSpareServers 35
StartServers 10
MaxClients 250

is that OK?
Hello,

Its right. I think, If the site has very high traffic, you can change the Max Client option to 400 or 450. and check the status. also you should check the load on the server.

Let me know the status

With regards,
Bijo

Reply With Quote
  #8  
Old 07-01-2005, 11:45 AM
jimmy_a jimmy_a is offline
Newbie
 
Join Date: Jul 2005
Posts: 6
thank you very much for your help, it is now a little bit better, but the website still does not load fast enough, but maybe these are the hardware limits.
It is adult content we have on that server and we have been added by a major link list, but I am really surprised what a traffic this can cause. The site owner of that link list wrote me he has 40000 unique visitors a day, and I am wondering what a server he must have to handle all this.

One questions for the httpd.conf file. Can I edit that file with a simple text editor and save as a text file and change the file name back to httpd.conf and upload it to the server using SSH?

Jim

Reply With Quote
  #9  
Old 07-01-2005, 12:04 PM
layer0 layer0 is offline
Performance Specialist
 
Join Date: Dec 2004
Location: New York, NY
Posts: 10,338
Why not just nano it?

1) nano httpd.
2) Use the arrow keys to scroll around and make changes.
3) To save press: "CTRL+X"
4) Press "Y"
5) Press "Enter"

Done.

GSV

__________________
MediaLayer, LLC - Lightning fast web hosting since 2005. Ask about our new pure SSD storage platform!
›› First and leading provider of LiteSpeed based hosting combined with enterprise grade hardware.
›› Free Account Migrations, Custom Solutions, and Servers in US, EU, and Asia
›› Our Application Hosting plans outperform the typical VPS. Ask us about special offers on yearly plans!

Reply With Quote
  #10  
Old 07-01-2005, 05:17 PM
layer0 layer0 is offline
Performance Specialist
 
Join Date: Dec 2004
Location: New York, NY
Posts: 10,338
Sorry for double post. But, you can try to install mod_gzip.

http://www.webhostgear.com/249.html

GSV

__________________
MediaLayer, LLC - Lightning fast web hosting since 2005. Ask about our new pure SSD storage platform!
›› First and leading provider of LiteSpeed based hosting combined with enterprise grade hardware.
›› Free Account Migrations, Custom Solutions, and Servers in US, EU, and Asia
›› Our Application Hosting plans outperform the typical VPS. Ask us about special offers on yearly plans!

Reply With Quote
  #11  
Old 07-01-2005, 08:51 PM
The_Overl The_Overl is offline
Junior Guru
 
Join Date: Apr 2005
Location: Sweden
Posts: 241
Have you checked that you're not using all the bandwidth you have?

Reply With Quote
  #12  
Old 07-02-2005, 12:13 AM
jimmy_a jimmy_a is offline
Newbie
 
Join Date: Jul 2005
Posts: 6
but where can I adjust the bandwith the server can use? also the httpd.conf file?

Reply With Quote
  #13  
Old 07-02-2005, 07:38 AM
The_Overl The_Overl is offline
Junior Guru
 
Join Date: Apr 2005
Location: Sweden
Posts: 241
The bandwidth available to your server is decided by your DC, or your internet connection if you run things yourself. If the amount downloaded by visitors comes close to this limit things will start to move significantly slower, because as new downloaders start the old ones havent finished yet, so its like a downward spiral kinda. Just check if you're maxed out or not

Reply With Quote
  #14  
Old 07-02-2005, 06:31 PM
The_Overl The_Overl is offline
Junior Guru
 
Join Date: Apr 2005
Location: Sweden
Posts: 241
Installing mod_gzip (or similar) is a good idea if you have more server power than bandwidth and serve mostly compressable content (usually htmp/text that is, usually not pictures and movies).

Try looking at your access logs (run some log file analysis program like webalizer) and determine what uses bandwidth and see if you can do something about it. If you're maxed out, consider getting more bandwidth, or if thats not affordable in the place your server is in, get a different server and set up a mirror in a place where bandwidth is cheaper.

Sorry about spelling and grammar in this post, English is not my first language and i had a few beers too many this evening...

Reply With Quote
Reply

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
nginx Sees Largest Market Share Growth in Netcraft March Server Survey Web Hosting News 2012-03-05 14:05:29
Apache Web Server Adds Cloud Capabilities with First Major Update in 5 Years Web Hosting News 2012-02-21 16:05:02
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?