Solved

Apache sleeping when inactive

Posted on 2004-04-22
2
746 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

23 Experts available now in Live!

Get 1:1 Help Now