Segmentation Fault

  OS extends its physical memory by using virtual memory which is implemented using a technique called paging. Paging is another form of swapping between HDD and Physical Memory. If application requests a page in memory and it could find it then a Page Fault occurs. If the address of the page requested is invalid […]

Install MySQL plugin for Newrelic in a Minute

To use this plugin, you must have: a Java Runtime Environment (JRE) of 1.6 or higher at least one database to monitor (MySQL 5.0 or higher) a New Relic account New Relic Platform Installer (NPI) is a simple, lightweight command line tool that helps you easily download, configure and manage New Relic Platform Plugins Plugin […]

Install Newrelic Agent for PHP in a 1 minute

Install NewRElic PHP Plugin for Amazon LINux Create newrelic account on web and get the License number. sudo rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm sudo yum install newrelic-php5 sudo newrelic-install install vim /etc/php.ini newrelic.license=”4b3abfeda5336ecf68″ /etc/init.d/httpd restart Install System Monitoring NewRelic rpm -Uvh https://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm yum install newrelic-sysmond nrsysmond-config –set license_key=4b106d772c3115f649 /etc/init.d/newrelic-sysmond start

OpenVpn Setup

Server Configuration Step 1 : Install the OpenVPN package yum install openvpn -y Step 2 : OpenVPN ships with only a sample configuration, so we will copy the configuration file to its destination: cp /usr/share/doc/openvpn-*/sample/sample-config-files/server.conf /etc/openvpn Step 3 : Download the easy-rsa from git wget https://github.com/OpenVPN/easy-rsa/archive/release/2.x.zip unzip 2.x.zip mv easy-rsa-release-2.x/easy-rsa/2.0 /etc/openvpn/ Step 4 : Edit […]

PyBash

Identation, is what important in Python. Python can be used for both CGI and Scripts Python scripts are usually stored in file with .py extension. In linux there is no significance with any extension. It is just naming convention to understand that the file contains python script. In python script – mention the python shebang […]

Identify Memory Leak

A memory leak, technically, is an ever-increasing usage of memory by an application. With common desktop applications, this may go unnoticed, because a process typically frees any memory it has used when you close the application. However, In the client/server model, memory leakage is a serious issue, because applications are expected to be available 24×7. […]