Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-59679

Add option to configure thread pool definition for VerifyProcess to limit the thread pool size for the verify process

    Details

      Description

      Hi,

      Currently when VerifyProcess class gets called, if the model numbers from the verify process suit exceeds the threshold defined by "verify.process.concurrency.threshold=" property it will try to execute concurrently as below code snippet shows:

      protected void doVerify(
                  Collection<? extends ThrowableAwareRunnable>
                      throwableAwareRunnables)
              throws Exception {
      
              if (throwableAwareRunnables.size() <
                      PropsValues.VERIFY_PROCESS_CONCURRENCY_THRESHOLD) {
      
                  for (ThrowableAwareRunnable throwableAwareRunnable :
                          throwableAwareRunnables) {
      
                      throwableAwareRunnable.run();
                  }
              }
              else {
                  ExecutorService executorService = Executors.newFixedThreadPool(
                      throwableAwareRunnables.size());
      

      Right now there is no option to give a thread pool definition for VerifyProcess to limit its concurrency threads amount in relationship with JDBC Pool size to proactively prevent JDBC Pool Exhaustion.

      Please consider adding such option in the produce so that customer can define the threads for VerifyProcess against JDBC connection Pool resource.

      Thanks

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              phil.zhang Phil Zhang (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package