I get the following exception when I try to upload a file (33MB) with a webservice in ivy 4.3.21:

org.apache.axis2.AxisFault: java.lang.OutOfMemoryError: Java heap space at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at devd3.d3wservicegen.D3WServiceStub.ImportDocument(D3WServiceStub.java:14234) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at ch.ivyteam.ivy.webservice.restricted.exec.axis2.WebServiceCallAxis2.invokeMethod(WebServiceCallAxis2.java:687) at ch.ivyteam.ivy.webservice.restricted.exec.axis2.WebServiceCallAxis2.executeCall(WebServiceCallAxis2.java:454) at ch.ivyteam.ivy.webservice.restricted.exec.axis2.WebServiceCallAxis2.perform(WebServiceCallAxis2.java:258) at ch.ivyteam.ivy.webservice.restricted.execution.WebServiceCallBean.executeAxisWebServiceCall(WebServiceCallBean.java:239) at ch.ivyteam.ivy.webservice.restricted.execution.WebServiceCallBean.perform(WebServiceCallBean.java:355) at ch.ivyteam.ivy.process.engine.internal.io.extension.ProcessExtensionJob.run(ProcessExtensionJob.java:298) at ch.ivyteam.ivy.process.engine.internal.io.extension.ProcessExtensionThread.runAsSystem(ProcessExtensionThread.java:271) at ch.ivyteam.ivy.process.engine.internal.io.extension.ProcessExtensionThread$1.call(ProcessExtensionThread.java:219) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1404) at ch.ivyteam.ivy.process.engine.internal.io.extension.ProcessExtensionThread.run(ProcessExtensionThread.java:214)

Is there a simple way to increase the java heap space or is there any other solution available to upload bigger files? A file with 24MB can be uploaded without any problem. The webservice would support MTOM and excepts the file data as an javax.activation.DataHandler object.

asked 16.05.2014 at 11:48

Marco%20Birchler's gravatar image

Marco Birchler
accept rate: 0%

To increasing the default HeapSize of your underlaying tomcat you can modify the designer.ini file and add


For a windows-ivy-server you can set a new environment variable. And use the 'set environment' file to 'setenv.bat' in your 'ivyserverfolder/bin'.

set JAVA_OPTS=-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m

If you use Linux export the line in your 'setenv.sh' placed in your 'ivyserverfolder\bin'.

export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m"

Do not simply set it to your max memory. The error may be in your code.


answered 16.05.2014 at 14:01

Daniel%20Oechslin's gravatar image

Daniel Oechslin
accept rate: 36%


Note that you can only use something between 1 and 1.5 GB memory with a 32bit JRE. If you need more memory, then please use the 64bit Designer

(20.05.2014 at 07:54) MichaelDänzer ♦ MichaelD%C3%A4nzer's gravatar image

You can also set the heap size on a Xpert.ivy Server running on Windows by using an *.ilc file. See this chapter in the server guide for more information.

For Linux have a look at this chapter in the Server Guide


answered 16.05.2014 at 16:39

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
accept rate: 73%

edited 20.10.2017 at 07:39

Christian%20Strebel's gravatar image

Christian St... ♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 16.05.2014 at 11:48

Seen: 3,172 times

Last updated: 20.10.2017 at 07:39