Skip to content

Commit

Permalink
Change maximum executorServiceMaxPoolSize
Browse files Browse the repository at this point in the history
  • Loading branch information
wcgunter committed Feb 8, 2024
1 parent d7785ae commit 5adaf62
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,8 @@ public boolean syncCounters(String reason) {
public void setJobExecutorMaxPoolSize(Integer executorServiceMaxPoolSize, boolean doDbUpdate) {
if (executorServiceMaxPoolSize != null) {
try {

// we are getting errors if we go beyond 10?
executorServiceMaxPoolSize = Math.max(10, executorServiceMaxPoolSize);
// Log information about JMX remote interface
if (System.getProperty("com.sun.management.jmxremote") == null) {
log.warn("JMX remote appears to be disabled");
Expand All @@ -922,7 +923,7 @@ public void setJobExecutorMaxPoolSize(Integer executorServiceMaxPoolSize, boolea
// Through experimentation, we have seen that the max doesn't get reached, but
// its the core size that counts.
//
Attribute attr2 = new Attribute("CorePoolSize", executorServiceMaxPoolSize);
Attribute attr2 = new Attribute("CorePoolSize", 10);
mbsc.setAttribute(serviceName, attr2);

// Also set the MaximumPoolSize
Expand Down

0 comments on commit 5adaf62

Please sign in to comment.