[ 
https://issues.apache.org/jira/browse/TUSCANY-1814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532691
 ] 

Chris Lo commented on TUSCANY-1814:
-----------------------------------

Hi Raymond,

I think the problem originated in the WSDLModelResolver.java class, the method 
readInlineSchemas:

wsdlDefinition.setInlinedSchemas(resolved.getSchemaCollection());

I notice that the schema collection being returned from 
resolved.getSchemaCollection() does not return a full set of the schema 
collection in comparison to the old code:

wsdlDefinition.getInlinedSchemas().setSchemaResolver(new 
XSDModelResolver.URIResolverImpl(contribution));
....
wsdlDefinition.getInlinedSchemas().setBaseUri(element.getOwnerDocument().getDocumentURI());
wsdlDefinition.getInlinedSchemas().read(doc, 
element.getOwnerDocument().getDocumentURI() + "#" + index, null);


If I put the above section back into the code, it seems to be able to resolve 
the schema definition from the included file.

I am not quite sure how the schemaCollection affect the memory footprint, if 
you could let me know, that would be great.

Thanks,
Chris                    

> Large memory footprint with large wsdl/schemas
> ----------------------------------------------
>
>                 Key: TUSCANY-1814
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1814
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Data Binding Runtime
>    Affects Versions: Java-SCA-1.0
>         Environment: Windows/Tomcat
>            Reporter: Sunny Ip
>            Assignee: Raymond Feng
>             Fix For: Java-SCA-Next
>
>         Attachments: Memory Footprint (Startup Profile).png, trninq.zip, 
> wsdl.zip
>
>
> Creating services and components based on large wsdl/schemas (SDO 
> generation/databinding, ws binding, etc.) results in very high memory 
> footprint. Attaching sample wsdls that make use of the very large schema that 
> we are using. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to