How to get “requests per second” for Apache in Linux?

前端 未结 9 701
情书的邮戳
情书的邮戳 2021-01-30 17:53

In Windows for ASP, you can get it perfmon, but...

How to get \"requests per second\" for Apache in Linux?

9条回答
  •  面向向阳花
    2021-01-30 18:53

    Script shows inconsistent numbers. -f parameter affects output a lot! and first reading is not accurate either.

    I ended up using:

    while true; do tail -n0 -f access.log>/tmp/tmp.log & sleep 2; kill $! ; wc -l /tmp/tmp.log | cut -c-2; done 2>/dev/null
    

    Found here.

提交回复
热议问题