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.
- Host: GitHub
- URL: https://github.com/kenjis/get-maxclients.
- Owner: kenjis
- Fork: true (ryoppy/Get-MaxClients.)
- Created: 2012-03-05T02:21:31.000Z (almost 14 years ago)
- Default Branch: my_change
- Last Pushed: 2012-03-05T02:40:41.000Z (almost 14 years ago)
- Last Synced: 2024-10-02T08:08:37.464Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 83 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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.
//--------------------------------------------------------------------------------------