Solved

Apache sleeping when inactive

Posted on 2004-04-22
2
749 Views
Last Modified: 2006-11-17
Hi All,

I'm currently working on a website which runs on a LAMP system (linux, apache, mysql & php). The web hosting company appears to have configured apache to "sleep" when it's been inactive for N minutes... however I can't find how they've done it. I would like to disable this sleep as the web site doesn't have that much traffic so it's effictively slowing down the first http request for each user.

Any ideas where they've set this up? I'm hoping that it's not a configuration set outside the virtual server (i.e: where I can't access!)

Haydn.
0
Comment
Question by:HaydnH
2 Comments
 
LVL 2

Accepted Solution

by:
apdtech earned 250 total points
ID: 10899326
This is not possibly done on apache.  No way - it is a SERVER, which means, it will be serving.  HTTPD stands for "HTTP Daemon" - daemons usually do not go to sleep, but it really negates the idea of running a service and making it sleep.  If a daemon stops responding - it means something is wrong.  If it is Micro$oft, heh, no guarantees regarding anything! All bets are off!.

I am guessing that it is the server that is going to sleep or having issues, but not apache unless they blew the performance tuning MAJORLY.   Check process prioritization, how many processes are running, and what is in the error logs..  

How to know if apache can "sleep" or not - search google (apache sleep).  You will get only a couple rseults, but the most informative would be:
http://httpd.apache.org/docs-2.0/misc/perf-tuning.html
If you read thru this, it will explain how the server handles requests.  
0
 
LVL 8

Author Comment

by:HaydnH
ID: 10899713
Ack I forgot I had this Q open - I spoke to the web hosting company - apparently the web site doesn't have a static IP addy and the way they deal with it forces the apache daemons to sleep while inactive. Sounds completely pointless to me, everytime it sleeps googlebot or similar wakes it - it's just adding a few milliseconds to the load time - frustrating!

Anyway, I'm getting a static IP for the site which they have assured me will stop the sleeping.

I know it's not particularly correct to award you the points - but I can't be bothered posting in CS =P

Haydn.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now