Wednesday, 13 June 2007

Dumping System Properties with OC4J 10.1.3.x

I worked with steve on identifying a third party application issue within OC4J , during that he showed me an easy way to view/dump the system properties for the container in 10.1.3.x for OC4J.

In his blog he shows it with a JSP page which was how it was done pre OC4J 10.1.3, of course that still works in OC4J 10.1.3 but you can now use Application Server Control (ASC) in 10.1.3.x which is very handy.

His steve's blog entry showing the JSP page way:

http://buttso.blogspot.com/2005/11/dumping-system-properties-with-oc4j.html


His how you can do this with ASC now in 10.1.3.x:

1. Log into ASC.
2. Click on the OC4J instance you wish to see the system properties for.
3. Click on the "Administration" link.
4. Click on "Go To Task Icon" for System MBean Browser.
5. On the left panel click the + symbol for "ClassLoading".
6. Click on link for "singleton".
7. Click on "Operations" link on main window.
8. Click on the 3rd link for "executeQuery", make sure you click on the 3rd one in the list.
9. Enter the following for the value text field -> SystemProperties
10. Click on "Invoke Operation".
11. You should get the output under "Return Value" for the current system properties

No comments: