From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8b34,226b673190fa6e5d,start X-Google-Attributes: gidf8b34,public X-Google-Thread: fee84,226b673190fa6e5d,start X-Google-Attributes: gidfee84,public From: Gustavo Gibson da Silva Subject: Apache eating 99% of swap space Date: 1998/11/12 Message-ID: <364AF488.1AB77799@qualquer.elogica.com.br>#1/1 X-Deja-AN: 411118413 Content-Transfer-Encoding: 7bit X-Accept-Language: en,pt-BR Content-Type: text/plain; charset=us-ascii Organization: Corisco Tecnologia S/A Mime-Version: 1.0 Newsgroups: comp.infosystems.www.servers.unix,comp.unix.osf.osf1 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."