From owner-freebsd-hackers Thu Aug 30 11:22:29 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.webmonster.de (datasink.webmonster.de [194.162.162.209]) by hub.freebsd.org (Postfix) with SMTP id 73F5F37B409 for ; Thu, 30 Aug 2001 11:22:22 -0700 (PDT) (envelope-from karsten@rohrbach.de) Received: (qmail 61063 invoked by uid 1000); 30 Aug 2001 18:22:00 -0000 Date: Thu, 30 Aug 2001 20:22:00 +0200 From: "Karsten W. Rohrbach" To: Dan Cc: mark tinguely , freebsd-hackers@FreeBSD.ORG Subject: Re: memory + apache Message-ID: <20010830202200.C60638@mail.webmonster.de> Mail-Followup-To: "Karsten W. Rohrbach" , Dan , mark tinguely , freebsd-hackers@FreeBSD.ORG References: <200108301418.f7UEIgc50465@web.cs.ndsu.nodak.edu> <20010830085917.I98751-100000@gandalf.bravenet.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="Md/poaVZ8hnGTzuv" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010830085917.I98751-100000@gandalf.bravenet.com>; from dphoenix@bravenet.com on Thu, Aug 30, 2001 at 09:06:44AM -0700 X-Arbitrary-Number-Of-The-Day: 42 X-URL: http://www.webmonster.de/ X-Disclaimer: My opinions do not necessarily represent those of my employer X-Work-URL: http://www.ngenn.net/ X-Work-Address: nGENn GmbH, Schloss Kransberg, D-61250 Usingen-Kransberg, Germany X-Work-Phone: +49-6081-682-304 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Md/poaVZ8hnGTzuv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dan(dphoenix@bravenet.com)@2001.08.30 09:06:44 +0000: >=20 > Yeah that is what I am thinking to. My guess is some large array allocated > in the php code maybe or a sql query taking to long to finish eating up > all the ram. That is kind of interesting to know. I would think the configure php with --enable-memory-limits and look what happens du you use mm in any module? > backstore would maybe be moved back to the paging system after the memory > is free to use again at the very least. My understanding is once return > address of memory used in swap is accessed a page fault occurs and then it > would be taken out of swap space. I guess maybe what is happening is that > that memory got into swap and is never used again so that is why i keep > seeing those numbers in the swap space, or like you said the system just > has decided to leave it there once it has gone in. >=20 > I'll have to do some more research but I guess this is comming down to > more of catching the offending apache process then watching vmstat for > page in and page outs happening.....I would say it's fairly obvious that > that is happening before it hits swap. just a wild guess: not apache but (if not php and a script) one of it's modules (which is nasty to debug). there are some misbehaving proprietary modules out there. is you apache configured monolithic or dso/apxs? >=20 > Anyone have recommendations on catching what php code it is accessing at > that certian time or how to track it down. >=20 cheers, /k --=20 > A Puritan is someone who is deathly afraid that someone, somewhere, is > having fun. KR433/KR11-RIPE -- WebMonster Community Founder -- nGENn GmbH Senior Techie http://www.webmonster.de/ -- ftp://ftp.webmonster.de/ -- http://www.ngenn.n= et/ karsten&rohrbach.de -- alpha&ngenn.net -- alpha&scene.org -- catch@spam.de GnuPG 0x2964BF46 2001-03-15 42F9 9FFF 50D4 2F38 DBEE DF22 3340 4F4E 2964 B= F46 Please do not remove my address from To: and Cc: fields in mailing lists. 1= 0x --Md/poaVZ8hnGTzuv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7joRIM0BPTilkv0YRAupgAKCMS+D08c/aeLvqjyzsvJB+8Z0eVQCaAxNS vUezEiF8O2B0Q/CX0arupfI= =oyqu -----END PGP SIGNATURE----- --Md/poaVZ8hnGTzuv-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message