logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: mod_status - CPU usage
Author
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Wed 19 Mar '14 11:18    Post subject: mod_status - CPU usage Reply with quote

Is it possible to get current CPU usage from mod_status on Windows ? I thought it's ExtendedStatus On directive required but still no CPU usage.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 19 Mar '14 11:46    Post subject: Reply with quote

Short answer: no. But I recommend to use phpsysinfo. Maybe also interesting is https://github.com/Humbedooh/server-status
Back to top
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Thu 20 Mar '14 16:36    Post subject: Reply with quote

Thank you for sharing, but unfortunately i don't use php at all, and mod_lua server-status.lua scripts doesn't work on windows ;/
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 20 Mar '14 18:22    Post subject: Reply with quote

If you enable mod_lua it works! I run it on my server on windows.

Code:

LoadModule lua_module modules/mod_lua.so
AddHandler lua-script .lua


See: http://s0.uploads.im/0caMv.png
Back to top
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Fri 21 Mar '14 11:17    Post subject: Reply with quote

James Blond wrote:
If you enable mod_lua it works! I run it on my server on windows.

Code:

LoadModule lua_module modules/mod_lua.so
AddHandler lua-script .lua


See: http://s0.uploads.im/0caMv.png


This exactly the same what i did, but instead working i got such error in error.log :

Code:

[lua:error] [pid 12504:tid 920] AH01482: Error loading C:/Apache24/htdocs/server-status.lua: C:/Apache24/htdocs/server-status.lua:1: unexpected symbol near '<'


James : which .lua script did you use ?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 21 Mar '14 17:40    Post subject: Reply with quote

I use server-status.lua which Daniel putted on github and I completed some stuff. Did you clone the repo or downloaded the zip? Maybe you try again?
Back to top
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Mon 24 Mar '14 15:09    Post subject: Reply with quote

I had just copy,paste and save the .lua script in my first try. I've downloaded .zip from Github and it works like a charm in test environment.

What is your opinion about runing it in production environment with approx. 7000 concurrent requests ?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 24 Mar '14 17:21    Post subject: Reply with quote

Qmpeltaty wrote:

What is your opinion about runing it in production environment with approx. 7000 concurrent requests ?


I've tested it with 1000 concurrent requests per second. I had no issues. The scripts shows only the first 10 most expensive URLs.

To be on the safe site you should do a ab.exe test on your dev server.
Back to top


Reply to topic   Topic: mod_status - CPU usage View previous topic :: View next topic
Post new topic   Forum Index -> Apache