Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Apache eating 99% of swap space
@ 1998-11-12  5:00 Gustavo Gibson da Silva
  0 siblings, 0 replies; only message in thread
From: Gustavo Gibson da Silva @ 1998-11-12  5:00 UTC (permalink / 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."



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-11-12  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-12  5:00 Apache eating 99% of swap space Gustavo Gibson da Silva

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