Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mstaack/debugging-tricks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

13 Commits

Repository files navigation

debugging-tricks

average memory by apache processes (like in php prefork mode)

user@devserver:~$ ps -ylC apache2 | awk '{x += 8ドル;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Process Size (MB): "x/((y-1)*1024)}'
Apache Memory Usage (MB): 60071.1
Average Process Size (MB): 162.794

global connection stats via netstat

user@devserver:~$ netstat -ant | awk '{print 6ドル}' | sort | uniq -c | sort -n
 1 Foreign
 1 Verbindungen)
 7 CLOSING
 12 FIN_WAIT1
 14 LAST_ACK
 14 SYN_RECV
 16 LISTEN
 122 FIN_WAIT2
 3055 VERBUNDEN
 12889 TIME_WAIT

kill process on port

fuser -n tcp -k 9000

php return response & callback with apache (run this at the beginning)

Include: Connection: Close and Content-Length (strlen($contents))

ob_implicit_flush(true);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /