Looking for advice on running a server with multiple httpd deamons

Looking for advice on running a server with multiple httpd deamons

Post by Robert S. Bennet » Mon, 24 Jun 1996 04:00:00



Hello.

I have a server configured with about 30 seperate domains and all of which run their own httpd deamon.
It seems I have to reboot every two days to keep the system from slowing down.  Is there any documentation
on setting up a server this way or does anyone have any advice on how I can keep the server from slowing
down so much?

Any advice would be appreciated.  Thank you.
--
____________________________________
Robert S. Bennett
ADGRAFIX Graphic Design/Web Services
Boston, MA

Web Site: http://www.adgrafix.com
____________________________________

 
 
 

Looking for advice on running a server with multiple httpd deamons

Post by Steff Watki » Tue, 25 Jun 1996 04:00:00



: Hello.

: I have a server configured with about 30 seperate domains and all of which run their own httpd deamon.
: It seems I have to reboot every two days to keep the system from slowing down.  Is there any documentation
: on setting up a server this way or does anyone have any advice on how I can keep the server from slowing
: down so much?

: Any advice would be appreciated.  Thank you.

Hello Robert,

  you may just be able to get away with causing the WebServer to 'hangup';
that is, to 'restart' itself.

I use this trick to get automatic logfile archiving. What you need to do
is to set up a cron job that will call a script which cause the WebServer
to 'hangup'.

Note :- I'm using the most groovy NCSA 151 WebServer

The Perl script I use (a stripped version anyway) does this:

    #!/bin/perl

    # Get the process ID of the 'parent' WebServer. There's probably a more
    # 'elogant' way of doing this!
    open(FOO,'/info/www/logs/httpd.pid');

    close(FOO);

    # Return the process ID of the 'parent' WebServer.
    $pid=$lines[0];

    # Restart the WebServer.
    system('kill','-HUP',"$pid");

The only bit you'll need to change is the line:

    open(FOO,'/info/www/logs/httpd.pid');

so, that this script accesses the 'PidFile' set in the WebServer's
configuration.

Hope this helps,

Steff

: Steff Watkins, UBris Starlink Site Manager
: University of Bristol, Clifton, Bristol, AVON, BS8 1TH, UK
:

: X-400   : /G=Steff/S=Watkins/O=Bristol/PRMD=UK.AC/ADMD= /C=GB/  
: HTTP    : http://sw.cse.bris.ac.uk/
: Phone: +44 177 287869 (external)   3046 / 7651    (internal)  
: 'Ok.. So the .sig's 8 lines long!!! So what???'

 
 
 

Looking for advice on running a server with multiple httpd deamons

Post by Tony Curt » Tue, 25 Jun 1996 04:00:00




Steff> doing this!  open(FOO,'/info/www/logs/httpd.pid');

Well, I think there is a more elegant way: there's no need
to read in the whole file (even though it is likely to be
just one line).

if (open(PID, "/path/to/pid/file")) {
    chomp($pid = <PID>);
    close PID;
    ...

Steff> system('kill','-HUP',"$pid");

`kill' is a perl builtin, viz.

    kill HUP => $pid;

or

    kill('HUP', $pid);

(see `perlipc' manpage)

hth,
tony
--
Tony Curtis, Systems Manager,               European Centre for Parallel
                                            Computing, Vienna
http://www.vcpc.univie.ac.at/%7Etc/         The above message probably has
                                            nothing to do with VCPC

 
 
 

1. Max number of httpd deamons running?

I have chose to setup mys server with multiple httpd deamons running.  Has anyone else out there
chosen to do the same and how many is a reasonable estimate for a single server?
--
____________________________________
Robert S. Bennett
ADGRAFIX Graphic Design/Web Services
Boston, MA

Web Site: http://www.adgrafix.com
____________________________________

2. Parameters for bash in /etc/passwd

3. multiple processes of mysql/httpd running...

4. QDI Legend III

5. NCSA httpd 1.4 with multiple servers

6. weird ipcs behaviour in redhat 5

7. Q: multiple httpd servers (and process pools) on one box??

8. Mail Setup With Internal Domain Addresses

9. cern or other httpd deamon experience

10. Email Server for multiple domains? (Advice)

11. Looking for advice for a HTTP server

12. vpn - not sure if its what Im looking for - looking for advice

13. Newbie Q: (apache)httpd running but client can't access server