Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Apache sleeping when inactive

Posted on 2004-04-22
2
Medium Priority
?
765 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 1000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
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…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

609 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