Menu

Skip to content
  • Cookbook
  • About
  • Random bits in french

MrBrown blob

random bits.

php

March 13, 2009 by CharlyBr on Benchmarks, Command line, Monitoring

Memory usage by group of processes

While monitoring a http/php server, I needed to do some statistics about php-cgi memory usage. Playing with memory_limit in PHP, we wanted to know the average memory usage per php-cgi process. This is easily calculated with our best friend awk. First, get the number of php running processes: # ps aux | grep php-cgi | … →

 
July 22, 2008 by CharlyBr on http

Maintenance mode (HTTP 503) with lighttpd and PHP

When you put your website in maintenance mode, it’s a good idea to return a HTTP 503 error code to the client. This code indicates that “the server is currently unable to handle the request due to a temporary overloading or maintenance of the server”. The 503 code is used to avoid crawlers or caching … →

 

Categories

  • Adminsys
  • Android
  • Benchmarks
  • Command line
  • Data centers
  • Development
  • Distro
  • http
  • iOS
  • iPhone
  • Java
  • Javascript
  • Logs
  • Mac
  • Mobile
  • Monitoring
  • MySQL
  • Nginx
  • Optimization
  • Photography
  • PHP
  • Revision Control
  • Ruby
  • Symfony
  • Uncategorized
  • Web
  • Wordpress

Recent Posts

  • AWS Cookbook
  • Nginx: unknown directive “rewrite_by_lua”
  • Nginx: mass permanent redirects
  • Android: center text horizontally and vertically in a TextView
  • Install gem as user on OSX 10.10 Yosemite

Search

 
Subscribe!
© CharlyBr - See also allNix