CA BD NY
  • Categories

  • Recent Posts

  • RSS MySQL Hacker

  • RSS Apache Hacker

  • RSS MiniCTO

  • Meta

  • Archive for the Performance Category


    Quick and Dirty Monitoring Tool

    Published February 23rd, 2010

    Recently, we needed a simple cron script to record load average, apache server count, existence of lighthttpd and mysql status in a log file every 10 minutes. So following shell script was born:
    #!/bin/sh

    httpd_cnt=`ps auxww | grep ‘/home/apache/bin/httpd’ | wc -l`
    lighthttpd_cnt=`ps auxww | grep ‘lighthttpd’ | wc -l`
    mysql_status=`/usr/bin/mysqladmin -u root -pYOUR_DB_PWD status`
    load=`/bin/cat /proc/loadavg`
    now=`date “+%m-%d-%Y %H:%M:%S”`
    today=`date [...]

    Setting Up Alternative PHP Caching (APC) Support on CentOS Server

    Published January 30th, 2009

    How to install APC (Alternative PHP Cache) on CentOS Server running Apache 2

    Avoid Tracking Memcached Using Ip_conntrack in CentOS Kernel

    Published December 10th, 2008

    Avoid Tracking Memcached Connections Using Ip_conntrack in CentOS Kernel

    Quickly Getting Memcached Stats from the Command-line (CLI)

    Published December 10th, 2008

    How to quickly get memcached stats from the command-line

    Setting up memcached distributed caching system

    Published November 10th, 2008

    How to setup memcached distributed caching sevice on CentOS