AppD Archive

How to configure java agent for oc4j

CommunityUser
Splunk Employee
Splunk Employee

I have added javaagent in the opmn.xml as follows:

<category id="start-parameters">
<data id="java-options" value="-server -Djava.security.policy=/oracle/product/portal/j2ee/OC4J_Portal/config/java2.policy -Djava.awt.headless=true -Xms2047m -Xmx2047m -javaagent:.../AppServerAgent/javaagent.jar=uniqueID=LT"/>

after adding java agent argument server doesnot start up.Please help me configure this

Tags (2)
0 Karma

Arun_Dasetty
Super Champion

Hi ,

What is the error you see on server console when starting with agent , Also is the path provided for -javaagent arg is valid?

.../AppServerAgent  , Attach the opmn.xml and server console and agent logs if exists under <agent_dir>/logs path

Regards,

Arun

Tags (2)
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Path for java agent iscorrect.Just pasted an representation in above message .
Error message in logs.
Unrecognized option: -javaagent:/oracle/AppServerAgent/javaagent.jar=uniqueID=LT
Could not create the Java virtual machine.
 

Tags (2)
0 Karma

Arun_Dasetty
Super Champion

Hi,

While you provide the below requested information to debug further, can you check if the following doc link helps: https://docs.oracle.com/cd/B10464_05/core.904/b10379/optj2ee.htm#i1023682

- complete error stack trace at jvm server cosnole showing the error

- JVM version?

- attach agent logs and opmn.xml file 

- have you tried removing uniqueID arg and see if that makes any differece post restart of jvm?

Regards,

Arun

Tags (2)
0 Karma
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...