The Apache Module mod_status allows you to view the current average requests per second being served. It measures this average over a fairly long period of time however (I don't know exactly how long). Is it possible to modify this length to something shorter so that I can get a more accurate idea of the current load on the server?
you can count the average by yourself.
write a script(such as python) to get the server-status with parameter ?refresh=1&auto
, and then accumulate the BusyWorkers, which is the current request number.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.