cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Maximus <frank.maxi...@nuagenetworks.net>
Subject Re: Remote debugging not working anymore
Date Tue, 14 Nov 2017 09:52:23 GMT
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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message