An open API service indexing awesome lists of open source software.

https://github.com/kenjis/get-maxclients.

This program is used to get MaxClient of apache.
https://github.com/kenjis/get-maxclients.

Last synced: 3 months ago
JSON representation

This program is used to get MaxClient of apache.

Awesome Lists containing this project

README

          

//--------------------------------------------------------------------------------------
// Usage: php get_max_client.php
// root only.
//
// This program is used to get MaxClient of apache.
// Following step.
// 1、get all pid of httpd.
// 2、get average Rss of "/proc/$pid/smaps".
// 3、get average Shared_Clean of "/proc/$pid/smaps".
// 4、get average Shared_Dirty of "/proc/$pid/smaps".
// 5、get memory size by free command.
// 6、math max client by "memorySize / (rssAverage - (Shared_Clean + Shared_Dirty))".
// 7、print max client.
//--------------------------------------------------------------------------------------