You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Cosimo Damiano Prete (Jira)" <se...@james.apache.org> on 2021/05/13 08:00:00 UTC

[jira] [Comment Edited] (JAMES-3583) Can't attach remote debugger

    [ https://issues.apache.org/jira/browse/JAMES-3583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17343767#comment-17343767 ] 

Cosimo Damiano Prete edited comment on JAMES-3583 at 5/13/21, 7:59 AM:
-----------------------------------------------------------------------

Hello Benoit.
But, for what I saw, Glowroot is a monitoring tool (like JConsole), so I don't see the connection between the 2 things. It's like the wrapper is not passing my 16th property to the Java process at all.

As a matter of a fact, if I run James with the plain `java -cp ... MainClass $GLOWROOT_OPTIONS $DEBUG_OPTIONS` it works as expected...

PS: I copied the script from the repo on GitHub and just add the debug part to it, so the Glowroot part was already there


was (Author: pec):
Hello Benoit.
But, for what I saw, Glowroot is a monitoring tool (like JConsole), so I don't see the connection between the 2 things. It's like the wrapper is not passing my 16th property to the Java process at all.

As a matter of a fact, if I run James with the plain `java -cp ... MainClass $GLOWROOT_OPTIONS $DEBUG_OPTIONS` it works as expected...

> Can't attach remote debugger
> ----------------------------
>
>                 Key: JAMES-3583
>                 URL: https://issues.apache.org/jira/browse/JAMES-3583
>             Project: James Server
>          Issue Type: Improvement
>          Components: Spring Container
>    Affects Versions: 3.6.0
>            Reporter: Cosimo Damiano Prete
>            Priority: Major
>
> Hi.
> I've adjusted my {{run_james}} script as follows
> {code:bash}
> #!/usr/bin/env bash
> if [ "$GLOWROOT_ACTIVATED" == "true" ]; then
>     GLOWROOT_OPTIONS=" wrapper.java.additional.15=-javaagent:/root/glowroot/glowroot.jar"
> fi
> if [ "$DEBUG" == "true" ]; then
>     DEBUG_OPTIONS=" wrapper.java.additional.16=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005"
> fi
> exec ./wrapper-linux-x86-64 ../conf/wrapper.conf wrapper.syslog.ident=james wrapper.pidfile=../var/james.pid wrapper.daemonize=FALSE"$GLOWROOT_OPTIONS$DEBUG_OPTIONS"
> {code}
> hoping to see the server wait for the connection and being able to attach a remote debugger, but it doesn't work.
> How does this wrapper exactly work and how am I supposed to change the above script to make it work?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org