• java heap out of memory while uploading 50MB file

  • 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.
 #2588  by vnaik
 
I am using openkm webservices to manage documents & axis2 as client. When I am trying to upload a file of size 50MB via webservice, it is throwing \"java heap out of memory\" exception at the server & \"Unexpected EOF in prolog\" exception at client.

The heap size for openKM server is configured as 1GB. I am not getting why is it using so much of heap space to upload just 50MB file.

The same thing when I do without webservice i.e by directly invoking FileUploadServlet in openKM, it is working properly. I am able to upload much larger files by using FileUploadServlet directly.

Then why is it failing only for web services?

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.