Author |
|
Qmpeltaty
Joined: 06 Feb 2008 Posts: 182 Location: Poland
|
Posted: Wed 19 Mar '14 11:18 Post subject: mod_status - CPU usage |
|
|
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
|
|
Back to top |
|
Qmpeltaty
Joined: 06 Feb 2008 Posts: 182 Location: Poland
|
Posted: Thu 20 Mar '14 16:36 Post subject: |
|
|
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
|
Posted: Thu 20 Mar '14 18:22 Post subject: |
|
|
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
|
Posted: Fri 21 Mar '14 11:17 Post subject: |
|
|
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
|
Posted: Fri 21 Mar '14 17:40 Post subject: |
|
|
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
|
Posted: Mon 24 Mar '14 15:09 Post subject: |
|
|
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
|
Posted: Mon 24 Mar '14 17:21 Post subject: |
|
|
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 |
|