• Up- and download large files with Webservice

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #11187  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!
 #11209  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.
 #11227  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.
 #11240  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?
 #11255  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.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.