Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Gustavo Gibson da Silva <dasilva@qualquer.elogica.com.br>
Subject: Apache eating 99% of swap space
Date: 1998/11/12	[thread overview]
Message-ID: <364AF488.1AB77799@qualquer.elogica.com.br> (raw)

Hi,

I have apache 1.2.6 running on a DU with 1.2G of swap fine. I'm trying
to upgrade to version 1.3.3 with a small change on src/main/http_main.c
in order to have the server chrooted after loading:

int REALMAIN(int argc, char *argv[])
 .
 .
 .
        case 'S':
            ap_dump_settings = 1;
            break;
        case 't':
            configtestonly = 1;
            break;
        case '?':
            usage(argv[0]);
        }
    }

#ifdef USE_CHROOT			<------ I've inserted these lines to the code
    chroot( NEW_ROOT_DIR );		<------
    chdir ( "/" );			<------
#endif					<------

    ap_suexec_enabled = init_suexec();
    server_conf = ap_read_config(pconf, ptrans, ap_server_confname);
 .
 .
 .


I have copied /sbin/loader and all libs to the new root dir. Whenever I
run it I get the message:

vmunix: swap space below 10 percent free
vmunix: Unable to obtain requested swap space

And indeed the reserved swap space is at 99%. When I run apache 1.2.6 it
is usually about 36%. When I run apache 1.3.3 without the changes, it
goes to 99% of swap and eventually goes down (eventhough it changes a
lot).

Is there a better place for inserting the above lines? What's the trick
for a chroot apache?

	Thanks in advance,

		Gustavo.
-- 
"La Femme partage nos peines,
 double nos joies et triple
 nos depenses."



                 reply	other threads:[~1998-11-12  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox