Huge Discounts on Mobiles, Books, Cameras, Computers etc: @Flipkart

Wednesday, April 16, 2014

How to add a custom system property to WAS (WebSphere Application Server) 7

Struggling to add a custom environment property to WAS? Tried editing startServer/setupCmdLine batch/script files and failed? Here is how you can do it easily from the Admin Web Console

Go to admin console:
eg: https://localhost:16316/ibm/console

In the admin console:
Application servers -> (server name) -> Server Infrastructure, Java and Process Management, Process Definition -> Java Virtual Machine -> Custom Properties.

Note: The exact sequence may vary depending on what version of Websphere you are using.

The entries you make here are system properties (not environment variables and not WebSphere variables). They can be accessed via System.getProperty().

More Info:

YUM: Error: Cannot retrieve repository metadata (repomd.xml) for repository

Screwed up your yum? Here is a quick way to fix by cleaning it up:

View repolist:
yum repolist all

Clean cached package downloads/headers:
yum clean all

Disable a repo temporarily:
yum --disablerepo epel install htop

Disable a repo permanently:
Remove or comment it out in: /etc/yum.repos.d/

More info:

Task Manager for Linux

New to Linux and missing a graphical task manager like the one in Windows?

Try Htop (Linux Process Monitoring)

Htop is an interactive and real time process monitoring application for Linux. It shows complete list of processes running and easy to use for normal tasks.

For RHEL, CentOS & Fedora 64-bit OS
## For RHEL 5, CentOS 5 & Fedora ##
# wget
# rpm -ihv rpmforge-release*.rf.x86_64.rpm

## For RHEL 6 and CentOS 6
# wget
# rpm -ihv rpmforge-release*.rf.x86_64.rpm

Note: update above command to use the latest version of RPMforge.

Once RPMforge repository is installed. Now start installation with yum command.
# yum install htop

For more info, visit:

You can always see running processing in the console using the following command:
ps aux | less

The pstree command is similar to ps in that it can be used to show all of the processes on the system along with their PIDs. However, it differs in that it presents output in a tree structure that shows how processes are related to each other and in that it provides less detailed information about each process than does ps