Mohan Cheema's Online Diary

Site Just to Keep Track of My Day to Day Work.

August 23, 2010
by Mohan Cheema
2 Comments

SVN Hook to send email after commit

As SVN admin we are asked to send an email to release managers and testers for all the commits made to the repository so that release managers can update their release sheet and testers can do the testing. This is small post-commit hook for SVN which sends out an email to release manager and testers.

August 23, 2010
by Mohan Cheema
1 Comment

SVN Hook to stop commits without comments

As SVN admin we need to make sure any commits made to the repository should have comments associated it with. The reason to have comments during commits is simple to know what has been fixed or what new has been added to the repository. Here is the simple shell script I have written to stop the commits if comments has not been added.

August 18, 2010
by Mohan Cheema
0 comments

Clearing the cache from memory

Linux has a supposedly good memory management feature that will use up any “extra” RAM you have to cache stuff. This section of the memory being used is supposed to be freely available to be taken over by any other process that actually needs it, but unfortunately some Linux distros think that cache memory is too important to move over for anything else that actually needs it.

August 12, 2010
by Mohan Cheema
0 comments

Install Memcached With repcached “Built-In Server Side Replication”

Everyone probably know about memcached (http://memcached.org/) and its high performance name-value based memory object cache interface. Its main purpose is to provide an easy to use distributed caching engine in a multinode environment. However, have you ever wanted to let memcached handle replication?

July 27, 2010
by Mohan Cheema
2 Comments

Java HotSpot(TM) 64-Bit Server VM warning: Failed to reserve shared memory (errno = 12)

I was configuring Apache Tomcat on 64-Bit Linux OS and wanted to tune it for better performance. While searching the net for the same I came across JVM Performance Tuning by Andrig Miller its good start for tuning Java for better performance on machine with Large memory.

May 21, 2010
by Mohan Cheema
0 comments

AWK One Liners

Simple AWK programs enclosed in single quotes can be typed and executed right at the Unix prompt. For example, the program

awk ‘BEGIN { FS = “:” } { print $1 | “sort” }’ /etc/passwd

This program prints a sorted list of the login names of all users.

April 28, 2010
by Mohan Cheema
4 Comments

Advanced MRTG HowTo

Introduction

In many cases using MRTG in a basic configuration to monitor the volume of network traffic to your server isn’t enough. You may also want to see graphs of CPU, disk, and memory usage. This chapter explains how to find the values you want to monitor in the SNMP MIB files and then how to use this information to configure MRTG.