forked from ryoppy/Get-MaxClients.
-
Notifications
You must be signed in to change notification settings - Fork 0
kenjis/Get-MaxClients.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
//-------------------------------------------------------------------------------------- // 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. //--------------------------------------------------------------------------------------
About
This program is used to get MaxClient of apache.
Resources
Stars
Watchers
Forks
Releases
No releases published
Languages
- PHP 100.0%