james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Tellier (Jira)" <server-...@james.apache.org>
Subject [jira] [Commented] (JAMES-3583) Can't attach remote debugger
Date Thu, 13 May 2021 04:13:00 GMT

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

Benoit Tellier commented on JAMES-3583:


Glowroot is supported out of the box for the Guice docker images however it had never been
setted up for the Spring app.

As such, this is much more of a missing feature, hence I propose to requalify this ticket
entry to "Improvments" and not bug.

Documentation on how to set up glowroot with the Spring app is IMO welcome.

Cheers, Benoit

> Can't attach remote debugger
> ----------------------------
>                 Key: JAMES-3583
>                 URL: https://issues.apache.org/jira/browse/JAMES-3583
>             Project: James Server
>          Issue Type: Bug
>          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
> {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

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

View raw message