Skip to content

Instantly share code, notes, and snippets.

View return1's full-sized avatar

Dominique Lederer return1

View GitHub Profile
@return1
return1 / apache2-mpm-tweak.pl
Created November 7, 2012 13:29
Analyze and tweak your apache2 mpm settings
#!/usr/bin/perl
# Copyright Erik Jacobson - erik@underhanded.org
use warnings; use strict;
use Statistics::Descriptive;
my $webuser = 'www-data'; # The user your apache children run as. I ignore the root process.
my $command = 'apache2'; # The name of your processes as they appear to the "top" command.
my @top = `top -bn1`;