Tuesday, August 30, 2011

Tomcat Remote Debug in linux

add folowing inside /etc/default/tomcat6

JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"

and restart . tomcat debug is now in port 8787

Monday, August 22, 2011

linux + convert file to Unix format

1. vi filename
2. Esc --> : set fileformat=unix
3.wq!

Wednesday, August 17, 2011

Find system profile in a linux machine - ubantu

$sudo lshw -html > mypc-name.html