You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Sigert GOEMINNE <si...@nuagenetworks.net> on 2017/11/13 14:18:50 UTC
Remote debugging not working anymore
Hi all,
Starting from the changes in PR2226
<https://github.com/apache/cloudstack/pull/2226>, what do i need to specify
to enable remote debugging on a system? Before I added
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 in
/etc/default/cloudstack-management and restarted the cloudstack mgmt server
but apparently this doesn't work anymore. If i run netstat -tlpn, It is not
showing port 5005 in my case. Do I need to change something in our test
infrastructure?
Thanks.
Kind regards,
Sigert
Re: Remote debugging not working anymore
Posted by Rohit Yadav <ro...@shapeblue.com>.
Sigert - sure, you may add a section on remote debugging in the following wiki page, or add a new page on this topic:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+CloudStack
Regards.
________________________________
From: Sigert GOEMINNE <si...@nuagenetworks.net>
Sent: Wednesday, November 15, 2017 2:25:38 PM
To: dev@cloudstack.apache.org
Subject: Re: Remote debugging not working anymore
Franks suggestion does do the trick. Maybe we want to add this to the wiki?
Kind regards,
Sigert
*Sigert Goeminne*
Software Development Engineer
*nuage*networks.net <http://nuagenetworks.net>
Copernicuslaan 50
2018 Antwerp
Belgium
On Wed, Nov 15, 2017 at 9:47 AM, Rohit Yadav <ro...@shapeblue.com>
wrote:
> Marc - The /etc/default/cloudstack-management still have JAVA_OPTS which
> can be changed and customized.
>
>
> Frank - thanks for sharing. Sigert, please try Frank's suggestion and see
> if that works for you.
>
>
> Regards.
>
> ________________________________
> From: Marc-Aur?le Brothier - Exoscale <ma...@exoscale.ch>
> Sent: Monday, November 13, 2017 8:28:52 PM
> To: dev@cloudstack.apache.org
> Subject: Re: Remote debugging not working anymore
>
> @rhtyd - the java-opts file content (+ read in the startup script)
> should be put back to allow startup customization.
>
>
>
> On Mon, 2017-11-13 at 15:18 +0100, Sigert GOEMINNE wrote:
> > Hi all,
> >
> > Starting from the changes in PR2226
> > <https://github.com/apache/cloudstack/pull/2226>, what do i need to
> > specify
> > to enable remote debugging on a system? Before I added
> > -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 in
> > /etc/default/cloudstack-management and restarted the cloudstack mgmt
> > server
> > but apparently this doesn't work anymore. If i run netstat -tlpn, It
> > is not
> > showing port 5005 in my case. Do I need to change something in our
> > test
> > infrastructure?
> >
> > Thanks.
> > Kind regards,
> > Sigert
>
> rohit.yadav@shapeblue.com
> www.shapeblue.com<http://www.shapeblue.com>
> 53 Chandos Place, Covent Garden, London WC2N 4HSUK
> @shapeblue
>
>
>
>
rohit.yadav@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London WC2N 4HSUK
@shapeblue
Re: Remote debugging not working anymore
Posted by Sigert GOEMINNE <si...@nuagenetworks.net>.
Franks suggestion does do the trick. Maybe we want to add this to the wiki?
Kind regards,
Sigert
*Sigert Goeminne*
Software Development Engineer
*nuage*networks.net <http://nuagenetworks.net>
Copernicuslaan 50
2018 Antwerp
Belgium
On Wed, Nov 15, 2017 at 9:47 AM, Rohit Yadav <ro...@shapeblue.com>
wrote:
> Marc - The /etc/default/cloudstack-management still have JAVA_OPTS which
> can be changed and customized.
>
>
> Frank - thanks for sharing. Sigert, please try Frank's suggestion and see
> if that works for you.
>
>
> Regards.
>
> ________________________________
> From: Marc-Aur?le Brothier - Exoscale <ma...@exoscale.ch>
> Sent: Monday, November 13, 2017 8:28:52 PM
> To: dev@cloudstack.apache.org
> Subject: Re: Remote debugging not working anymore
>
> @rhtyd - the java-opts file content (+ read in the startup script)
> should be put back to allow startup customization.
>
>
>
> On Mon, 2017-11-13 at 15:18 +0100, Sigert GOEMINNE wrote:
> > Hi all,
> >
> > Starting from the changes in PR2226
> > <https://github.com/apache/cloudstack/pull/2226>, what do i need to
> > specify
> > to enable remote debugging on a system? Before I added
> > -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 in
> > /etc/default/cloudstack-management and restarted the cloudstack mgmt
> > server
> > but apparently this doesn't work anymore. If i run netstat -tlpn, It
> > is not
> > showing port 5005 in my case. Do I need to change something in our
> > test
> > infrastructure?
> >
> > Thanks.
> > Kind regards,
> > Sigert
>
> rohit.yadav@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London WC2N 4HSUK
> @shapeblue
>
>
>
>
Re: Remote debugging not working anymore
Posted by Rohit Yadav <ro...@shapeblue.com>.
Marc - The /etc/default/cloudstack-management still have JAVA_OPTS which can be changed and customized.
Frank - thanks for sharing. Sigert, please try Frank's suggestion and see if that works for you.
Regards.
________________________________
From: Marc-Aur?le Brothier - Exoscale <ma...@exoscale.ch>
Sent: Monday, November 13, 2017 8:28:52 PM
To: dev@cloudstack.apache.org
Subject: Re: Remote debugging not working anymore
@rhtyd - the java-opts file content (+ read in the startup script)
should be put back to allow startup customization.
On Mon, 2017-11-13 at 15:18 +0100, Sigert GOEMINNE wrote:
> Hi all,
>
> Starting from the changes in PR2226
> <https://github.com/apache/cloudstack/pull/2226>, what do i need to
> specify
> to enable remote debugging on a system? Before I added
> -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 in
> /etc/default/cloudstack-management and restarted the cloudstack mgmt
> server
> but apparently this doesn't work anymore. If i run netstat -tlpn, It
> is not
> showing port 5005 in my case. Do I need to change something in our
> test
> infrastructure?
>
> Thanks.
> Kind regards,
> Sigert
rohit.yadav@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London WC2N 4HSUK
@shapeblue
Re: Remote debugging not working anymore
Posted by Frank Maximus <fr...@nuagenetworks.net>.
I just found this website:
https://docs.oracle.com/javase/7/docs/webnotes/tsg/TSG-VM/html/envvars.html
Apparently you can set the JAVA_TOOL_OPTIONS environment variable to pass
options to JVM instantiation, in case it's not under your control.
So debug can be enabled by adding the following line to
/etc/default/cloudstack-management:
JAVA_TOOL_OPTIONS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5000"
Kind Regards, and happy debugging,
Frank
On Mon, Nov 13, 2017 at 3:58 PM Marc-Aurèle Brothier - Exoscale <
marco@exoscale.ch> wrote:
> @rhtyd - the java-opts file content (+ read in the startup script)
> should be put back to allow startup customization.
>
>
>
> On Mon, 2017-11-13 at 15:18 +0100, Sigert GOEMINNE wrote:
> > Hi all,
> >
> > Starting from the changes in PR2226
> > <https://github.com/apache/cloudstack/pull/2226>, what do i need to
> > specify
> > to enable remote debugging on a system? Before I added
> > -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 in
> > /etc/default/cloudstack-management and restarted the cloudstack mgmt
> > server
> > but apparently this doesn't work anymore. If i run netstat -tlpn, It
> > is not
> > showing port 5005 in my case. Do I need to change something in our
> > test
> > infrastructure?
> >
> > Thanks.
> > Kind regards,
> > Sigert
>
Re: Remote debugging not working anymore
Posted by Marc-Aurèle Brothier - Exoscale <ma...@exoscale.ch>.
@rhtyd - the java-opts file content (+ read in the startup script)
should be put back to allow startup customization.
On Mon, 2017-11-13 at 15:18 +0100, Sigert GOEMINNE wrote:
> Hi all,
>
> Starting from the changes in PR2226
> <https://github.com/apache/cloudstack/pull/2226>, what do i need to
> specify
> to enable remote debugging on a system? Before I added
> -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 in
> /etc/default/cloudstack-management and restarted the cloudstack mgmt
> server
> but apparently this doesn't work anymore. If i run netstat -tlpn, It
> is not
> showing port 5005 in my case. Do I need to change something in our
> test
> infrastructure?
>
> Thanks.
> Kind regards,
> Sigert