Hi Amit, Are you using cloudstack build from code or from installed binary?
Thanks Rajesh Battala -----Original Message----- From: Amit Das [mailto:amit....@cloudbyte.com] Sent: Wednesday, August 28, 2013 5:08 PM To: dev@cloudstack.apache.org Subject: Re: Remote Debugging of Management Server Does CloudStack management service use catalina.sh (to edit/add/remove the JVM_OPTS) ? Note - I am not using devcloud. Regards, Amit *CloudByte Inc.* <http://www.cloudbyte.com/> On Wed, Aug 28, 2013 at 4:15 PM, Amit Das <amit....@cloudbyte.com> wrote: > Hi Rajesh, > > I see below VM Flags in the running service (a standalone ACS 4.1.1 > management server): > > -Djava.awt.headless=true -Dcom.sun.management.jmxremote.port=45219 > -Dcom.sun.management.jmxremote.authenticate=false > -Dcom.sun.management.jmxremote.ssl=false -Xmx2g > -XX:+HeapDumpOnOutOfMemoryError > -XX:HeapDumpPath=/var/log/cloudstack/management/ -XX:PermSize=512M > -XX:MaxPermSize=800m -Dcatalina.base=/usr/share/cloudstack-management > -Dcatalina.home=/usr/share/cloudstack-management -Djava.endorsed.dirs= > -Djava.io.tmpdir=/usr/share/cloudstack-management/temp > -Djava.util.logging.config.file=/usr/share/cloudstack-management/conf/ > logging.properties > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager > > Will it be good to add *-Xdebug -Xrunjdwp:transport=dt_socket,** > address=8787,server=y,suspend=**n* along with above while exporting > MAVEN_OPTS ? > > Regards, > Amit > *CloudByte Inc.* <http://www.cloudbyte.com/> > > > On Wed, Aug 28, 2013 at 3:39 PM, Rajesh Battala > <rajesh.batt...@citrix.com > > wrote: > >> You need to start the mgmt server in debug mode by adding the below >> config to MAVEN_OPTS export MAVEN_OPTS="-XX:MaxPermSize=600m -Xmx512m >> -Xdebug >> -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n" >> then it would be listening on 8787, allow 8787 port in the mgmt. >> server using iptables. >> Then you can use eclipse, java remote debug provide the ip and port >> 8787 you can debug the mgmt. server remotely. >> >> Thanks >> Rajesh Battala >> >> >> -----Original Message----- >> From: Amit Das [mailto:amit....@cloudbyte.com] >> Sent: Wednesday, August 28, 2013 3:31 PM >> To: dev@cloudstack.apache.org >> Subject: Remote Debugging of Management Server >> >> Hi folks, >> >> What are the steps to be followed for remote debugging the CloudStack >> management service from my IDE? >> >> Regards, >> Amit >> *CloudByte Inc.* <http://www.cloudbyte.com/> >> > >