A while ago, I've posted an article titled
Understanding WebLogic Incident and the Diagnostic Framework behind It[1]
This article is a follow-up of that one. In this article, we will discuss how to configure Diagnostic Framework Settings.
Diagnostic Framework (DFW)
A quick recap what Diagnostic Framework (DFW) is. Oracle Fusion Middleware includes a Diagnostic Framework (DFW). DFW is available with all FMW 11g installations that run on WebLogic Server. It aids in detecting, diagnosing, and resolving problems, which are targeted in particular critical errors.
There are two ways that you can modify DFW settings:
- Modifying the configuration file named dfw_config.xml
- Making updates via Fusion Middleware Control (FMW Console)[2]
In this article, we will show how to modify the following setting:
- maxTotalIncidentSize
Configuration File
DFW's configuration file is named dfw_config.xml. There is one dfw_config.xml file for each server. For example, there is one for CRMCommonServer_1:
Here is the sample contents of dfw_config.xml:
To start Oracle Enterprise Manager 11g, I have used the following URL:
The following diagrams show how to configure
- config/fmwconfig/servers/CRMCommonServer_1/dfw_config.xml
in the CRMDomain.
Here is the sample contents of dfw_config.xml:
<?xml version="1.0" encoding="UTF-8"?> <diagnosticsConfiguration xmlns="<snipped>" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"> <!-- maxTotalIncidentSize configures the maximum total disk space allocated to incidents, in megabytes. --> <incidentCleanup maxTotalIncidentSize="500"/> <incidentCreation incidentCreationEnabled="true" logDetectionEnabled="true" uncaughtExceptionDetectionEnabled="true" floodControlEnabled="true" floodControlIncidentCount="5" floodControlIncidentTimePeriod="60" reservedMemoryKB="512"/> <threadDump useExternalCommands="true"/> <dumpSampling enabled="true"> <dumpSample sampleName="JVMThreadDump" diagnosticDumpName="jvm.threads" samplingInterval="60" rotationCount="10" dumpedImplicitly="true" toAppend="true"> <dumpArgument name="timing" value="true"/> <dumpArgument name="context" value="true"/> </dumpSample> <dumpSample sampleName="JavaClassHistogram" diagnosticDumpName="jvm.classhistogram" samplingInterval="1800" rotationCount="5" dumpedImplicitly="false" toAppend="true"> </dumpSample> </dumpSampling> </diagnosticsConfiguration>In our case, we would like to update
- maxTotalIncidentSize
FMW Console
To start Oracle Enterprise Manager 11g, I have used the following URL:
- http://myserver.oracle.com:9001/em
The following diagrams show how to configure
- maxTotalIncidentSize
- From the target navigation pane, expand the farm, then WebLogic Domain.
- Select the domain.
- From the WebLogic Domain menu, choose System MBean Browser.
- The System MBean Browser page is displayed.
- Expand Application Defined Beans, then oracle.dfw, then domain.domain_name, then dfw.jmx.DiagnosticsConfigMBean.
- Select one of the DiagnosticConfig entries. There is one DiagnosticConfig entry for each server.
- In the Application Defined MBean pane, expand Show MBean Information to see the server name.
2 comments:
This is a very nice one and gives in-depth information. I am really happy with the quality and presentation of the article. I’d really like to appreciate the efforts you get with writing this post. Thanks for sharing.
CCNA training in Mumbai
That was a really great post.
CCNA classes in Pune
Post a Comment