Splunk AppDynamics

App agent is not starting on WebLogic application

CommunityUser
Splunk Employee
Splunk Employee

I have set the path to the AppD agent jar in the startWeblogic.cmd script like:

set JAVA_OPTIONS=%JAVA_OPTIONS% -javaagent:"%APPDHOME%\javaagent.jar"

just before the line for starting weblogic.

In the cmd output of WebLogic I can see that the javaoptions are set correctly and the AppD agent property is present but I don't see it running, so there are no messages on the console about actually starting the AppD agent at all. Also, no log files are generated.

What can I do to make the WebLogic start the AppD agent?

Labels (1)
0 Karma

Peter_Holditch
Builder

Can you try putting the -javaagent option at the start of the java options, rather than at the end?

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Still the same situation. Here is the java line:

C:\Oracle\MIDDLE~1\JDK160~1\bin\java -javaagent:"C:\AppServerAgent\javaagent.ja
r" -client -Xms512m -Xmx1536m -XX:MaxPermSize=128m -Dweblogic.Name=AdminServer
-Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy
-Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:
\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3
\server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testCon
sole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls
1036\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_oepe180
\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_ocp371\prof
iles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_adfr1111\profile
s\default\sysext_manifest_classpath weblogic.Server

0 Karma

Peter_Holditch
Builder

Can you confirm:

  1. is your WebLogic server is running fine
  2. do you have any agent logs written under C:\AppServerAgent\ver4.x.y.z\logs? (these will be in a directory named after the AppD node name)

Is there anything relating to the AppDynamics agent in the WebLogic boot log?

I also note this is your WebLogic admin server you have instrumented.  You are likely to get more interesting results from one of the managed servers where your app is running (unless this is a single server installation), although there is no reason that instrumenting the admin server should not work.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi,

1. Yes, it is running fine - I don't see any issues with it.

2. No - no logs generated at all. Only way I can make it write something is if I run directly java with -javaagent but it exits immediately after start, of course.

I don't see anything related with AppD in the weblogic logs.

It is a single server installation. And also it is more like a test setup so I just need to get any data from the agent...

0 Karma
Get Updates on the Splunk Community!

New This Month - Splunk Observability updates and improvements for faster ...

What’s New? This month, we’re delivering several enhancements across Splunk Observability Cloud for faster and ...

What's New in Splunk Cloud Platform 9.3.2411?

Hey Splunky People! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2411. This release ...

Buttercup Games: Further Dashboarding Techniques (Part 6)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...