Solved

Apache sleeping when inactive

Posted on 2004-04-22
2
756 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

717 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