Link to home
Start Free TrialLog in
Avatar of kkanagaraj
kkanagaraj

asked on

Help lil Urgent::Apache:Server-Status:CPU Usage !

Dear All,
 
Iam using Apache 1.3.28 / Jserv 1.1.2 On Windows 2000.
I was analyzing server-status of my server, Why I can't see CPU usage data in those details.
I tried to look at some other web sites who uses Apache 1.3.28, I could see the CPU usage in that.
 
Do I need to change in my configuration files Or is it because Iam running on Windows ?
How do I see the CPU usage per request, I need to find out which request is taking more cpu access.
 
Please help me,
thanks in advance,
-kkanagaraj
Avatar of samri
samri
Flag of Malaysia image

hi kkanagaraj,

very interesting observation!

mine was running on win2k, and do not have CPU usage too. It is a standard installation from Apache website;
Server Version: Apache/1.3.24 (Win32)
Server Built: Mar 21 2002 22:14:00

But, this one is running under Cygwin -- which is a Unix emulator on Win32 -- chances are the machine is Windows.

Server Version: Apache/1.3.28 (Cygwin) mod_ssl/2.8.15 OpenSSL/0.9.7c DAV/1.0.3
Server Built: Oct 26 2003 18:15:43

Current Time: Monday, 01-Dec-2003 18:24:27
Restart Time: Friday, 28-Nov-2003 11:06:57
Parent Server Generation: 0
Server uptime: 3 days 7 hours 17 minutes 30 seconds
Total accesses: 8598 - Total Traffic: 71.5 MB
CPU Usage: u1.3 s2.5 cu0 cs0 - .00133% CPU load
.0301 requests/sec - 262 B/second - 8.5 kB/request
1 requests currently being processed, 9 idle servers

more observation can be found here --
http://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&q=apache+server-status+CPU


I would assume that Win32 native compile won't show the CPU usage :)


and... it is very interesting to find out how many peope out there does not protect the /server-status handle.. gee!

cheers.
Avatar of periwinkle
Is ExtendedStatus turned on?  There should be aline that looks like:

ExtendedStatus on

Whoops - hit enter too quickly.

ExtendedStatus must be turned on in order to see CPU usage;  see:

http://httpd.apache.org/docs/mod/mod_status.html

Avatar of kkanagaraj
kkanagaraj

ASKER

Hi Samri,

Nice to knw that you hit it correctly. Well, Iam pretty sure that its a problem with Windows.
I have checked up other websites, all are running in Unix box.
Well, regarding access to /Server-status, It is restricted to access only from my corporate sub domain. So, it is no where exposed to Internet world.

Thanks a lot for you immediate reply,
Cheers,
-Kannan Kanagaraj
ASKER CERTIFIED SOLUTION
Avatar of samri
samri
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Kannan,

forgot to highlight that, I noticed that if Apache is Cygwin version -- the CPU Load DID showed up.  Check the google link again, and you may notice the difference (note the OS).  I guess maybe the cygwin1.dll (the posix emulator) is making that possible.

Samri,

I dont think Iam using Apache Cygwin. Iam using Apache on Windows 2k. I think it uses win32.dll.
what u say