[
https://jira.jboss.org/jira/browse/JBWEB-150?page=com.atlassian.jira.plug...
]
Mike Millson resolved JBWEB-150.
--------------------------------
Resolution: Rejected
The WebappLoader has a reference to an ObjectName that has a _canonicalName String that
can be used to identify web app classloaders.
For example, to see all _canonicalName values:
SELECT toString(oname._canonicalName) FROM org.jboss.web.tomcat.service.WebAppLoader
Then a specific WebAppLoader could be selected as follows:
SELECT * FROM org.jboss.web.tomcat.service.WebAppLoader WHERE
toString(oname._canonicalName) =
"jboss.web:host=localhost,path=/jmx-console,type=Loader"
Or the WebAppClassLoader selected as follows:
SELECT OBJECTS classLoader FROM org.jboss.web.tomcat.service.WebAppLoader WHERE
toString(oname._canonicalName) =
"jboss.web:host=localhost,path=/jmx-console,type=Loader"
Provide an identifier to relate web application to classloader in a
heap dump
-----------------------------------------------------------------------------
Key: JBWEB-150
URL:
https://jira.jboss.org/jira/browse/JBWEB-150
Project: JBoss Web
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Core
Reporter: Mike Millson
Assignee: Remy Maucherat
Attachments: jbossweb_2_0_0_CP03-add_display_name.txt, JBWEB-150-patch.txt,
testbox.war
When troubleshooting OutOfMemoryError issues in situations where the JVM is running
multiple applications, it would be very helpful for troubleshooting to be able to relate a
web application to the web app classloader.
It is proposed to sets the display-name of the war as a property on the web app
classloader so that it can be easily accessed when viewing a heap dump (e.g. with a tool
such as the Eclipse Memory Analyzer Tool).
For example, given the following web application deployment descriptor (web.xml):
<web-app>
<display-name>Testbox</display-name>
</web-app>
Inspection of the corresponding org.jboss.web.tomcat.service.WebAppLoader and
org.jboss.web.tomcat.service.WebAppClassLoader objects in the heap dump will show
"Testbox" in the displayName field.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira