[jbossws-issues] [JBoss JIRA] Updated: (JBWS-2636) MessageContextJAXWS not closing wsdl input stream

Alessio Soldano (JIRA) jira-events at lists.jboss.org
Thu Apr 30 03:32:46 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBWS-2636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alessio Soldano updated JBWS-2636:
----------------------------------

      Component/s: jbossws-native
                       (was: tools-jaxws)
    Fix Version/s: jbossws-native-3.2.0


> MessageContextJAXWS not closing wsdl input stream
> -------------------------------------------------
>
>                 Key: JBWS-2636
>                 URL: https://jira.jboss.org/jira/browse/JBWS-2636
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-native
>    Affects Versions: jbossws-2.0.1.SP2
>         Environment: RHEL5 64bit, jboss 4.3.0 CP04, jbossws-2.0.1-3.SP2_CP05.3.1.ep1.el5
>            Reporter: Jordan O'Mara
>             Fix For: jbossws-native-3.2.0
>
>
> It looks like MessageContextJAXWS is opening streams to wsdl files (which in this case are local for services provided by this container) and never closing them, causing our machine to run out of file handles if the wsdl is requested many times in rapid succession. We got the following exception: 
> 009-04-28 16:21:53,689 ERROR
> [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception
> org.jboss.ws.WSException: Cannot open:
> file:/var/lib/jbossas/server/production/data/wsdl/regnum-service-ear-1.1.ear/regnum-service-ejb-1.1.jar/RegNumServic
> +eBeanService7046.wsdl
>          at
> org.jboss.ws.core.jaxws.handler.MessageContextJAXWS.setOperationMetaData(MessageContextJAXWS.java:143)
>          at
> org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:177)
> We suspected that the nodes were either running out of file handles or
> disk space. Turns out its file handles. Looking at the class, line
> 123:
> 123    public void setOperationMetaData(OperationMetaData opMetaData)
> It does a wsdlSource.openStream() but never closes it.
> We watched the file handles grow on this wsdl file and never shrink
> during the operation of the script. You can check on this with a
> script like this:
> lsof -p `pgrep java` | awk '{print $9}' | sort | uniq -c | sort -n |
> tac | head

-- 
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