Skip to content

Commit

Permalink
[PHEE-560] Reduce Memory Consumption of reported services (#18)
Browse files Browse the repository at this point in the history
* zeebe max-exe-trds 1000->50

* zeebe client version 8.1.1 -> 8.1.23

* zeebe poll Interval 1 -> 10, configurable
  • Loading branch information
Anover000 authored Feb 15, 2024
1 parent bdc8cae commit 69f7915
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repositories {

ext {
camelVersion = '3.18.1'
zeebClientVersion = '8.1.1'
zeebClientVersion = '8.1.23'
springBootVersion = '2.7.3'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ public class ZeebeClientConfiguration {
@Value("${zeebe.client.max-execution-threads}")
private int zeebeClientMaxThreads;

@Value("${zeebe.client.poll-interval}")
private int zeebeClientPollInterval;

@Bean
public ZeebeClient setup() {
return ZeebeClient.newClientBuilder()
.gatewayAddress(zeebeBrokerContactpoint)
.usePlaintext()
.defaultJobPollInterval(Duration.ofMillis(1))
.defaultJobPollInterval(Duration.ofMillis(zeebeClientPollInterval))
.defaultJobWorkerMaxJobsActive(2000)
.numJobWorkerExecutionThreads(zeebeClientMaxThreads)
.build();
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ bpmn:

zeebe:
client:
max-execution-threads: 1000
max-execution-threads: 50
evenly-allocated-max-jobs: 1000
poll-interval: 10
# max-execution-threads: 100
# number-of-workers: 15
# evenly-allocated-max-jobs: "#{${zeebe.client.max-execution-threads} / ${zeebe.client.number-of-workers}}"
Expand Down

0 comments on commit 69f7915

Please sign in to comment.