Monday, July 31, 2006

all about system info gathering

I had the assignment to gather system info while doing some performance testing with tomcat5.5
here are some of the info that I gotted out wile doing that

find & replace in vi

:%s///g

abt solaris system info

cpuinfo - command vmstat
meminfo - command vm stat

in top u can custermize that to ur preference
f will do the selecting the display columns
h will go to the help mode
W will write to the config file the current settings and many more

also a atsar command at unix
sar - Collect, report, or save system activity information.

Thursday, July 13, 2006

SELinux disable

SELinux is an enhancement to the Linux kernel that implements discretionary access control (DAC) and role-based access control (RBAC).

Disable SELinux by changing the following in /etc/sysconfig/selinux and rebooting the system.
SELINUX=disabled

setenforce 0 this is also be the command that diable on the fly

Wednesday, July 12, 2006

remove the old kernel Ubuntu

Ubuntu always keeps the old kernel when it install a new one, just in case this new one doesn't work well for you.


You can uninstall the old one if you don't use it anymore :
Code:
sudo apt-get remove --purge 2.6.15-23-386*

Doing this will uninstall the packages related to the 2.6.15-23 kernel, like "linux-image-2.6.15-23-386", "linux-restricted-modules-2.6.15-23-386", etc.

TCP MON and Tungsten

How to enable http other than https in the tungsten code
-------------------------------------------------------------------------
change the services.xml protocol to http
if we comment the transport tab then it will expose in all the transport methods

tungstom xml change the debug state to ON

then it should work ..

about thungsten build

Way to get out of trouble


Never do a maven clean build while the link is available to a source location from the targets location that will cleaned

before do any wbm and any other thing do check we whether that extention link exists
if so remove that thing otherwise shot dead

How to create that link

cd target/dist/tungsten-SNAPSHOT/lib/www/
rm -fr extensions/
ln -s ../../../../../modules/www/extensions/

So be alert always

Idea remote debugging

To enable remote debugging in IntelliJ Idea
First create a remote configuration on Idea that you can do remote debugging
The string pattern that will occur will look like this

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005

and what we need to do is depending on your executable project wither set the JAVA_OPTS variable to the above
and start the project and then
start the debugger on idea

CINTEC AWARD for the best CSE Project

Received a latter from UOM saying that I will be receiving an award for the best CSE Project , HMM sounds crazy but thats how the life goes on . Let see what they have for me

Wednesday, July 05, 2006

place where the name servers reside

/etc/resolv.conf

cat /etc/resolv.conf to resolve the DNS names