1.manage:
vi /usr/sbin/tomcat6
-classpath “$CLASSPATH” -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n\
2.agent:
vi /etc/init.d/cloudstack-agent
$JSVC -Xrunjdwp:transport=dt_socket,address=18787,server=y,suspend=n -cp “$CLASSPATH” -pidfile “$PIDFILE” \