Page 1 of 1

Up- and download large files with Webservice

PostPosted:Wed Jun 01, 2011 9:53 am
by Linsche
Hello all

I have got some problems with OpenKM and large files. It seems that files larger than 27 MB don't get into the DMS using Soap. If I try to upload one ther is no answer from the server, not even an exception or something. The same with download.
There is no problem while using the upload from OKM client.
Is there some limitation an can it be changed? If not, is there another way to transfer files from our scanserver to OKM an from OKM to our webserver?

Thank you!

Re: Up- and download large files with Webservice

PostPosted:Sun Jun 05, 2011 8:19 am
by jllort
You could connect webdav and copy directly to there.

Is there some error on server.log or similar ? could you try making some log while uploading file ... to understanding when stop the process.

Re: Up- and download large files with Webservice

PostPosted:Mon Jun 06, 2011 10:05 am
by pavila
I've tested an upload of 45MB file from a web service client and works pretty well. Maybe you have to increase memory limits for JVM, but in any case you should see an exception in the JBoss log.

Re: Up- and download large files with Webservice

PostPosted:Tue Jun 07, 2011 8:15 am
by Linsche
I did some tests and checked the log. I've got

[org.apache.catalina.core.Containerbase.[jboss.web].[localhost].[(OpenKM].[OKMDocument]] Servlet.service() for servlet OKMDocument threw exception
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882) ...

error

I tried to rise the heap size in JBoss/bin/run.conf and run.sh with no effect (512m , 1g, 2g)

Maybe this is not the right place to do the changes?

Re: Up- and download large files with Webservice

PostPosted:Thu Jun 09, 2011 8:42 pm
by pavila
If you are running JBoss in Linux, edit $JBOSS_HOME/bin/run.sh and modify this line (line number 13):
Code: Select all
JAVA_OPTS="-Xms256m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=256m"
To give more memory to JVM.

Also read:

* http://sixservix.com/blog/david/2009/08 ... a-en-java/
* http://rimuhosting.com/knowledgebase/li ... x-settings
* http://javahowto.blogspot.com/2006/06/6 ... -heap.html
* http://www.jroller.com/imeshev/entry/ef ... _heap_size
* http://unixville.com/~moazam/stories/20 ... lHeap.html
* etc.