axis2 1.3 - MTOM sample: OutOfMemory
Hi! I've build the sample ws-app named mtom (from axis2 distribution, version 1.3), obtaining the sample-mtom.aar archive; I've deployed it on tomcat 6, and run the client app using the ant target run.client, specifing file source and destination; file size is about 6MB; I've change the parameter in axis2.xml to enable attachments caching: parameter name=enableMTOM looked=falsetrue/parameter parameter name=enableSwAtrue/parameter parameter name=cacheAttachments looked=falsetrue/parameter parameter name=attachmentDIR looked=falsec:/tmp//parameter parameter name=sizeThreshold looked=false4000/parameter But we I run the run.client target I get the exception, on the server side: java.lang.OutOfMemory: Java Heap Space I'm using the source code contained in the binary distribution... is this a bug? Mike
Re: axis2 1.3 - MTOM sample: OutOfMemory
Dear Charitha, I've tried increasing timeout from 1 to 1000 but I get the same exception: java.lang.OutOfMemoryError: Java heap space I note that in the my tmp directory (parameter name=attachmentDIR looked=falsec:/tmp//parameter), are present temporary caching files, with sime size of the file to be transfert. Mike - Original Message - From: Charitha Kankanamge [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Monday, September 17, 2007 6:22 PM Subject: Re: axis2 1.3 - MTOM sample: OutOfMemory Michele Rossi wrote: Hi! I've build the sample ws-app named mtom (from axis2 distribution, version 1.3), obtaining the sample-mtom.aar archive; I've deployed it on tomcat 6, and run the client app using the ant target run.client, specifing file source and destination; file size is about 6MB; I've change the parameter in axis2.xml to enable attachments caching: parameter name=enableMTOM looked=falsetrue/parameter parameter name=enableSwAtrue/parameter parameter name=cacheAttachments looked=falsetrue/parameter parameter name=attachmentDIR looked=falsec:/tmp//parameter parameter name=sizeThreshold looked=false4000/parameter But we I run the run.client target I get the exception, on the server side: java.lang.OutOfMemory: Java Heap Space I'm using the source code contained in the binary distribution... is this a bug? Mike Mike, Can you please increase the time out(serviceStub._getServiceClient().getOptions().setTimeOutInMilliSeconds(1000);) in the sample client(..\axis2-1.3\samples\mtom\src\sample\mtom\client.java) and try again? regards Charitha -- Charitha Kankanamge WSO2 inc. Flower Road, Colombo 07 +94 714268070 A bug in the hand is better than one as yet undetected - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis2 1.3 - MTOM sample: OutOfMemory
I'm getting the same exception with 256 - 1024 MB for tomcat Michele - Original Message - From: Bhojraj, Santosh [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Monday, September 17, 2007 6:31 PM Subject: RE: axis2 1.3 - MTOM sample: OutOfMemory How about running your server side JVM with increased memory options ? Using -Xms and -Xmx in the startup script . -Original Message- From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 12:23 PM To: axis-user@ws.apache.org Subject: Re: axis2 1.3 - MTOM sample: OutOfMemory Michele Rossi wrote: Hi! I've build the sample ws-app named mtom (from axis2 distribution, version 1.3), obtaining the sample-mtom.aar archive; I've deployed it on tomcat 6, and run the client app using the ant target run.client, specifing file source and destination; file size is about 6MB; I've change the parameter in axis2.xml to enable attachments caching: parameter name=enableMTOM looked=falsetrue/parameter parameter name=enableSwAtrue/parameter parameter name=cacheAttachments looked=falsetrue/parameter parameter name=attachmentDIR looked=falsec:/tmp//parameter parameter name=sizeThreshold looked=false4000/parameter But we I run the run.client target I get the exception, on the server side: java.lang.OutOfMemory: Java Heap Space I'm using the source code contained in the binary distribution... is this a bug? Mike Mike, Can you please increase the time out(serviceStub._getServiceClient().getOptions().setTimeOutInMilliSecond s(1000);) in the sample client(..\axis2-1.3\samples\mtom\src\sample\mtom\client.java) and try again? regards Charitha -- Charitha Kankanamge WSO2 inc. Flower Road, Colombo 07 +94 714268070 A bug in the hand is better than one as yet undetected - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis2 1.3 - MTOM sample: OutOfMemory
I'm using the MTOM-Sample taken from Axis2 release; with plain Axis2 1.3 it works correctly... Michele - Original Message - From: Thilina Gunarathne [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Monday, September 17, 2007 9:25 PM Subject: Re: axis2 1.3 - MTOM sample: OutOfMemory Hi Mike, Are you using the MTOM-Sample taken from the Axis2 1.3 release or are you using a modified version... Did you try your use case with plain Axis2 1.3 and using the Axis2 MTOM sample and the client... I'm not sure whether this is something to do with a Tomcat 6, but IMHO chances are very low for that... I note that in the my tmp directory (parameter name=attachmentDIR looked=falsec:/tmp//parameter), are present temporary caching files, with sime size of the file to be transfert. If the above means that you got the whole file tranfered to the temporary file, then the chances are high that you are trying to load the file in to memory from your service implementation.. thanks, Thilina On 9/17/07, Bhojraj, Santosh [EMAIL PROTECTED] wrote: How about running your server side JVM with increased memory options ? Using -Xms and -Xmx in the startup script . -Original Message- From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 12:23 PM To: axis-user@ws.apache.org Subject: Re: axis2 1.3 - MTOM sample: OutOfMemory Michele Rossi wrote: Hi! I've build the sample ws-app named mtom (from axis2 distribution, version 1.3), obtaining the sample-mtom.aar archive; I've deployed it on tomcat 6, and run the client app using the ant target run.client, specifing file source and destination; file size is about 6MB; I've change the parameter in axis2.xml to enable attachments caching: parameter name=enableMTOM looked=falsetrue/parameter parameter name=enableSwAtrue/parameter parameter name=cacheAttachments looked=falsetrue/parameter parameter name=attachmentDIR looked=falsec:/tmp//parameter parameter name=sizeThreshold looked=false4000/parameter But we I run the run.client target I get the exception, on the server side: java.lang.OutOfMemory: Java Heap Space I'm using the source code contained in the binary distribution... is this a bug? Mike Mike, Can you please increase the time out(serviceStub._getServiceClient().getOptions().setTimeOutInMilliSecond s(1000);) in the sample client(..\axis2-1.3\samples\mtom\src\sample\mtom\client.java) and try again? regards Charitha -- Charitha Kankanamge WSO2 inc. Flower Road, Colombo 07 +94 714268070 A bug in the hand is better than one as yet undetected - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thilina Gunarathne - http://thilinag.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis2 1.3 - MTOM sample: OutOfMemory
Hi everyone! I've solved the problem: the java.lang.OutOfMemory: Java Heap Space exception happens if the soapMonitor is enabled; I've tried to disable the module (in Tomcat) and now all is working fine! I think that's important to document this problem. Thanks Michele Rossi - Original Message - From: Thilina Gunarathne [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Monday, September 17, 2007 9:25 PM Subject: Re: axis2 1.3 - MTOM sample: OutOfMemory Hi Mike, Are you using the MTOM-Sample taken from the Axis2 1.3 release or are you using a modified version... Did you try your use case with plain Axis2 1.3 and using the Axis2 MTOM sample and the client... I'm not sure whether this is something to do with a Tomcat 6, but IMHO chances are very low for that... I note that in the my tmp directory (parameter name=attachmentDIR looked=falsec:/tmp//parameter), are present temporary caching files, with sime size of the file to be transfert. If the above means that you got the whole file tranfered to the temporary file, then the chances are high that you are trying to load the file in to memory from your service implementation.. thanks, Thilina On 9/17/07, Bhojraj, Santosh [EMAIL PROTECTED] wrote: How about running your server side JVM with increased memory options ? Using -Xms and -Xmx in the startup script . -Original Message- From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 12:23 PM To: axis-user@ws.apache.org Subject: Re: axis2 1.3 - MTOM sample: OutOfMemory Michele Rossi wrote: Hi! I've build the sample ws-app named mtom (from axis2 distribution, version 1.3), obtaining the sample-mtom.aar archive; I've deployed it on tomcat 6, and run the client app using the ant target run.client, specifing file source and destination; file size is about 6MB; I've change the parameter in axis2.xml to enable attachments caching: parameter name=enableMTOM looked=falsetrue/parameter parameter name=enableSwAtrue/parameter parameter name=cacheAttachments looked=falsetrue/parameter parameter name=attachmentDIR looked=falsec:/tmp//parameter parameter name=sizeThreshold looked=false4000/parameter But we I run the run.client target I get the exception, on the server side: java.lang.OutOfMemory: Java Heap Space I'm using the source code contained in the binary distribution... is this a bug? Mike Mike, Can you please increase the time out(serviceStub._getServiceClient().getOptions().setTimeOutInMilliSecond s(1000);) in the sample client(..\axis2-1.3\samples\mtom\src\sample\mtom\client.java) and try again? regards Charitha -- Charitha Kankanamge WSO2 inc. Flower Road, Colombo 07 +94 714268070 A bug in the hand is better than one as yet undetected - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thilina Gunarathne - http://thilinag.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]