14,954
edits
| Line 285: | Line 285: | ||
* {{kbd | key=''Windows command'' <nowiki>|</nowiki> find ''"string"''}} ({{Win}}) ex: {{kbd | key=<nowiki>netstat -a | find "3306"</nowiki>}} (note: enclose string in double quotation marks)<ref>[http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/find.mspx?mfr=true Microsoft Windows XP - Find]</ref> | * {{kbd | key=''Windows command'' <nowiki>|</nowiki> find ''"string"''}} ({{Win}}) ex: {{kbd | key=<nowiki>netstat -a | find "3306"</nowiki>}} (note: enclose string in double quotation marks)<ref>[http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/find.mspx?mfr=true Microsoft Windows XP - Find]</ref> | ||
=== System CPU | === System CPU usage === | ||
CPU usage / system load average | CPU usage / system load average | ||
* {{Win}}: | * {{Win}}: | ||
| Line 295: | Line 295: | ||
** PHP function [http://php.net/manual/en/function.sys-getloadavg.php sys_getloadavg()] unit: %; '''Need''' to divid by CPU cores number | ** PHP function [http://php.net/manual/en/function.sys-getloadavg.php sys_getloadavg()] unit: %; '''Need''' to divid by CPU cores number | ||
=== System memory usage === | |||
Memory usage | Memory usage | ||
* {{Win}}: | * {{Win}}: | ||
| Line 318: | Line 319: | ||
** memory usage: 172 / (8017+172); unit: % | ** memory usage: 172 / (8017+172); unit: % | ||
=== System disk space usage === | |||
hard disk usage | hard disk usage | ||
* [http://linux.about.com/od/commands/l/blcmdl1_df.htm df command] "disk space usage" for {{Linux}} {{kbd | key = <nowiki>df -h</nowiki>}} | * [http://linux.about.com/od/commands/l/blcmdl1_df.htm df command] "disk space usage" for {{Linux}} {{kbd | key = <nowiki>df -h</nowiki>}} | ||
| Line 337: | Line 338: | ||
102547M / | 102547M / | ||
</pre> | </pre> | ||
[https://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/ How To Find Largest Top 10 Files and Directories On Linux / UNIX / BSD - nixCraft] Output example: | |||
<pre> | |||
# du -a -BM /var/ | sort -n -r | head -n 10 | |||
11199M /var/ | |||
10384M /var/lib | |||
6336M /var/lib/mysql | |||
3714M /var/lib/strong-pm | |||
3661M /var/lib/strong-pm/svc | |||
2042M /var/lib/strong-pm/svc/1/work | |||
2042M /var/lib/strong-pm/svc/1 | |||
1619M /var/lib/strong-pm/svc/2/work | |||
</pre> | |||
Options cited from the content of Linux man page<ref>[http://linuxcommand.org/lc3_man_pages/du1.html du man page]</ref> | |||
* {{kbd | key=<nowiki>-a, --all</nowiki>}} "write counts for all files, not just directories" | |||
* {{kbd | key=<nowiki>-B, --block-size=SIZE</nowiki>}} "scale sizes by SIZE before printing them" | |||
=== Scan the disk === | === Scan the disk === | ||