Giter VIP home page Giter VIP logo

Comments (8)

felixbarny avatar felixbarny commented on June 18, 2024 2

WildFly now works out-of-the-box without any configuration changes apart from adding the -javaagent flag 🙂

from apm-agent-java.

KyongSik-Yoon avatar KyongSik-Yoon commented on June 18, 2024 1

@lk95jofr This problem related with OSGI class loading.
You should configure specific setting to standalone.conf or domain.conf for install java agent.
Maybe you can find parts below.

if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
   JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman"
fi

Try attach elastic package to there as like
JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman,co.elastic"

So WildFly will load all class of co.elastic package ignoring normal OSGI delegation.

from apm-agent-java.

alvarolobato avatar alvarolobato commented on June 18, 2024

Hi, thanks for reporting this issue. This seems to be caused by how Wildfly handles classloading and the special handling javaagent has. We will have a look and let you know.

from apm-agent-java.

lk95jofr avatar lk95jofr commented on June 18, 2024

Thanks. That solved it.
I added "org.jboss.byteman,co.elastic"

from apm-agent-java.

felixbarny avatar felixbarny commented on June 18, 2024

I'll try to add co.elastic.apm to the system properties automatically. I'm reopening to track this.

from apm-agent-java.

lk95jofr avatar lk95jofr commented on June 18, 2024

What I added was this, standalone.conf (wildfly/bin)
JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman,co.elastic,org.jboss.logmanager"

JBOSS_LOG_MANAGER_LIB="$(echo $JBOSS_HOME/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-*.jar)" # resolve logmanager jar
JAVA_OPTS="$JAVA_OPTS -Xbootclasspath/p:$JBOSS_LOG_MANAGER_LIB"
JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager"

JAVA_OPTS="$JAVA_OPTS -Delastic.apm.service_name=my-service"
JAVA_OPTS="$JAVA_OPTS -Delastic.apm.application_packages=se.my.package"
JAVA_OPTS="$JAVA_OPTS -Delastic.apm.server_url=http://localhost:8200"

JAVA_OPTS="$JAVA_OPTS -javaagent:/path/elastic-apm-agent-0.5.1.jar"

from apm-agent-java.

Nabin0727 avatar Nabin0727 commented on June 18, 2024

I am facing the same issue of wildfly-10 not starting after adding apm-agent 1.33.0. Any help please?

from apm-agent-java.

jackshirazi avatar jackshirazi commented on June 18, 2024

@Nabin0727 please open a separate issue with all the details including configuration and stack traces

from apm-agent-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.