diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index a45e9cf85..98305973e 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -201,6 +201,16 @@ alpine.database.pool.max.lifetime=600000 # @hidden alpine.datanucleus.cache.level2.type=none +# Controls the maximum number of ExecutionContext objects that are pooled by DataNucleus. +# The default defined by DataNucleus is 20. However, since Dependency-Track occasionally +# tweaks ExecutionContexts (e.g. to disable auto-flushing for insert-heavy tasks), +# they are not safe for reuse. We thus disable EC pooling completely. +# +# @category: Database +# @type: integer +# @hidden +alpine.datanucleus.executioncontext.maxidle=0 + # Defines whether database migrations should be executed on startup. #

# From v5.6.0 onwards, migrations are considered part of the initialization tasks.