You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Amila Chinthaka Suriarachchi (Commented) (JIRA)" <ji...@apache.org> on 2011/11/28 19:05:40 UTC

[jira] [Commented] (AXIS2-5203) JAX-WS Message Receiver Adds a new URL class loader to TCCL per each request.

    [ https://issues.apache.org/jira/browse/AXIS2-5203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158605#comment-13158605 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-5203:
-----------------------------------------------------

Nice catch.

Your patch make it use same class loader with different thread contexts. Which may not be a good practice.

please look at how setThreadContext method in org.apache.axis2.receivers.AbstractMessageReceiver handles that restoring the old class loader after invocation.

Can you try with that and please see whether this problem occurs when we set 

<parameter name="ServiceTCCL">composite</parameter> for normal axis2 services (According to that code this should not happen).

Please send a mail to dev list showing profile images before an after your improvement.

                
> JAX-WS Message Receiver Adds a new URL class loader to TCCL per each request.
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2-5203
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5203
>             Project: Axis2
>          Issue Type: Improvement
>          Components: jaxws
>         Environment: any
>            Reporter: Charith Dhanushka Wickramarachchi
>            Priority: Critical
>         Attachments: AXIS2-5203.diff
>
>
> In Current JAX-WS Message Receiver its adds a new URL class Loader instance as TCCL for each request. This becomes a major performance hit as it cause to create XMLOutputFactory at Axiom level for each response from the server.
> And also this may cause OOM situation since at AXIOM level it cache the XMLOutput factories per class Loader by default. So in this case the Hash map entries that's used for this  cache will get accumulated.
> thanks,
> Charith 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org