...
Code Block |
---|
$sed -i 's/INFO/DEBUG/g' /etc/cloudcloudstack/agent/log4j-cloud.xml |
Code Block |
---|
$lsmod | grep kvm |
...
add "-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n" to ‘java -Xms128M -Xmx384M’ line
...
kvm agent is running with jsvc tool.
To run the kvm agent in debug mode.
in /etc/init.d/cloudstack-agent
start() method
add -Xrunjdwp:transport=dt_socket,address=8787 after $JSVC.
it will be like $JSVC -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -cp "$CLASSPATH"
add rule to allow 8787 port in kvm host.
iptables -I INPUT -p tcp --dport 8787 --j ACCEPT (on Rhel 6.3)
restart the management server. check the port 8787 using netstat -atnp | grep jsvc
connect the debugger from eclipse.