cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the transaction timeout

Florent_Guillau
World-Class Innovator
World-Class Innovator

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?

1 ACCEPTED ANSWER

Florent_Guillau
World-Class Innovator
World-Class Innovator

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 nuxeo.xml under templates/ corresponding to your configuration. Change the value for transactionTimeoutSeconds in the TransactionManager resource.

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 session-timeout.

View answer in original post

3 REPLIES 3

Florent_Guillau
World-Class Innovator
World-Class Innovator

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 nuxeo.xml under templates/ corresponding to your configuration. Change the value for transactionTimeoutSeconds in the TransactionManager resource.

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 session-timeout.

Florent_Guillau
World-Class Innovator
World-Class Innovator

In Nuxeo 5.5 you shouldn't need to change nuxeo.xml directly, you can just uncomment and change the following in nuxeo.conf instead:

# Database transaction timeout in seconds (Tomcat only)
#nuxeo.db.transactiontimeout=300

Alice_J
Champ in-the-making
Champ in-the-making

Hi, would it be possible to configure and customize the transaction time out for a specific operation ? Thank you

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.