Comments (8)
WildFly now works out-of-the-box without any configuration changes apart from adding the -javaagent
flag 🙂
from apm-agent-java.
@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.
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.
Thanks. That solved it.
I added "org.jboss.byteman,co.elastic"
from apm-agent-java.
I'll try to add co.elastic.apm
to the system properties automatically. I'm reopening to track this.
from apm-agent-java.
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.
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.
@Nabin0727 please open a separate issue with all the details including configuration and stack traces
from apm-agent-java.
Related Issues (20)
- Incorrect containerID detection in apm-java-agent on GKE Autopilot cluster HOT 15
- Fake exceptions for error tracing HOT 1
- SIGSEGV Tomcat 10.1 Java 17 HOT 26
- Missing PGP Public Key HOT 3
- ERROR co.elastic.apm.agent.bci.IndyBootstrap - Advice threw an exception, this should never happen! HOT 15
- OpenTelemetry API bridge doesn't bridge TracerProvider.tracerBuilder
- Error reported when using dubbo3.0.11:java.lang.IllegalStateException: Serialized class co.elastic.apm.agent.impl.transaction.Span must implement java.io.Serializable HOT 4
- Add Apache Dubbo 3+ support
- Instrumentation annotations inheritance is flawed
- Span compression does not work with `trace_methods` HOT 1
- APM Tracing support kotlin coroutines HOT 1
- Elastic Java APM Agent breaks trace logging for SpringBoot HOT 2
- Elastic APM agent duplicates all logs for any Quarkus application starting with version 1.30.0 HOT 2
- Clarify release flow
- SIGSEGV caused by ElasticApmTracer.captureException HOT 4
- Spring Webflux 3.2: agent attachment causes java.lang.IllegalStateException: The underlying HTTP client completed without emitting a response. HOT 1
- AbstractIntakeApiHandler - Change log level for connection error HOT 2
- Fix docker image publication version
- Send host.id received from profiler via IntakeV2 metadata
- Elastic Java APM Agent Files or Directories Accessible to External Parties vulnerable to path traversal HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apm-agent-java.