On Nuxeo 5.2+
| Since Nuxeo 5.4, The "import file" feature has no file size limit. But this feature is not used by the file widget so you must apply the following configuration for authorize the file widget to upload big file size.
This means without nuxeo configuration modification, drag'n drop feature will works for any size File but create a new File document will fail if you use the Creation Form. |
Tomcat
Change the Seam multipart filter configuration
Edit $TOMCAT/templates/common/META-INF/templates/components.xml:
Modify this section:
and add a max-request-size param as follow:
0 means no limit, otherwise the size is expressed in bytes.
JBoss
Update the max transaction timeout
Update the max transaction timeout with a more adequate value in regard to your network velocity and size limit in $JBOSS/server/default/conf/jboss-service.xml:
Note: This setting can impact scalability.
Change the Seam multipart filter configuration
Edit $JBOSS/server/default/deploy/nuxeo.ear/OSGI-INF/templates/components.xml:
Modify this section:
and add a max-request-size param as follow:
0 means no limit, otherwise the size is expressed in bytes.
On Nuxeo 5.1.6
Update deployment-fragment in nuxeo-platform-ui-web-x.y.z.jar
You will find nuxeo-platform-ui-web-x.y.zjar in $JBOSS/server/default/deploy/nuxeo.ear/system/.
Open the file deployment-fragment.xml in the directory OSGI-INF/.
Update the filter extensionsFilter and change the param uploadMaxFileSize:
Update also this section and put your own limit:
Change the JVM options in order to avoid memory exception
Edit the file $JBOSS/bin/run.conf
Change this line by modifying the Xmx value which is max memory size that the jvm will accept to use, keep in mind that if you want to be able to upload a 1 giga file, you have to put at least 1300m-1400m :
example:
Update the max transaction timeout
Update the max transaction timeout with a more adequate value in regard to your network velocity and size limit in $JBOSS/server/default/conf/jboss-service.xml
Note: This setting can impact scalability.
Check that externalBLOBs is set to true
Check that externalBLOBs is set to true in $JBOSS/server/default/deploy/nuxeo.ear/config/default-repository-config.xml or in your own repository configuration file.
In order to store file on the filesystem and not in database, otherwise you will be limited by the blob size limit of the database and it can significantly decrease the overall performance.
You will notice that there are two {{PersistenceManager}}s.