Apachetop – Web server Real time Traffic Monitor

apachetop Realtime http request monitor

Apachetop is very simple command line utility that you can use to monitor traffic real-time. It accomplishes this by parsing the apache logfiles and displaying meaningful output to the screen. How to install Apachetop yum -y install apachetop How this used to display the http request # apachetop -r 5 -T 30 This means apachetop will … Read more

Clear query cache without restarting server : MySQL

MySQL Cluster

Clear Memory Cache on Linux centos RESET QUERY CACHE will clear out the query cache, but needs RELOAD privileges. RESET QUERY CACHE; or FLUSH QUERY CACHE does NOT clear out the query cache, it simply defrags it leaving the cached query results in place. FLUSH QUERY CACHE;       [xyz-ihs snippet=”Discuss”]

How MySQL Optimizes WHERE Clauses

MySQL Cluster

Some of the optimizations performed by MySQL on where clauses as follow: Removal of unnecessary parentheses: ((a AND b) AND c OR (((a AND b) AND (c AND d)))) To (a AND b AND c) OR (a AND b AND c AND d) Constant folding: (a<b AND b=c) AND a=5 To b>5 AND b=c AND … Read more

Optimizing MySQL SELECT statements

MySQL Cluster

The core logic of a database application is performed through SQL statements, whether issued directly through an interpreter or submitted behind the scenes through an API. The tuning guidelines of this post will help to speed up all kinds of MySQL applications. The guidelines cover SQL operations that read and write data, the behind-the-scenes overhead … Read more

MySQL Optimization Part 1

MySQL Cluster

Database performance depends on several factors at the database level, such as tables, queries, and configuration settings. These software constructs result in CPU and I/O operations at the hardware level, which you must minimize and make as efficient as possible. As you work on database performance, you start by learning the high-level rules and guidelines … Read more

Recovering Corrupt Tables : MyISAM Table Crash Recovery

MySQL Cluster

If you have to restore MyISAM tables that have become corrupt, try to recover them using REPAIR TABLE  or myisamchk -r That should work in 99.9% of all cases. In this article we will cover to repair/recover MyISAM tables using myisamchk. MyISAM tables have .MYD and .MYI  files for storing data and indexes. You can use … Read more

MySQL Server Logs : Error log and General Query Log

MySQL Cluster

MySQL Server has several logs that can help you find out what activity is taking place. By Default , No Logs are enabled in MySQL. By default, the server writes files for all enabled logs in the data directory. Logs can be flush by Issuing FLUSH LOGS statement. Binary log is flushed when its size … Read more

The While loop in C

C Programming Tutorial

It is often the case in programming that you want to do something a fixed number of times. Perhaps you want to calculate gross salaries of ten different persons, or you want to convert temperatures from centigrade to Fahrenheit for 15 different cities. Let us look at a example which uses a while loop. The … Read more

Enable setup command in CentOS minimal install

setup utility

  Generally setup command is not used to install in centos minimal installation: Here is the step to install setup command in centos: # yum install setuptool -y # yum install system-config-network* -y # yum install system-config-firewall* -y # yum install system-config-securitylevel-tui -y # yum install system-config-keyboard -y # yum install ntsysv -y