The "OutOfMemoryError: PermGen space" message is normally encountered during development activites where a long-running JVM is asked to load/unload builds. However it can also be encountered in a recently spawned JVM under the "right" set of conditions. The message is a symptom of an incomplete garbage collection sweep where resources are not properly released upon unload/restart...
sandip's story links
Preventing Java's java.lang.OutOfMemoryError: PermGen space failure
Submitted by sandip on Fri, 09/19/2008 - 17:02Audit trail via Process Accounting
Submitted by sandip on Thu, 09/11/2008 - 11:42Intrusions can take place from both authorized (insiders) and unauthorized (outsiders) users. My personal experience shows that unhappy user can damage the system, especially when they have a shell access. Some users are little smart and removes history file (such as ~/.bash_history) but you can monitor all user executed commands...
Writing Robust Shell Scripts
Submitted by sandip on Thu, 09/11/2008 - 09:59Many people hack together shell scripts quickly to do simple tasks, but these soon take on a life of their own. Unfortunately shell scripts are full of subtle effects which result in scripts failing in unusual ways. It's possible to write scripts which minimise these problems. In this article, I explain several techniques for writing robust bash scripts...
Variable Mangling in Bash with String Operators
Submitted by sandip on Thu, 08/28/2008 - 12:13Have you ever wanted to change the names of many files at once? Or, have you ever needed to use a default value for a variable that has no value? These and many other options are available to you when you use string operators in bash and other Bourne-derived shells...
Caching Dynamic Content with Apache httpd
Submitted by sandip on Mon, 08/11/2008 - 11:55mod_cache has been around for a while, but there are some new features in it that can help you make better use of your server's resources. Although people have traditionally used the caching capabilities of mod_cache with proxied content, that isn't its only feature. You can also cache your dynamic content and serve it as rapidly as on-disk files...
PostgreSQL User Administration
Submitted by sandip on Wed, 08/06/2008 - 17:04PostgreSQL has a powerful user authentication and access control system, but for a newcomer, it can seem confusing and overwhelming. In this article I hope to explain how to manage user and permissions with ease...
Linux Server Monitoring with IPMI
Submitted by sandip on Thu, 06/12/2008 - 23:26If you have expensive computer systems running in your data center, you want to make sure they keep running smoothly. Server vendors have addressed this by adding system monitoring devices to motherboards to report on temperatures, fan speeds, and voltages.
The standard way to monitor these parameters has traditionally been with tools such as lm_sensors on systems running Linux. However, this mechanism is far from perfect. For starters, it can be incredibly difficult to configure lm_sensors correctly because of poor documentation...
HOWTO: Test my website before switching DNS
Submitted by sandip on Wed, 06/11/2008 - 11:28To test your website before DNS propagation has completed you can edit the HOSTS file on your local computer. Your computer will use the entries in your HOSTS file before it looks up the current information in DNS. This walkthrough will explain how to edit the HOSTS file on Windows 98/Me/2000/XP/2003/Vista computers as well as on Apple Mac OS 9 and OS X machines.
Handling files with spaces
Submitted by sandip on Tue, 05/27/2008 - 11:17Typical Unix users cringe at the thought of putting spaces in file names. Mac users, on the other hand, frequently put spaces in file names because it's natural and may read better. This means that Mac OS X Unix geeks need to make sure their shell commands (and shell scripts) work correctly when faced with spaces in file names. Below is outlined a few simple ways to properly deal with this...
SQL*Plus FAQ
Submitted by sandip on Wed, 04/02/2008 - 16:41SQL*Plus is a command line SQL and PL/SQL language interface and reporting tool that ships with the Oracle Database Client and Server software. It can be used interactively or driven from scripts. SQL*Plus is frequently used by DBAs and Developers to interact with the Oracle database.