[jboss-jira] [JBoss JIRA] Updated: (JBAS-2909) Testcase infra structure for MemoryLeaks

Clebert Suconic (JIRA) jira-events at jboss.com
Mon Sep 25 17:46:01 EDT 2006


     [ http://jira.jboss.com/jira/browse/JBAS-2909?page=all ]

Clebert Suconic updated JBAS-2909:
----------------------------------

    Description: 
We could modify JBossTestCase::deploy to introspect every package being deployed and write details to a list. (say the name of the loaded classes, the name of the package and the name of the test).

Later before stopping the server on the testsuite, we should introspect loaded classes on the server and compare to the list. The intersection should be zero.
Also before doing such comparisson is a good idea to force an OutOfMemoryError, forcing eventual SoftReferences being released (e.g. JavaSerialization or any other Reflection cache)

To load the list we could use -XX:PrintClassHIstogram with a kill -3 on the server, or JVMTIInterface from JBossProfiler could also give you such list (by using a couple of methods for that).

This is an example of how to list loaded classes using JVMTIInterface from JBossProfiler:

                jvmtiInterface.forceReleaseOfGC();
                Class[] classes = jvmtiInterface.getLoadedClasses();



  was:
We could modify JBossTestCase::deploy to introspect every package being deployed and write details to a list. (say the name of the loaded classes, the name of the package and the name of the test).

Later before stopping the server on the testsuite, we should introspect loaded classes on the server and compare to the list. The intersection should be zero.
Also before doing such comparisson is a good idea to force an OutOfMemoryError, forcing eventual SoftReferences being released (e.g. JavaSerialization or any other Reflection cache)

To load the list we could use -XX:PrintClassHIstogram with a kill -3 on the server, or JVMTIInterface from JBossProfiler could also give you such list (by using a couple of methods for that).

This is an example of how to list loaded classes using JVMTIInterface from JBossProfiler:
This is an example of how to list loaded classes using JVMTIInterface from JBossProfiler:

                jvmtiInterface.forceReleaseOfGC();
                Class[] classes = jvmtiInterface.getLoadedClasses();




> Testcase infra structure for MemoryLeaks
> ----------------------------------------
>
>                 Key: JBAS-2909
>                 URL: http://jira.jboss.com/jira/browse/JBAS-2909
>             Project: JBoss Application Server
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>            Reporter: Clebert Suconic
>         Assigned To: Clebert Suconic
>             Fix For: JBossAS-4.0.6.CR1, JBossAS-5.0.1.CR1
>
>
> We could modify JBossTestCase::deploy to introspect every package being deployed and write details to a list. (say the name of the loaded classes, the name of the package and the name of the test).
> Later before stopping the server on the testsuite, we should introspect loaded classes on the server and compare to the list. The intersection should be zero.
> Also before doing such comparisson is a good idea to force an OutOfMemoryError, forcing eventual SoftReferences being released (e.g. JavaSerialization or any other Reflection cache)
> To load the list we could use -XX:PrintClassHIstogram with a kill -3 on the server, or JVMTIInterface from JBossProfiler could also give you such list (by using a couple of methods for that).
> This is an example of how to list loaded classes using JVMTIInterface from JBossProfiler:
>                 jvmtiInterface.forceReleaseOfGC();
>                 Class[] classes = jvmtiInterface.getLoadedClasses();

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list