[jbossws-issues] [JBoss JIRA] Commented: (JBWS-2615) JBoss does't unload web services classes

Adrian Brock (JIRA) jira-events at lists.jboss.org
Tue Apr 14 07:15:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBWS-2615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12462004#action_12462004 ] 

Adrian Brock commented on JBWS-2615:
------------------------------------

The information on this "bug report" is not enough for me to reproduce/understand what is happening,
but it certainly doesn't look like a classloader issue, instead it how the classloader is being used.

The only things of interest shown in the screenshots are:

1) repeated loading from the same class (which is impossible if it is the same
classloader - defineClass would throw an error)

2) loaded classes not getting unloaded, i.e. garbage collected

(1) could only happen if there are multiple classloaders being used,
this could be further investigated by attaching trace logging for org.jboss.classloader showing
which classloaders are loading the classes (and how those are constructed)

(2) is an issue for whoever holds the hard reference(s) on the class(es)/classloader(s)
this could be investigated with a heap dump and the java6 tool jhat

> JBoss does't unload web services classes
> ----------------------------------------
>
>                 Key: JBWS-2615
>                 URL: https://jira.jboss.org/jira/browse/JBWS-2615
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>         Environment: Windows 2003 Server,  JBoss 5.0.0.GA,  Java 1.6.0_12.
>            Reporter: Edson Goncalez
>            Priority: Critical
>         Attachments: generated_source_classes.zip, screenshot-1.jpg, screenshot-2.jpg, screenshot-3.jpg, screenshot-4.jpg
>
>
> We have an application that comunicate with a webservice (Federal Government of  Brazil) constantly, step by 5 or 10 seconds.
> We have created web service consumer classes by using the following command point to the WSDL file:
> wsconsume -k -p br.com.compliancefiscal.nfe.ejb.sefaz.ws.nfestatusservico -v NfeStatusServico.wsdl
> This tool, was generated this classes:
> NfeStatusServico.java
> NfeStatusServico_Service.java
> NfeStatusServicoNF.java
> NfeStatusServicoNFResponse.java
> NfeStatusServicoSoap.java
> ObjectFactory.java
> package-info.java
> The problem is. When running... every call this webservice generate a new loadclass. Viewing in the JConsole tool, we can note that whe app starts it have aproximatelly 15000 classes loaded, and afeter 10 hours running we can se that the jvm has increased up to 70000 classes loaded, and only 252 classes unloaded.
> I have the screenshot that show this.
> What can occours to causing this BIG load classes for same class ?
> PS: The app does not run any other service. It just start a method that connect to the specified webservice and return a String info. A TimerService trigger start the process steb by 5 seconds.
> Thanks.
> Edson Gonçalez.

-- 
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 jbossws-issues mailing list