• Maximum file size is not working

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #28444  by mohasinmujawar56
 
I am using OpenKM 6.2. I am facing problems in uploading files more than 120 MB.
The default value for max.file.size is 0. But when I am uploading files more than 120 MB in size the uploading process stuck at 'Processing'. Nothing happens after that.
When I checked the log on tomcat server it shows 'java.lang.OutOfMemoryError'.
Then I looked my system free space, but it is more than enough to store file more than 120 MB in size.
Help me on this.
Attachments
problem.png
problem.png (15.97 KiB) Viewed 3830 times
 #28453  by jllort
 
max.file.size = 0 indicate unlimited file size
about Java.lang.OutOfMemoryError that means you do not have enought memory to your tomcat. What amount of memory do you got on system, what OS and what are your $TOMCAT_HOME/bin/setenv.sh or setenv.sh values ( depending your os )
 #28476  by mohasinmujawar56
 
I am hosting the OpenKM on Windows Server 2003 32-bit OS.
The free size on the machine where I am hosting the OpenKM is 246GB.
I have checked the setenv.sh file 'JAVA_OPTS="-Xms128m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -Djava.awt.headless=true -Dfile.encoding=utf-8"' written in the file. I have changed the '-Xms128m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m' to '-Xms512m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=1024m' then tried to start the tomcat server but the tomcat server is not getting started. It closed itself.

Could you tell me whats going wrong.??
 #28478  by jllort
 
As says omnicron with 32 bits OS you are so limited to increase memory use for JVM ( is a limitation in JAVA under 32 bits architecture ). If you're on production environment I suggest change OS to 64 bits or jump to other computer with 64 bits architecture.

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.