iDempiere uses custom forms and processes to support business operations. Our iDempiere database size is more than 800 GB. Due to unexpected application or process issues, a form or process may not complete its database transaction properly. As a result, a transaction may remain open or inactive and continue holding database resources.
In some cases, tables or individual rows may also remain locked for an extended period. These inactive transactions and persistent locks can consume resources and affect database performance. They may also prevent other iDempiere processes or users from accessing the affected data.
PostgreSQL ConfigurationTo reduce the impact of such situations, PostgreSQL timeout parameters can be configured. The idle_in_transaction_session_timeout parameter can automatically terminate sessions that remain idle while a transaction is open. This helps release the transaction and associated database resources when an application does not close it properly.
The lock_timeout parameter limits the amount of time a transaction can wait to acquire a database lock. This prevents processes from waiting indefinitely when another transaction is holding the required lock.
Expected BenefitsThese timeout settings provide a safety mechanism to handle application-level transaction and locking issues. They help release database resources and prevent tables or rows from staying locked for a long time. This can improve database stability, availability, and overall iDempiere application performance.
However, the timeout values should be set carefully to avoid affecting valid long-running transactions or processes.
I would appreciate feedback from the iDempiere community on recommended values for these parameters and any potential impact on iDempiere functionality.
--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/idempiere/892eb4b9-7a6c-4648-8cb0-6982d250cf10n%40googlegroups.com.