| Oracle® Enterprise Manager Oracle Application Diagnostics for Java (Oracle AD4J) Administration and Reference Guide 10g Release 4 (10.2.0.4) Part Number E11084-01 |
|
|
View PDF |
This chapter provides information about the administration tasks that you can perform with Oracle Application Diagnostics For Java (Oracle AD4J). In particular, the chapter covers the following:
Note:
By default, Oracle AD4J Agent will write the following files to /tmp (C:\ on Windows):Heapdump file
Change for specific JVM from the Setup -> JVMs -> Edit JVM -> Heapdump Dir.
Extract and load native libraries
Change the parameter jamlibdir in the file jamserv/jam/jamagent/WEB-INF and rebuild wars.
Log file (only on Windows)
This is always written to C:\
If you have followed the default installation, then the console should be accessible from the URL
http://myconsole.mycompany.com:3500
Where myconsole.mycompany.com is the name of the server you have installed the console on.You can also access the console using the IP address zzz.zzz.zzz.zzz for the server.
This guide assumes that you have installed and configured your console with a valid repository. It further assumes that you have set up the DB and agents and they are able to communicate with the console. Also, the console is setup and running and some Oracle AD4J Agents are connected to it.
For details on how to set up the console and agents, refer to Oracle AD4J Installation Notes.
When you first access the console, it will take you to the Admin tab and run Diagnostics. Here, you can see the information about the configuration of the console and the errors (if any). For example, if a database connection cannot be established for some reason, it would show up here along with some debug information.
You are taken to the Login screen if you want to modify any admin information on the Oracle AD4J console. Login with the administrator password to continue.
You get the following screen if you try logging in again before timeout.
The adminDB.properties file stores connection information about the repository database. The file resides in the location specified by the start up parameter jampropfilepath.
Click on the adminDB.properties link to create the file :
Enter the fields with a valid DB Connection Information. Refer to the Oracle AD4J Console Install Note for details.
From this page you can create and/or view the tables and indexes in the database that are being used by the Oracle AD4J console.
This page is used to set console parameters and reset lost passwords.
Console Log Level, Cross Tier Log Level: Verbosity of console log messages. Increase only when advised by Oracle Support.
Agent Request Timeout, Agent Loop Request Timeout: Increase if the monitored JVMs are extremely busy and the console times out and disconnects waiting for their response.
Require login for Java tab: Enable this checkbox to restrict access to other (non-setup Tabs). Users's will need to login with valid accounts (created from the Users screen) and will have access to all non-setup screens. The setup screens can only be accessed by the ADMIN user.
Enable Monitoring: With this checkbox enabled, JVMs belonging to selected pools will be polled for active requests periodically. This data is available on the NOC and in the last 90 seconds/24 hrs charts.
Email Alerts: Email alerts based upon threshold violations (requires monitoring to be enabled).
Email Prefix for UserName, SMTP Mail Host, Send Mail As: Parameters used for emailing alerts.
SNMP Alerts: Send SNMP traps for threshold violations (requires monitoring to be enabled).
SNMP Host for Alerts: SNMP Host to send alerts to.
Reset Password Screen can be used to reset lost passwords and does not require old password.
You can use this page to list the available JVM Pools, delete existing pools or add new pools. Default and other pools cannot be deleted. Any user defined pools can be deleted.
Poll interval (ms): Sample interval for JVMs belonging to this pool when monitoring (Poll) is enabled.
Poll Enabled: Enable monitoring for this pool.
Email Alerts to: Email Alias/list to email this pool's alerts to.
Threshold violations are defined as the baseval being exceeded for the TriggerSamples % of samples. Baseval units are % CPU Utilization for Machine CPU (CPU), JVM CPU (CPU), % Heap Utilization for Heap, number of threads in that state for others.
So, 3-5 threads active in DB for more than 50% of the samples will cause an amber (Y) alert for DB, while 6+ threads active in DB wait state for more than 50% of the samples will cause a red alert for DB.
Use this screen to view information about the databases being monitored/profiled currently or to add additional databases for the same.
Registered DB Name: Provide a user friendly name for Oracle AD4J to display.
DB Hostname: Database server for this monitored instance.
Actual DB Name: Actual Oracle SID for the monitored DB.
DB Port: Oracle Net Listener Port on the DB Server.
DB User: DB User to use for querying database information.
Password: (only in update/new mode) : The password for the DB User.
DB User (Explain Plan): Application DB User account to use for explain plan analysis.
DB OS User: Operating System User which owns the database.
Lists all the JVMs that have connected to the console. You can edit the JVM parameters using the edit icon, or delete old JVMs that no longer connect to the console.
You can assign a JVM to a different pool, change it's log level (if recommended by Support) or change the temporary directory where the heap snapshots are dumped.
Once you have updated a JVM pool with polling enabled, you can monitor the JVMs in that pool.
Click on the Start Monitoring link above to start monitoring. This can also be done from the Console Setup Screen.
Use this screen to:
delete trace files from the traces you have run.
Load a trace file into the database so it can be seen from the Trace tab (this happens automatically when you run a trace).
Load a trace file from another console. You'll need to move the trace file(s) to the jamserv/trace directory for them to visible in this screen.
From this screen, you can create non-admin user accounts for accessing the Oracle AD4J console.