Changing the transaction timeout
My application has some processing that takes a long time (it can be an import, an export, a complex document tree creation, etc.) that provokes an automatic transaction rollback because it is too long and the transaction goes in timeout. So the processing is never committed.
What can I do to increase the transaction timeout?
There are several timeouts related to transactions that can be configured.
The Transaction Manager timeout is 5 minutes by default (300 seconds), and is configured under Tomcat in the
templates/ corresponding to your configuration. Change the value for
transactionTimeoutSeconds in the
The HTTP session timeout is 1 hour by default (60 minutes), and is configured in
templates/common/OSGI-INF/templates/web.xml. Change the value for
In Nuxeo 5.5 you shouldn't need to change
nuxeo.xml directly, you can just uncomment and change the following in
# Database transaction timeout in seconds (Tomcat only) #nuxeo.db.transactiontimeout=300