Skip to main content

Posts

Showing posts from May, 2012

clearing cache on squid proxy

  stop squid, and erase all the files from your cache directory  For example: squid -k shutdown or /etc/init.d/squid  stop Find-out which is you squid cache Directory using following command # more /etc/squid/squid.conf | grep ^cache_dir cache_dir ufs /var/spool/squid 5120 16 256   Here it is showing /var/spool/squid. Then remove cache files ( Take a backup before deleting if required)  rm -fr  /var/spool/squid/*   then re-create the swap directory structure: squid -z  now start squid again. /etc/init.d/squid  start

Linux System Monitoring Tools.

Need to monitor Linux server performance? Try these built-in command and a few add-on tools. Most Linux distributions are equipped with tons of monitoring. These tools provide metrics which can be used to get information about system activities. You can use these tools to find the possible causes of a performance problem. The commands discussed below are some of the most basic commands when it comes to system analysis and debugging server issues such as: Finding out bottlenecks. Disk (storage) bottlenecks. CPU and memory bottlenecks. Network bottlenecks. #1: top - Process Activity Command The top program provides a dynamic real-time view of a running system i.e. actual process activity. By default, it displays the most CPU-intensive tasks running on the server and updates the list every five seconds. Commonly Used Hot Keys The top command provides several useful hot keys: Hot Key Usage t Displays summary information off and on. m Displays memory i