[
https://issues.apache.org/jira/browse/AXIS2-5203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159070#comment-13159070
]
Charith Dhanushka Wickramarachchi commented on AXIS2-5203:
----------------------------------------------------------
Hi Andreas,
Can you please Elaborate on your statement a little bit as it is not clear to
me ? (Basically your comment does not give any clear reasoning for your clams)
Let me clarify what i have done.
In Axiom (StaXUtils) it keeps a cache of XMLOutputFactories in a map per CL
where it is in this case TCCL. and by default caching is enabled. So i think
idea was to avoid creation of XMLOutputFactory per each request which is a
costly operation. (I'll start a mail thread on this and post the profile data i
have.).
But in current JAXWSMessageReceiver it creates and adds a new CL and set it as
TCCL per each request which cases Axiom to create a new XMLOutputFactory per
each request. And as they are cached this may cause OOM.
So in this case i m going to avoid this by using the same class loader per
service.May be we can discuss and improve the patch.
@Amila
I'll will look at how normal services behave and see whether this issue is
there in that services too and keep this thread posted.
thanks,
Charith
> 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: [email protected]
For additional commands, e-mail: [email protected]