AppD Archive

Issue in Jboss Startup

CommunityUser
Splunk Employee
Splunk Employee

I've been getting this during startup of jboss-eap-6.4

I've already have this setup  -Djboss.modules.system.pkgs=org.jboss.byteman,com.singularity

The data is collected but I want to avoid error in startup as much as possible

sudo /etc/init.d/jboss-as start
Starting jboss-as: [Server:server-one] java.lang.NullPointerException
[Server:server-one] at com.singularity.ee.agent.appagent.AgentEntryPoint.initJavaVersion(AgentEntryPoint.java:211)
[Server:server-one] at com.singularity.ee.agent.appagent.AgentEntryPoint.premain(AgentEntryPoint.java:186)
[Server:server-one] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[Server:server-one] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[Server:server-one] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[Server:server-one] at java.lang.reflect.Method.invoke(Method.java:497)
[Server:server-one] at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
[Server:server-one] at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)

0 Karma

Arun_Dasetty
Super Champion

Hi,

To set the expectations right, we see jboss EAP 6.4 is not officially supported version as per docs, However we would like to check few things to see if we can assist here, hope that is fine with you.

- is this error raises when started as service or startup of linux OS? how it went when started using command like standone.sh / domain.sh from jboss bin directory ?

- send the following for initial review:

a) output of below comamnd:

shell> ps -ef | grep "java"

b) archive of <agent_install_dir>/logs and also the jboss startup scripts you updated to add java agent -javaagent entry and other jvm args

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

We've used the domain controller of EAP so the Process and Host controllers are also running, which are all java processes, however the server-one is the actual application where appdynamics is setup, as far as I can tell it's working, we just get the exception when jboss is started, we run the domain.sh during startup.

app_perf 25767 25701  1 Jun16 ?        00:14:08 /home/app_perf/jdk/bin/java -D[Server:server-one] -Xms1024m -Xmx4096m -javaagent:/home/app_perf/appdynamics/javaagent.jar -Dappdynamics.bciengine.class.lookahead=!* -Dappdynamics.agent.applicationName=<App1> -Dappdynamics.agent.tierName=Live -Dappdynamics.agent.accountName=<Cust1> -Dappdynamics.agent.accountAccessKey=******* -Dappdynamics.controller.hostName=<appdynamic.URL> -Dappdynamics.controller.port=8090 -Djboss.modules.system.pkgs=org.jboss.byteman,com.singularity -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dhazelcast.jmx=true -Djboss.bind.address=0.0.0.0 -Djboss.home.dir=/home/app_perf/jboss-as -Djboss.modules.policy-permissions=true -Djboss.server.log.dir=/home/app_perf/jboss-as/domain/servers/server-one/log -Djboss.server.temp.dir=/home/app_perf/jboss-as/domain/servers/server-one/tmp -Djboss.server.data.dir=/home/app_perf/jboss-as/domain/servers/server-one/data -Dlogging.configuration=file:/home/app_perf/jboss-as/domain/servers/server-one/data/logging.properties -jar /home/app_perf/jboss-as/jboss-modules.jar -mp /home/app_perf/jboss-as/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.server

0 Karma

Arun_Dasetty
Super Champion

Hi ,

Good to hear that the agent config is not affecting app statup, we see agent api part of NPE, Can you please confirm whether you see any agent related BT detection failure as such, if yes please send the archive of logs folder under /home/app_perf/appdynamics/logs path 

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

I'm guessing when you say BT, it's the business transaction logs you were referring to, I've attached the log related to this. Please take note that this startup exception don't happen to other environments that don't have appdynamics enabled.

0 Karma

Arun_Dasetty
Super Champion

Hi ,

We confirm the error is not affecting BT detection as per BT logs, we could see BT logged fine, if you see any BT metric reporting issue in controller UI for this agent, please send the archive of logs that starts with patten agent.<tiemstamp>.log

Hope that clarifies.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

is there a way I can send the logs securely? I just don't want this readily available for everyone to see :slightly_smiling_face:

0 Karma

Arun_Dasetty
Super Champion

Hi , feel free to send email to akumar@appdynamics.com for logs

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...