Archive for September, 2012

iOS6 HTML5 updates.

Posted on September 26th, 2012 in iOS, iPhone | No Comments »

Here’s a great writeup on the new HTML5 improvements that rolled out for iOS6:

The biggest improvements is native file upload support for web apps (no more need for Phonegap?) as well as remote webkit debugging.

htop: a better version of unix top

Posted on September 13th, 2012 in unix | No Comments »

I just discovered htop a more colorful version of top. It loads faster and visually shows you how each CPU core is doing. Love it.

To install on the Mac

sudo port install htop

To install on Amazon EC2

64 bit:

sudo rpm -Uvh htop-0.9-1.el5.rf.x86_64.rpm
rm htop-0.9-1.el5.rf.x86_64.rpm


sudo rpm -Uvh htop-0.9-1.el5.rf.i386.rpm
rm htop-0.9-1.el5.rf.i386.rpm

Related links:
How to install htop in RHEL Centos or Fedora
Comparison between htop and top

Optimizing Apache’s memory footprint by removing unused modules

Posted on September 12th, 2012 in Apache | No Comments »

Apache is a robust and customizable web server which unfortunately comes with the kitchen sink preinstalled. While load-testing our corporate WordPress blog with Apache Benchmark and Unix top, I saw that each Apache process takes about 235 megs!

I used this Apache mod description page to comment out all the unused modules Apache comes preinstalled with like WebDAV and LDAP. Was able to reduce Apache’s footprint down 28% to 169mb. Here is a quick list of commented out modules, some may actually be useful for you, so look them up before you use my list. Happy trimming!:

LoadModule auth_basic_module modules/
LoadModule auth_digest_module modules/
LoadModule authn_file_module modules/
#LoadModule authn_alias_module modules/
#LoadModule authn_anon_module modules/
#LoadModule authn_dbm_module modules/
#LoadModule authn_default_module modules/
LoadModule authz_host_module modules/
LoadModule authz_user_module modules/
#LoadModule authz_owner_module modules/
#LoadModule authz_groupfile_module modules/
#LoadModule authz_dbm_module modules/
LoadModule authz_default_module modules/
#LoadModule ldap_module modules/
#LoadModule authnz_ldap_module modules/
LoadModule include_module modules/
LoadModule log_config_module modules/
#LoadModule logio_module modules/
#LoadModule env_module modules/
#LoadModule ext_filter_module modules/
LoadModule mime_magic_module modules/
LoadModule expires_module modules/
LoadModule deflate_module modules/
LoadModule headers_module modules/
#LoadModule usertrack_module modules/
LoadModule setenvif_module modules/
LoadModule mime_module modules/
#LoadModule dav_module modules/
#LoadModule status_module modules/
LoadModule autoindex_module modules/
#LoadModule info_module modules/
#LoadModule dav_fs_module modules/
LoadModule vhost_alias_module modules/
LoadModule negotiation_module modules/
LoadModule dir_module modules/
LoadModule actions_module modules/
#LoadModule speling_module modules/
#LoadModule userdir_module modules/
LoadModule alias_module modules/
#LoadModule substitute_module modules/
LoadModule rewrite_module modules/
#LoadModule proxy_module modules/
#LoadModule proxy_balancer_module modules/
#LoadModule proxy_ftp_module modules/
#LoadModule proxy_http_module modules/
#LoadModule proxy_ajp_module modules/
#LoadModule proxy_connect_module modules/
LoadModule cache_module modules/
#LoadModule suexec_module modules/
LoadModule disk_cache_module modules/
#LoadModule cgi_module modules/
LoadModule version_module modules/
#LoadModule rpaf_module modules/