Skip to content

Conversation

kr-igor
Copy link
Contributor

@kr-igor kr-igor commented Jul 9, 2025

  • Avoid using ReenterantLock, use synchronized instead
  • Removed unnecessary long -> string conversion

This reduces DSM overhead by about 1/3.

@pr-commenter
Copy link

pr-commenter bot commented Jul 9, 2025

Benchmarks

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master kr-igor/dsm-optimization-v1
git_commit_date 1752084850 1752096665
git_commit_sha 89e92d5 54ab943
release_version 1.52.0-SNAPSHOT~89e92d59f6 1.52.0-SNAPSHOT~54ab9438ae
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1752098420 1752098420
ci_job_id 1021898581 1021898581
ci_pipeline_id 70117003 70117003
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-kcc8t9i8 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-kcc8t9i8 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
module Agent Agent
parent None None

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 43 metrics, 10 unstable metrics.

Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.52.0-SNAPSHOT~54ab9438ae, baseline=1.52.0-SNAPSHOT~89e92d59f6

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (995.854 ms) : 0, 995854
Total [baseline] (8.581 s) : 0, 8580608
Agent [candidate] (995.744 ms) : 0, 995744
Total [candidate] (8.602 s) : 0, 8601754
section iast
Agent [baseline] (1.141 s) : 0, 1141233
Total [baseline] (9.279 s) : 0, 9278534
Agent [candidate] (1.133 s) : 0, 1132530
Total [candidate] (9.287 s) : 0, 9287319
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 995.854 ms -
Agent iast 1.141 s 145.378 ms (14.6%)
Total tracing 8.581 s -
Total iast 9.279 s 697.926 ms (8.1%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 995.744 ms -
Agent iast 1.133 s 136.786 ms (13.7%)
Total tracing 8.602 s -
Total iast 9.287 s 685.565 ms (8.0%)
gantt
    title insecure-bank - break down per module: candidate=1.52.0-SNAPSHOT~54ab9438ae, baseline=1.52.0-SNAPSHOT~89e92d59f6

    dateFormat X
    axisFormat %s
section tracing
BytebuddyAgent [baseline] (687.507 ms) : 0, 687507
BytebuddyAgent [candidate] (687.425 ms) : 0, 687425
GlobalTracer [baseline] (242.37 ms) : 0, 242370
GlobalTracer [candidate] (242.37 ms) : 0, 242370
AppSec [baseline] (30.277 ms) : 0, 30277
AppSec [candidate] (30.295 ms) : 0, 30295
Debugger [baseline] (6.021 ms) : 0, 6021
Debugger [candidate] (5.966 ms) : 0, 5966
Remote Config [baseline] (686.531 µs) : 0, 687
Remote Config [candidate] (670.338 µs) : 0, 670
Telemetry [baseline] (8.221 ms) : 0, 8221
Telemetry [candidate] (8.295 ms) : 0, 8295
section iast
BytebuddyAgent [baseline] (813.824 ms) : 0, 813824
BytebuddyAgent [candidate] (807.573 ms) : 0, 807573
GlobalTracer [baseline] (233.409 ms) : 0, 233409
GlobalTracer [candidate] (232.39 ms) : 0, 232390
IAST [baseline] (28.475 ms) : 0, 28475
IAST [candidate] (26.98 ms) : 0, 26980
AppSec [baseline] (29.271 ms) : 0, 29271
AppSec [candidate] (29.753 ms) : 0, 29753
Debugger [baseline] (6.741 ms) : 0, 6741
Debugger [candidate] (6.561 ms) : 0, 6561
Remote Config [baseline] (585.366 µs) : 0, 585
Remote Config [candidate] (574.832 µs) : 0, 575
Telemetry [baseline] (7.992 ms) : 0, 7992
Telemetry [candidate] (7.934 ms) : 0, 7934
Loading
Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.52.0-SNAPSHOT~54ab9438ae, baseline=1.52.0-SNAPSHOT~89e92d59f6

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (995.58 ms) : 0, 995580
Total [baseline] (10.654 s) : 0, 10653848
Agent [candidate] (998.7 ms) : 0, 998700
Total [candidate] (10.678 s) : 0, 10677936
section appsec
Agent [baseline] (1.175 s) : 0, 1174996
Total [baseline] (10.783 s) : 0, 10783076
Agent [candidate] (1.184 s) : 0, 1183715
Total [candidate] (10.839 s) : 0, 10838605
section iast
Agent [baseline] (1.159 s) : 0, 1159374
Total [baseline] (11.021 s) : 0, 11020670
Agent [candidate] (1.134 s) : 0, 1134002
Total [candidate] (10.938 s) : 0, 10938114
section profiling
Agent [baseline] (1.249 s) : 0, 1248584
Total [baseline] (11.001 s) : 0, 11000638
Agent [candidate] (1.245 s) : 0, 1244904
Total [candidate] (10.931 s) : 0, 10931258
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 995.58 ms -
Agent appsec 1.175 s 179.416 ms (18.0%)
Agent iast 1.159 s 163.794 ms (16.5%)
Agent profiling 1.249 s 253.004 ms (25.4%)
Total tracing 10.654 s -
Total appsec 10.783 s 129.228 ms (1.2%)
Total iast 11.021 s 366.822 ms (3.4%)
Total profiling 11.001 s 346.79 ms (3.3%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 998.7 ms -
Agent appsec 1.184 s 185.015 ms (18.5%)
Agent iast 1.134 s 135.301 ms (13.5%)
Agent profiling 1.245 s 246.204 ms (24.7%)
Total tracing 10.678 s -
Total appsec 10.839 s 160.669 ms (1.5%)
Total iast 10.938 s 260.178 ms (2.4%)
Total profiling 10.931 s 253.322 ms (2.4%)
gantt
    title petclinic - break down per module: candidate=1.52.0-SNAPSHOT~54ab9438ae, baseline=1.52.0-SNAPSHOT~89e92d59f6

    dateFormat X
    axisFormat %s
section tracing
BytebuddyAgent [baseline] (686.974 ms) : 0, 686974
BytebuddyAgent [candidate] (688.379 ms) : 0, 688379
GlobalTracer [baseline] (242.478 ms) : 0, 242478
GlobalTracer [candidate] (244.007 ms) : 0, 244007
AppSec [baseline] (30.357 ms) : 0, 30357
AppSec [candidate] (30.47 ms) : 0, 30470
Debugger [baseline] (6.027 ms) : 0, 6027
Debugger [candidate] (6.016 ms) : 0, 6016
Remote Config [baseline] (687.459 µs) : 0, 687
Remote Config [candidate] (680.467 µs) : 0, 680
Telemetry [baseline] (8.192 ms) : 0, 8192
Telemetry [candidate] (8.314 ms) : 0, 8314
section appsec
BytebuddyAgent [baseline] (710.949 ms) : 0, 710949
BytebuddyAgent [candidate] (715.686 ms) : 0, 715686
GlobalTracer [baseline] (234.949 ms) : 0, 234949
GlobalTracer [candidate] (237.266 ms) : 0, 237266
AppSec [baseline] (170.621 ms) : 0, 170621
AppSec [candidate] (171.817 ms) : 0, 171817
Debugger [baseline] (5.698 ms) : 0, 5698
Debugger [candidate] (5.742 ms) : 0, 5742
Remote Config [baseline] (599.075 µs) : 0, 599
Remote Config [candidate] (605.512 µs) : 0, 606
Telemetry [baseline] (8.106 ms) : 0, 8106
Telemetry [candidate] (8.084 ms) : 0, 8084
IAST [baseline] (23.168 ms) : 0, 23168
IAST [candidate] (23.485 ms) : 0, 23485
section iast
BytebuddyAgent [baseline] (827.657 ms) : 0, 827657
BytebuddyAgent [candidate] (807.671 ms) : 0, 807671
GlobalTracer [baseline] (236.706 ms) : 0, 236706
GlobalTracer [candidate] (232.724 ms) : 0, 232724
AppSec [baseline] (30.547 ms) : 0, 30547
AppSec [candidate] (30.892 ms) : 0, 30892
Debugger [baseline] (5.877 ms) : 0, 5877
Debugger [candidate] (7.534 ms) : 0, 7534
Remote Config [baseline] (621.605 µs) : 0, 622
Remote Config [candidate] (582.293 µs) : 0, 582
Telemetry [baseline] (8.184 ms) : 0, 8184
Telemetry [candidate] (8.014 ms) : 0, 8014
IAST [baseline] (28.581 ms) : 0, 28581
IAST [candidate] (25.621 ms) : 0, 25621
section profiling
ProfilingAgent [baseline] (103.835 ms) : 0, 103835
ProfilingAgent [candidate] (103.699 ms) : 0, 103699
BytebuddyAgent [baseline] (681.164 ms) : 0, 681164
BytebuddyAgent [candidate] (677.044 ms) : 0, 677044
GlobalTracer [baseline] (361.493 ms) : 0, 361493
GlobalTracer [candidate] (362.257 ms) : 0, 362257
AppSec [baseline] (32.254 ms) : 0, 32254
AppSec [candidate] (31.675 ms) : 0, 31675
Debugger [baseline] (12.27 ms) : 0, 12270
Debugger [candidate] (9.808 ms) : 0, 9808
Remote Config [baseline] (668.783 µs) : 0, 669
Remote Config [candidate] (675.257 µs) : 0, 675
Telemetry [baseline] (8.019 ms) : 0, 8019
Telemetry [candidate] (11.138 ms) : 0, 11138
Profiling [baseline] (103.859 ms) : 0, 103859
Profiling [candidate] (103.724 ms) : 0, 103724
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master kr-igor/dsm-optimization-v1
git_commit_date 1752084850 1752096665
git_commit_sha 89e92d5 54ab943
release_version 1.52.0-SNAPSHOT~89e92d59f6 1.52.0-SNAPSHOT~54ab9438ae
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1752098099 1752098099
ci_job_id 1021898582 1021898582
ci_pipeline_id 70117003 70117003
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-qzde8inm 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-qzde8inm 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Summary

Found 1 performance improvements and 2 performance regressions! Performance is the same for 9 metrics, 12 unstable metrics.

scenario Δ mean http_req_duration Δ mean throughput candidate mean http_req_duration candidate mean throughput baseline mean http_req_duration baseline mean throughput
scenario:load:insecure-bank:profiling:high_load worse
[+450.517µs; +756.004µs] or [+5.396%; +9.054%]
unstable
[-102.893op/s; +28.831op/s] or [-18.527%; +5.191%]
8.953ms 518.344op/s 8.350ms 555.375op/s
scenario:load:petclinic:iast:high_load better
[-3.108ms; -2.247ms] or [-6.774%; -4.898%]
unstable
[-1.414op/s; +14.014op/s] or [-1.386%; +13.739%]
43.202ms 108.300op/s 45.880ms 102.000op/s
scenario:load:petclinic:no_agent:high_load worse
[+0.822ms; +1.473ms] or [+2.237%; +4.011%]
unstable
[-11.990op/s; +4.167op/s] or [-9.300%; +3.232%]
37.877ms 125.013op/s 36.730ms 128.924op/s
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.52.0-SNAPSHOT~54ab9438ae, baseline=1.52.0-SNAPSHOT~89e92d59f6
    dateFormat X
    axisFormat %s
section baseline
no_agent (4.477 ms) : 4425, 4528
.   : milestone, 4477,
iast (9.221 ms) : 9071, 9371
.   : milestone, 9221,
iast_FULL (13.756 ms) : 13480, 14032
.   : milestone, 13756,
iast_GLOBAL (9.961 ms) : 9787, 10135
.   : milestone, 9961,
profiling (8.35 ms) : 8212, 8487
.   : milestone, 8350,
tracing (7.464 ms) : 7360, 7568
.   : milestone, 7464,
section candidate
no_agent (4.356 ms) : 4307, 4405
.   : milestone, 4356,
iast (9.098 ms) : 8949, 9246
.   : milestone, 9098,
iast_FULL (13.592 ms) : 13319, 13865
.   : milestone, 13592,
iast_GLOBAL (10.273 ms) : 10095, 10452
.   : milestone, 10273,
profiling (8.953 ms) : 8807, 9099
.   : milestone, 8953,
tracing (7.523 ms) : 7409, 7636
.   : milestone, 7523,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 4.477 ms [4.425 ms, 4.528 ms] -
iast 9.221 ms [9.071 ms, 9.371 ms] 4.744 ms (106.0%)
iast_FULL 13.756 ms [13.48 ms, 14.032 ms] 9.279 ms (207.3%)
iast_GLOBAL 9.961 ms [9.787 ms, 10.135 ms] 5.485 ms (122.5%)
profiling 8.35 ms [8.212 ms, 8.487 ms] 3.873 ms (86.5%)
tracing 7.464 ms [7.36 ms, 7.568 ms] 2.987 ms (66.7%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 4.356 ms [4.307 ms, 4.405 ms] -
iast 9.098 ms [8.949 ms, 9.246 ms] 4.742 ms (108.9%)
iast_FULL 13.592 ms [13.319 ms, 13.865 ms] 9.236 ms (212.0%)
iast_GLOBAL 10.273 ms [10.095 ms, 10.452 ms] 5.917 ms (135.8%)
profiling 8.953 ms [8.807 ms, 9.099 ms] 4.597 ms (105.5%)
tracing 7.523 ms [7.409 ms, 7.636 ms] 3.167 ms (72.7%)
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.52.0-SNAPSHOT~54ab9438ae, baseline=1.52.0-SNAPSHOT~89e92d59f6
    dateFormat X
    axisFormat %s
section baseline
no_agent (36.73 ms) : 36440, 37020
.   : milestone, 36730,
appsec (46.378 ms) : 45958, 46798
.   : milestone, 46378,
code_origins (44.365 ms) : 43992, 44739
.   : milestone, 44365,
iast (45.88 ms) : 45473, 46287
.   : milestone, 45880,
profiling (50.011 ms) : 49589, 50432
.   : milestone, 50011,
tracing (44.693 ms) : 44319, 45067
.   : milestone, 44693,
section candidate
no_agent (37.877 ms) : 37562, 38193
.   : milestone, 37877,
appsec (46.732 ms) : 46312, 47153
.   : milestone, 46732,
code_origins (43.533 ms) : 43159, 43907
.   : milestone, 43533,
iast (43.202 ms) : 42809, 43595
.   : milestone, 43202,
profiling (50.325 ms) : 49840, 50809
.   : milestone, 50325,
tracing (43.72 ms) : 43352, 44087
.   : milestone, 43720,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 36.73 ms [36.44 ms, 37.02 ms] -
appsec 46.378 ms [45.958 ms, 46.798 ms] 9.648 ms (26.3%)
code_origins 44.365 ms [43.992 ms, 44.739 ms] 7.635 ms (20.8%)
iast 45.88 ms [45.473 ms, 46.287 ms] 9.15 ms (24.9%)
profiling 50.011 ms [49.589 ms, 50.432 ms] 13.281 ms (36.2%)
tracing 44.693 ms [44.319 ms, 45.067 ms] 7.963 ms (21.7%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 37.877 ms [37.562 ms, 38.193 ms] -
appsec 46.732 ms [46.312 ms, 47.153 ms] 8.855 ms (23.4%)
code_origins 43.533 ms [43.159 ms, 43.907 ms] 5.656 ms (14.9%)
iast 43.202 ms [42.809 ms, 43.595 ms] 5.325 ms (14.1%)
profiling 50.325 ms [49.84 ms, 50.809 ms] 12.447 ms (32.9%)
tracing 43.72 ms [43.352 ms, 44.087 ms] 5.842 ms (15.4%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master kr-igor/dsm-optimization-v1
git_commit_date 1752084850 1752096665
git_commit_sha 89e92d5 54ab943
release_version 1.52.0-SNAPSHOT~89e92d59f6 1.52.0-SNAPSHOT~54ab9438ae
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1752098721 1752098721
ci_job_id 1021898583 1021898583
ci_pipeline_id 70117003 70117003
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-zpoms0yh 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-zpoms0yh 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics.

Execution time for biojava
gantt
    title biojava - execution time [CI 0.99] : candidate=1.52.0-SNAPSHOT~54ab9438ae, baseline=1.52.0-SNAPSHOT~89e92d59f6
    dateFormat X
    axisFormat %s
section baseline
no_agent (14.961 s) : 14961000, 14961000
.   : milestone, 14961000,
appsec (14.768 s) : 14768000, 14768000
.   : milestone, 14768000,
iast (18.379 s) : 18379000, 18379000
.   : milestone, 18379000,
iast_GLOBAL (18.104 s) : 18104000, 18104000
.   : milestone, 18104000,
profiling (15.305 s) : 15305000, 15305000
.   : milestone, 15305000,
tracing (14.653 s) : 14653000, 14653000
.   : milestone, 14653000,
section candidate
no_agent (15.042 s) : 15042000, 15042000
.   : milestone, 15042000,
appsec (15.04 s) : 15040000, 15040000
.   : milestone, 15040000,
iast (18.42 s) : 18420000, 18420000
.   : milestone, 18420000,
iast_GLOBAL (17.822 s) : 17822000, 17822000
.   : milestone, 17822000,
profiling (15.161 s) : 15161000, 15161000
.   : milestone, 15161000,
tracing (14.842 s) : 14842000, 14842000
.   : milestone, 14842000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 14.961 s [14.961 s, 14.961 s] -
appsec 14.768 s [14.768 s, 14.768 s] -193.0 ms (-1.3%)
iast 18.379 s [18.379 s, 18.379 s] 3.418 s (22.8%)
iast_GLOBAL 18.104 s [18.104 s, 18.104 s] 3.143 s (21.0%)
profiling 15.305 s [15.305 s, 15.305 s] 344.0 ms (2.3%)
tracing 14.653 s [14.653 s, 14.653 s] -308.0 ms (-2.1%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.042 s [15.042 s, 15.042 s] -
appsec 15.04 s [15.04 s, 15.04 s] -2.0 ms (-0.0%)
iast 18.42 s [18.42 s, 18.42 s] 3.378 s (22.5%)
iast_GLOBAL 17.822 s [17.822 s, 17.822 s] 2.78 s (18.5%)
profiling 15.161 s [15.161 s, 15.161 s] 119.0 ms (0.8%)
tracing 14.842 s [14.842 s, 14.842 s] -200.0 ms (-1.3%)
Execution time for tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.52.0-SNAPSHOT~54ab9438ae, baseline=1.52.0-SNAPSHOT~89e92d59f6
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.477 ms) : 1465, 1488
.   : milestone, 1477,
appsec (2.424 ms) : 2374, 2474
.   : milestone, 2424,
iast (2.209 ms) : 2147, 2272
.   : milestone, 2209,
iast_GLOBAL (2.257 ms) : 2193, 2320
.   : milestone, 2257,
profiling (2.072 ms) : 2020, 2125
.   : milestone, 2072,
tracing (2.013 ms) : 1965, 2061
.   : milestone, 2013,
section candidate
no_agent (1.48 ms) : 1468, 1491
.   : milestone, 1480,
appsec (2.421 ms) : 2371, 2471
.   : milestone, 2421,
iast (2.21 ms) : 2147, 2273
.   : milestone, 2210,
iast_GLOBAL (2.251 ms) : 2187, 2314
.   : milestone, 2251,
profiling (2.053 ms) : 2003, 2104
.   : milestone, 2053,
tracing (2.021 ms) : 1972, 2070
.   : milestone, 2021,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.477 ms [1.465 ms, 1.488 ms] -
appsec 2.424 ms [2.374 ms, 2.474 ms] 947.219 µs (64.1%)
iast 2.209 ms [2.147 ms, 2.272 ms] 732.255 µs (49.6%)
iast_GLOBAL 2.257 ms [2.193 ms, 2.32 ms] 779.569 µs (52.8%)
profiling 2.072 ms [2.02 ms, 2.125 ms] 595.405 µs (40.3%)
tracing 2.013 ms [1.965 ms, 2.061 ms] 536.085 µs (36.3%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.48 ms [1.468 ms, 1.491 ms] -
appsec 2.421 ms [2.371 ms, 2.471 ms] 940.822 µs (63.6%)
iast 2.21 ms [2.147 ms, 2.273 ms] 729.952 µs (49.3%)
iast_GLOBAL 2.251 ms [2.187 ms, 2.314 ms] 770.727 µs (52.1%)
profiling 2.053 ms [2.003 ms, 2.104 ms] 573.327 µs (38.7%)
tracing 2.021 ms [1.972 ms, 2.07 ms] 540.986 µs (36.6%)

@kr-igor kr-igor changed the title Various DSM optimizations for high throughput scenarios DSM optimizations for high throughput scenarios Jul 9, 2025
Copy link
Contributor

@dougqh dougqh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, that's a solid improvement for a relatively small change

@kr-igor kr-igor marked this pull request as ready for review July 10, 2025 13:45
Copy link
Contributor

github-actions bot commented Jul 10, 2025

Hi! 👋 Thanks for your pull request! 🎉

To help us review it, please make sure to:

  • Add at least one type, and one component or instrumentation label to the pull request

If you need help, please check our contributing guidelines.

@kr-igor kr-igor added type: enhancement Enhancements and improvements comp: data streams Data Streams Monitoring labels Jul 10, 2025
@kr-igor kr-igor merged commit 4891bf2 into master Jul 10, 2025
508 of 510 checks passed
@kr-igor kr-igor deleted the kr-igor/dsm-optimization-v1 branch July 10, 2025 13:52
@github-actions github-actions bot added this to the 1.52.0 milestone Jul 10, 2025
@PerfectSlayer PerfectSlayer added the tag: performance Performance related changes label Jul 15, 2025
kr-igor added a commit that referenced this pull request Jul 22, 2025
* Avoid long to string conversion
* Use synchronized
svc-squareup-copybara pushed a commit to cashapp/misk that referenced this pull request Aug 5, 2025
| Package | Type | Package file | Manager | Update | Change |
|---|---|---|---|---|---|
| [redis.clients:jedis](https://github.com/redis/jedis) | dependencies |
misk/gradle/libs.versions.toml | gradle | minor | `6.0.0` -> `6.1.0` |
|
[com.google.api.grpc:proto-google-common-protos](https://github.com/googleapis/sdk-platform-java)
| dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`2.59.2` -> `2.60.0` |
|
[com.google.cloud:google-cloud-core-http](https://github.com/googleapis/sdk-platform-java)
| dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`2.58.2` -> `2.59.0` |
|
[com.google.cloud:google-cloud-core](https://github.com/googleapis/sdk-platform-java)
| dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`2.58.2` -> `2.59.0` |
| [com.google.api:gax](https://github.com/googleapis/sdk-platform-java)
| dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`2.68.2` -> `2.69.0` |
| [com.squareup.wire](https://github.com/square/wire) | plugin |
misk/gradle/libs.versions.toml | gradle | patch | `5.3.5` -> `5.3.6` |
| [com.squareup.wire:wire-schema](https://github.com/square/wire) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch | `5.3.5`
-> `5.3.6` |
| [com.squareup.wire:wire-runtime](https://github.com/square/wire) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch | `5.3.5`
-> `5.3.6` |
| [com.squareup.wire:wire-reflector](https://github.com/square/wire) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch | `5.3.5`
-> `5.3.6` |
| [com.squareup.wire:wire-moshi-adapter](https://github.com/square/wire)
| dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`5.3.5` -> `5.3.6` |
| [com.squareup.wire:wire-grpc-client](https://github.com/square/wire) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch | `5.3.5`
-> `5.3.6` |
| [com.squareup.wire:wire-bom](https://github.com/square/wire) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch | `5.3.5`
-> `5.3.6` |
| [com.datadoghq:dd-trace-api](https://github.com/datadog/dd-trace-java)
| dependencies | misk/gradle/libs.versions.toml | gradle | minor |
`1.51.2` -> `1.52.0` |
| [software.amazon.awssdk:sdk-core](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.32.14` -> `2.32.15` |
| [software.amazon.awssdk:sqs](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.32.14` -> `2.32.15` |
| [software.amazon.awssdk:regions](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.32.14` -> `2.32.15` |
|
[software.amazon.awssdk:dynamodb-enhanced](https://aws.amazon.com/sdkforjava)
| dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.32.14` -> `2.32.15` |
| [software.amazon.awssdk:dynamodb](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.32.14` -> `2.32.15` |
| [software.amazon.awssdk:aws-core](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.32.14` -> `2.32.15` |
| [software.amazon.awssdk:bom](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.32.14` -> `2.32.15` |
| [software.amazon.awssdk:auth](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.32.14` -> `2.32.15` |

---

### Release Notes

<details>
<summary>redis/jedis (redis.clients:jedis)</summary>

### [`v6.1.0`](https://github.com/redis/jedis/releases/tag/v6.1.0):
6.1.0

### Changes

#### 🚀 New Features

- Add support for SVS-VAMANA vector indexing
([#&#8203;4222](redis/jedis#4222))
- Clarify why new stream entries aren't deleted with XDELEX
([#&#8203;4218](redis/jedis#4218))
- Add support for new stream commands
([#&#8203;4211](redis/jedis#4211))
- Add Support for New BITOP Operations in Redis 8.2
([#&#8203;4188](redis/jedis#4188))
([#&#8203;4190](redis/jedis#4190))
- Add binary stream support for XREAD and XREADGROUP
([#&#8203;3566](redis/jedis#3566))
([#&#8203;4152](redis/jedis#4152))
- Run pipeline in current thread if all the keys on same node
([#&#8203;4149](redis/jedis#4149))

#### 🐛 Bug Fixes

- Restore binary compatibility of SetParams
([#&#8203;4225](redis/jedis#4225))
- Fix memory leak in JedisClusterInfoCache - replica nodes not cleared
([#&#8203;4205](redis/jedis#4205))
- Fix:JedisCluster throws NullPointerException when maxAttempts is set
to 0 ([#&#8203;4186](redis/jedis#4186))

#### 🧰 Maintenance

- DOC-5471 time series doc examples
([#&#8203;4210](redis/jedis#4210))
- Bump jackson.version from 2.19.1 to 2.19.2
([#&#8203;4208](redis/jedis#4208))
- Fix flaky test ClientCommandsTest.killSkipmeYesNo
([#&#8203;4206](redis/jedis#4206))
- Bump org.junit:junit-bom from 5.13.2 to 5.13.3
([#&#8203;4198](redis/jedis#4198))
- Migrate publishing to Maven Central Portal
([#&#8203;4199](redis/jedis#4199))
- Bump org.apache.maven.plugins:maven-gpg-plugin from 3.2.7 to 3.2.8
([#&#8203;4197](redis/jedis#4197))
- Bump org.junit:junit-bom from 5.13.1 to 5.13.2
([#&#8203;4192](redis/jedis#4192))
- DOC-5227 added probabilistic data type examples
([#&#8203;4184](redis/jedis#4184))
- Bump jackson.version from 2.19.0 to 2.19.1
([#&#8203;4180](redis/jedis#4180))
- Update test infra to use latest Redis
([#&#8203;4179](redis/jedis#4179))
- Bump org.junit:junit-bom from 5.13.0-RC1 to 5.13.1
([#&#8203;4174](redis/jedis#4174))
- Bump org.json:json from
[`2025010`](redis/jedis@20250107) to
[`2025051`](redis/jedis@20250517)
([#&#8203;4171](redis/jedis#4171))
- Bump org.apache.httpcomponents.client5:httpclient5-fluent from 5.4.4
to 5.5 ([#&#8203;4170](redis/jedis#4170))
- Fix flaky tests in DocumentTest
([#&#8203;3617](redis/jedis#3617))
- Add retryable command execution example
([#&#8203;3780](redis/jedis#3780))
- Bump jackson.version from 2.18.3 to 2.19.0
([#&#8203;4160](redis/jedis#4160))
- Bump com.google.code.gson:gson from 2.12.1 to 2.13.1
([#&#8203;4161](redis/jedis#4161))

#### Contributors

We'd like to thank all the contributors who worked on this release!

[@&#8203;219sansim](https://github.com/219sansim),
[@&#8203;YoHanKi](https://github.com/YoHanKi),
[@&#8203;andy-stark-redis](https://github.com/andy-stark-redis),
[@&#8203;ggivo](https://github.com/ggivo),
[@&#8203;jujn](https://github.com/jujn),
[@&#8203;thachlp](https://github.com/thachlp),
[@&#8203;uglide](https://github.com/uglide) and
[@&#8203;xrayw](https://github.com/xrayw)

</details>

<details>
<summary>googleapis/sdk-platform-java
(com.google.api.grpc:proto-google-common-protos)</summary>

###
[`v2.60.0`](https://github.com/googleapis/sdk-platform-java/blob/HEAD/CHANGELOG.md#2600-2025-06-23)

##### Features

- handle auto pagination for BigQuery v2
([#&#8203;3829](googleapis/sdk-platform-java#3829))
([025c84c](googleapis/sdk-platform-java@025c84c))

##### Dependencies

- update google auth library dependencies to v1.37.1
([#&#8203;3846](googleapis/sdk-platform-java#3846))
([ea1d9e5](googleapis/sdk-platform-java@ea1d9e5))
- update google http client dependencies to v1.47.1
([#&#8203;3848](googleapis/sdk-platform-java#3848))
([a9a39d7](googleapis/sdk-platform-java@a9a39d7))

</details>

<details>
<summary>square/wire (com.squareup.wire)</summary>

###
[`v5.3.6`](https://github.com/square/wire/blob/HEAD/CHANGELOG.md#Version-536)

[Compare Source](square/wire@5.3.5...5.3.6)

*2025-08-05*

##### CLI

- New CLI option `--ignore_unused_roots_and_prunes`
([#&#8203;3354](square/wire#3354))

##### JVM

- Fix: Handle negative hexadecimal in default values
([#&#8203;3355](square/wire#3355))
- Optimization: Avoid copying of repeated and map types when
mutableTypes are being used
([#&#8203;3352](square/wire#3352) by \[Rahul
Ravikumar]\[tikurahul])

##### Swift

- Fix: Properly disambiguate OneOf enum if it has the same name as
enclosing type
([#&#8203;3350](square/wire#3350) by
\[Dimitris Koutsogiorgas]\[dnkoutso])

</details>

<details>
<summary>datadog/dd-trace-java (com.datadoghq:dd-trace-api)</summary>

###
[`v1.52.0`](https://github.com/DataDog/dd-trace-java/releases/tag/v1.52.0):
1.52.0

### Components

#### Application Security Management (WAF)

- ✨ Only report ASM\_DD, ASM\_DATA and ASM capabilities when
AppSec is enabled
([#&#8203;9260](DataDog/dd-trace-java#9260) -
[@&#8203;manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez))
- 🐛 Fix NPE in AppSecConfigServiceImpl
([#&#8203;9165](DataDog/dd-trace-java#9165) -
[@&#8203;manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez))
- 🐛 Fix AppSec play.mvc.StatusHeader instrumentation for play 2.6
([#&#8203;9160](DataDog/dd-trace-java#9160) -
[@&#8203;manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez))

#### Build & Tooling

- ✨📖 Automatically register crashtracking via native
extensions
([#&#8203;8851](DataDog/dd-trace-java#8851) -
[@&#8203;MattAlp](https://github.com/MattAlp))

#### Configuration at Runtime

- ✨ Create activation origin config for telemetry
([#&#8203;9064](DataDog/dd-trace-java#9064) -
[@&#8203;sezen-datadog](https://github.com/sezen-datadog))

#### Continuous Integration Visibility

- ✨ Update GitLab provided tags
([#&#8203;9275](DataDog/dd-trace-java#9275) -
[@&#8203;daniel-mohedano](https://github.com/daniel-mohedano))
- 🐛 Fix base branch SHA usage in GitHub Actions
([#&#8203;9257](DataDog/dd-trace-java#9257) -
[@&#8203;daniel-mohedano](https://github.com/daniel-mohedano))
- ✨ Add `ci.job.id` tag
([#&#8203;9256](DataDog/dd-trace-java#9256) -
[@&#8203;daniel-mohedano](https://github.com/daniel-mohedano))
- ✨ Add new org to Weaver instrumentation
([#&#8203;9235](DataDog/dd-trace-java#9235) -
[@&#8203;daniel-mohedano](https://github.com/daniel-mohedano) - thanks
for the contribution!)
- ✨ Improve Git commit info building
([#&#8203;9210](DataDog/dd-trace-java#9210) -
[@&#8203;daniel-mohedano](https://github.com/daniel-mohedano))
- ✨ Update Attempt to Fix to v5
([#&#8203;9145](DataDog/dd-trace-java#9145) -
[@&#8203;daniel-mohedano](https://github.com/daniel-mohedano))

#### Crash tracking

- ✨📖 Automatically register crashtracking via native
extensions
([#&#8203;8851](DataDog/dd-trace-java#8851) -
[@&#8203;MattAlp](https://github.com/MattAlp))

#### Data Streams Monitoring

- ✨ Reduce DSM CPU overheard
([#&#8203;9151](DataDog/dd-trace-java#9151) -
[@&#8203;kr-igor](https://github.com/kr-igor))
- ✨⚡ DSM optimizations for high throughput scenarios
([#&#8203;9137](DataDog/dd-trace-java#9137) -
[@&#8203;kr-igor](https://github.com/kr-igor))

#### Database Monitoring

- 🐛 Fix duplicate trace injection for SQL Server and Oracle DBM full
propagation mode
([#&#8203;9224](DataDog/dd-trace-java#9224) -
[@&#8203;lu-zhengda](https://github.com/lu-zhengda))

#### Dynamic Instrumentation

- 🐛 Add URI in string primitives
([#&#8203;9285](DataDog/dd-trace-java#9285) -
[@&#8203;jpbempel](https://github.com/jpbempel))
- ✨ Increase SourceFile tracking max queue size
([#&#8203;9271](DataDog/dd-trace-java#9271) -
[@&#8203;jpbempel](https://github.com/jpbempel))
- ✨ Add capping on SourceFile tracking queue
([#&#8203;9245](DataDog/dd-trace-java#9245) -
[@&#8203;jpbempel](https://github.com/jpbempel))
- ✨ Add third-party filtering in SourceFile tracking
([#&#8203;9205](DataDog/dd-trace-java#9205) -
[@&#8203;jpbempel](https://github.com/jpbempel))

#### ML Observability (LLMObs)

- ✨ Add methods to capture embedding and retrieval spans
([#&#8203;9297](DataDog/dd-trace-java#9297) -
[@&#8203;nayeem-kamal](https://github.com/nayeem-kamal))

#### Metrics

- ✨ Change primary client stats configuration key
([#&#8203;9196](DataDog/dd-trace-java#9196) -
[@&#8203;amarziali](https://github.com/amarziali))
- ✨ Calculate client stats also if the span kind is eligible
([#&#8203;9157](DataDog/dd-trace-java#9157) -
[@&#8203;amarziali](https://github.com/amarziali))
- ✨ Backpropagate peer tags
([#&#8203;9144](DataDog/dd-trace-java#9144) -
[@&#8203;bric3](https://github.com/bric3))
- 🐛 Make client stats reliable in case of downgrade
([#&#8203;9136](DataDog/dd-trace-java#9136) -
[@&#8203;amarziali](https://github.com/amarziali))

#### Platform components

- 🐛 Fix VM options parsing from /proc/fs
([#&#8203;9255](DataDog/dd-trace-java#9255) -
[@&#8203;PerfectSlayer](https://github.com/PerfectSlayer))

#### Profiling

- ✨ Switch profile compression to zstd default
([#&#8203;9293](DataDog/dd-trace-java#9293) -
[@&#8203;jbachorik](https://github.com/jbachorik))

- ✨ Bump ddprof to 1.29.0
([#&#8203;9262](DataDog/dd-trace-java#9262) -
[@&#8203;zhengyu123](https://github.com/zhengyu123))
- Potential memory leak and race with the JVMTI wallclock sampler by
[@&#8203;zhengyu123](https://github.com/zhengyu123) in
DataDog/java-profiler#234
- Downport async-profiler no-allocation changes by
[@&#8203;zhengyu123](https://github.com/zhengyu123) in
DataDog/java-profiler#245
- Adopt openjdk safefetch by
[@&#8203;zhengyu123](https://github.com/zhengyu123) in
DataDog/java-profiler#246
- Safe fetch 64-bit value and pointer by
[@&#8203;zhengyu123](https://github.com/zhengyu123) in
DataDog/java-profiler#247
- Rebase on Async-Profiler 4.1 by
[@&#8203;jbachorik](https://github.com/jbachorik) in
DataDog/java-profiler#252
- Patch upstream stackWalker.cpp not to fail on unaligned access by
[@&#8203;jbachorik](https://github.com/jbachorik) in
DataDog/java-profiler#218
- Remap thread id to avoid bitmap contention by
[@&#8203;zhengyu123](https://github.com/zhengyu123) in
DataDog/java-profiler#229
- Improve performance using Unsafe to activate/deactivate thread filter
by [@&#8203;zhengyu123](https://github.com/zhengyu123) in
DataDog/java-profiler#230
- Unify context propagation by
[@&#8203;zhengyu123](https://github.com/zhengyu123) in
DataDog/java-profiler#231

- 🐛 Fix the profiler stackdepth setting propagation in recent (22+)
Java versions
([#&#8203;9130](DataDog/dd-trace-java#9130) -
[@&#8203;jbachorik](https://github.com/jbachorik))

#### Realtime User Monitoring

- ✨ Wrap servlet original PrintWriter on rum injector
([#&#8203;9146](DataDog/dd-trace-java#9146) -
[@&#8203;amarziali](https://github.com/amarziali))

#### Telemetry

- ✨ Create activation origin config for telemetry
([#&#8203;9064](DataDog/dd-trace-java#9064) -
[@&#8203;sezen-datadog](https://github.com/sezen-datadog))

#### Tracer core

- ✨⚡ Reduce span construction overhead by switching to
optimized TagMap
([#&#8203;8589](DataDog/dd-trace-java#8589) -
[@&#8203;dougqh](https://github.com/dougqh))
- 🐛 Match Hands Off Config selectors on process\_arguments value
([#&#8203;9201](DataDog/dd-trace-java#9201) -
[@&#8203;paullegranddc](https://github.com/paullegranddc))
- ✨ Move JSON generation to sender thread to improve startup
time.
([#&#8203;9197](DataDog/dd-trace-java#9197) -
[@&#8203;AlexeyKuznetsov-DD](https://github.com/AlexeyKuznetsov-DD))
- ✨ Improve agent to avoid loading global config on main thread
([#&#8203;9190](DataDog/dd-trace-java#9190) -
[@&#8203;PerfectSlayer](https://github.com/PerfectSlayer))
- ✨ add injection metadata fields to telemetry forwarder
([#&#8203;9185](DataDog/dd-trace-java#9185) -
[@&#8203;sydney-tung](https://github.com/sydney-tung))
- 🐛 Avoid race conditions on feature discovery during Writer
creation
([#&#8203;9173](DataDog/dd-trace-java#9173) -
[@&#8203;daniel-mohedano](https://github.com/daniel-mohedano))
- ✨ Surface potential root cause when agent initialization
errors
([#&#8203;9170](DataDog/dd-trace-java#9170) -
[@&#8203;AlexeyKuznetsov-DD](https://github.com/AlexeyKuznetsov-DD))
- 💡 Support adding W3C baggage as span tags
([#&#8203;9169](DataDog/dd-trace-java#9169) -
[@&#8203;rachelyangdog](https://github.com/rachelyangdog))
- ✨⚡ Align our default classloader excludes with OTel
([#&#8203;9161](DataDog/dd-trace-java#9161) -
[@&#8203;mcculls](https://github.com/mcculls))
- ✨ Backpropagate container tags hash coming from the info
endpoint
([#&#8203;9156](DataDog/dd-trace-java#9156) -
[@&#8203;amarziali](https://github.com/amarziali))
- 🐛 Avoid race conditions and multiple agent discovery feature
states
([#&#8203;9135](DataDog/dd-trace-java#9135) -
[@&#8203;amarziali](https://github.com/amarziali))

### Instrumentations

#### AWS SDK instrumentation

- ✨ Enhance Service Representation for Serverless
([#&#8203;9203](DataDog/dd-trace-java#9203) -
[@&#8203;zarirhamza](https://github.com/zarirhamza))

#### gRPC instrumentation

- 🐛 Add check to prevent injection of repeated GRPC headers
([#&#8203;9246](DataDog/dd-trace-java#9246) -
[@&#8203;mhlidd](https://github.com/mhlidd))

#### JDBC instrumentation

- 🐛 Fix duplicate trace injection for SQL Server and Oracle DBM full
propagation mode
([#&#8203;9224](DataDog/dd-trace-java#9224) -
[@&#8203;lu-zhengda](https://github.com/lu-zhengda))

#### Play Framework instrumentation

- 🐛 Fix AppSec play.mvc.StatusHeader instrumentation for play 2.6
([#&#8203;9160](DataDog/dd-trace-java#9160) -
[@&#8203;manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 6pm every weekday,before 2am
every weekday" in timezone Australia/Melbourne, Automerge - At any time
(no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

GitOrigin-RevId: 9da36329ffa552291a640381780b608ef6513e29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: data streams Data Streams Monitoring tag: performance Performance related changes type: enhancement Enhancements and improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants