Hi all,
We have problems with downloading of content via web service. Any content which is bigger that 30-35 Mb requires a lot of heap space to can be downloaded. For example, to download a file of 100 mb, the used heap space increased to 1550 Mb. We use MTOM feature for Content Service also, and I went to the temporary files and noticed that the content is complete downloaded in the temporary file, but exactly when the temporary file is finished, the heap increase and crash. Also, we used jProfiler to monitors the JVM, and we noticed that all the memory is occupied by arrays of char[]. We use OpenText Content Server 10.5.0, but we have the same problem also with 10.0.0, 9.7.1 and 16.0.0.
The stacktrace looks like this:
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2367)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
at java.lang.StringBuilder.append(StringBuilder.java:132)
at com.sun.org.apache.xerces.internal.dom.TextImpl.getWholeText(TextImpl.java:168)
at com.sun.xml.ws.streaming.DOMStreamReader.next(DOMStreamReader.java:757)
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:192)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:360)
at com.sun.xml.bind.v2.runtime.BridgeImpl.unmarshal(BridgeImpl.java:120)
at com.sun.xml.bind.api.Bridge.unmarshal(Bridge.java:233)
at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:525)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:121)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
at com.sun.proxy.$Proxy37.downloadContent(Unknown Source)
at de.fme.mc.otcs.downloader.Downloader.run(Downloader.java:93)
at de.fme.mc.otcs.downloader.AppStarter.main(AppStarter.java:17)
We used also both services, the java web service and .net web service, but same result. Are there some configurations in OpenText Content Server or anything related with that?
We tried to use the HttpContentHandler.ashx from .net web service and works better, but for files bigger than ~70 Mb, a lot of bytes was lost.
Any ideas? Thanks