I've been doing some looking around at log files, and the server has remained rather stable the past few days after I disabled a few pages which I suspected were cuprit pages. I thought everything was alright.
However, just about an hour or so ago, it started to slow down. It didn't become unmanagable, but it looked like it was ready to pop. Conveniently, I had top running, and grabbed this snapshot: 231 processes: 107 running, 113 idle, 4 zombie, 5 dead, 2 on processor CPU0 states: 2.8% user, 0.0% nice, 97.2% system, 0.0% interrupt, 0.0% idle CPU1 states: 7.3% user, 0.0% nice, 92.7% system, 0.0% interrupt, 0.0% idle Memory: Real: 227M/707M act/tot Free: 2317M Swap: 0K/2047M used/tot Notice the "system" usage. Almost all of the running processes were httpd. I would assume that most of the system usage is the result of all the different processes getting swapped in and out of the processer before finishing, resulting in the slowdown of all processes. But this is an assumption. My question, then is what can I do? I'm looking at my code to see any potential slowdowns and trying to fix those, but 97% system usage doesn't seem right. It seems like OpenBSD is freaking out at something. Where can I look to see WHAT the system is doing while it has a near monopoly on the CPUs. Any suggestions? Thanks, -Jesse On 11/28/06, L. V. Lammert <[EMAIL PROTECTED]> wrote:
On Tue, 28 Nov 2006, Jack J. Woehr wrote: > On Nov 28, 2006, at 12:04 PM, Jesse Gumm wrote: > > > It runs Apache with php > > "With php", eh? Does one assume you have some kewl PHP code running > on your server (still chroot'ed?)? Might look at your code! > Before you look at the code, you need to see which 179 processes are active. I have seen exactly this sort of situation on a customer's machine when their DNS was not responding and all of the mail processes were hanging. Once you see what is running, check the logs (assuming it's Apache) to see what PAGE is running. Look at that page should then give you a clue - is it accessing a database? Sending email? Lee ================================================ Leland V. Lammert [EMAIL PROTECTED] Chief Scientist Omnitec Corporation Network/Internet Consultants www.omnitec.net ================================================
-- http://www.dkpsystem.com