Page 1 of 1
					
				Maximum file size is not working
				PostPosted:Tue Apr 29, 2014 11:58 am
				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.
			 
			
					
				Re: Maximum file size is not working
				PostPosted:Wed Apr 30, 2014 9:12 am
				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 )
			 
			
					
				Re: Maximum file size is not working
				PostPosted:Fri May 02, 2014 12:28 pm
				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.??
			 
			
					
				Re: Maximum file size is not working
				PostPosted:Fri May 02, 2014 7:35 pm
				by omnicron
				It has nothing to do with your hard drive storage but the amount of memory tomcat needs.  On a Windows 32 bit OS you are limited to 1.6 gig of memory on tomcat heap size.  
Take a look at 
http://javarevisited.blogspot.com/2013/ ... emory.html.  It has a lot more information regarding heap size limitations and settings.
Tim
 
			 
			
					
				Re: Maximum file size is not working
				PostPosted:Sat May 03, 2014 7:54 am
				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.