incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edison Su <Edison...@citrix.com>
Subject RE: kvm agent debugging
Date Thu, 07 Jun 2012 18:37:51 GMT


> -----Original Message-----
> From: Jayapal Reddy Uradi [mailto:jayapalreddy.uradi@citrix.com]
> Sent: Thursday, June 07, 2012 9:30 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: kvm agent debugging
> 
> Hi,
> 
> How to connect the debugger in eclipse to kvm agent for debugging.
> 
> 
> 1.       I started the management server in debug mode, using eclipse
> IDE.
> 
> 2.       Agent is installed in kvm host.
> 
> In case of xenserver host I can connect the debugger to 8787 port and
> debug,
> In case of  kvm what are the steps  in eclipse and  kvm agent start,
> to enable the debugger to connect with remote agent.

Need to enable debug port for the agent java process:
Edit "/usr/libexec/agent-runner", add "-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
behind "java -Xms128M -Xmx384M "
Then restart cloud-agent.

> 
> Thanks,
> Jayapal

Mime
View raw message