Solved

Apache sleeping when inactive

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

733 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