[jboss-jira] [JBoss JIRA] Commented: (JBWEB-150) Provide an identifier to relate web application to classloader in a heap dump
Mike Millson (JIRA)
jira-events at lists.jboss.org
Thu Oct 15 07:00:06 EDT 2009
[ https://jira.jboss.org/jira/browse/JBWEB-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12489995#action_12489995 ]
Mike Millson commented on JBWEB-150:
------------------------------------
Test case:
1) Create war with <display-name>Testbox</display-name> in web application deployment descriptor (WEB-INF/web.xml).
2) Deploy war to JBoss
3) Manually create a heap dump (e.g. jmap -heap:format=b <jboss_pid> on JDK 1.5)
4) Parse the heap dump with the Eclipse Memory Analyzer Tool (MAT).
5) List all org.jboss.web.tomcat.service.WebAppLoader objects and inspect the displayName property. Verify one object has displayName populated with "Testbox".
6) List all org.jboss.web.tomcat.service.WebAppClassLoader objects and inspect the displayName property. Verify one object has displayName populated with "Testbox".
> 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
> Attachments: jbossweb_2_0_0_CP03-add_display_name.txt
>
>
> 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 object in the heap dump will show "Testbox" in the WebAppLoader 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
More information about the jboss-jira
mailing list