Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for sending OOME events #7253

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Add support for sending OOME events #7253

merged 1 commit into from
Jul 1, 2024

Conversation

jbachorik
Copy link
Contributor

@jbachorik jbachorik commented Jun 28, 2024

What Does This Do

It adds the ability to configure OOME reporting via OnOutOfMemoryError JVM arg script.
The script is auto-generated in the same way as the crash tracking script is.

The OOME is captured and forwarded as a Statsd event.

Motivation

Provide more data for the planned memory leak page for Java

Additional Notes

While adding the second script some issues were identified also in the crash tracking script - eg. when there are many JVM processes running on the same host and they are all crashing we might not report all of the crashes. This was fixed and the common code was refactored.

Jira ticket: PROF-10025

@jbachorik jbachorik requested review from a team as code owners June 28, 2024 10:06
@jbachorik jbachorik requested review from dougqh and ygree June 28, 2024 10:06
@jbachorik jbachorik changed the title Add support for sending OOME events PROF-10025: Add support for sending OOME events Jun 28, 2024
@jbachorik jbachorik marked this pull request as draft June 28, 2024 12:59
@jbachorik jbachorik force-pushed the jb/oome_notifier branch 2 times, most recently from 5773294 to 6a15242 Compare June 28, 2024 13:44
@pr-commenter
Copy link

pr-commenter bot commented Jun 28, 2024

Benchmarks

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master jb/oome_notifier
git_commit_date 1719840983 1719843028
git_commit_sha ffe2b6b 838fd83
release_version 1.37.0-SNAPSHOT~ffe2b6b64d 1.36.0-SNAPSHOT~838fd83bff
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1719846121 1719846121
ci_job_id 558183111 558183111
ci_pipeline_id 37990660 37990660
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
module Agent Agent
parent None None
variant iast iast

Summary

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

scenario Δ mean execution_time candidate mean execution_time baseline mean execution_time
scenario:startup:petclinic:profiling:Remote Config worse
[+59.334µs; +102.340µs] or [+8.971%; +15.474%]
742.211µs 661.374µs
Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.36.0-SNAPSHOT~838fd83bff, baseline=1.37.0-SNAPSHOT~ffe2b6b64d

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.074 s) : 0, 1074358
Total [baseline] (8.572 s) : 0, 8572193
Agent [candidate] (1.062 s) : 0, 1062361
Total [candidate] (8.554 s) : 0, 8554317
section iast
Agent [baseline] (1.182 s) : 0, 1182307
Total [baseline] (9.033 s) : 0, 9033476
Agent [candidate] (1.169 s) : 0, 1169161
Total [candidate] (8.993 s) : 0, 8992622
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.182 s) : 0, 1181900
Total [baseline] (8.972 s) : 0, 8971519
Agent [candidate] (1.178 s) : 0, 1178314
Total [candidate] (8.985 s) : 0, 8984813
section iast_TELEMETRY_OFF
Agent [baseline] (1.187 s) : 0, 1187254
Total [baseline] (9.075 s) : 0, 9074521
Agent [candidate] (1.174 s) : 0, 1174445
Total [candidate] (9.042 s) : 0, 9041535
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.074 s -
Agent iast 1.182 s 107.949 ms (10.0%)
Agent iast_HARDCODED_SECRET_DISABLED 1.182 s 107.542 ms (10.0%)
Agent iast_TELEMETRY_OFF 1.187 s 112.896 ms (10.5%)
Total tracing 8.572 s -
Total iast 9.033 s 461.282 ms (5.4%)
Total iast_HARDCODED_SECRET_DISABLED 8.972 s 399.326 ms (4.7%)
Total iast_TELEMETRY_OFF 9.075 s 502.328 ms (5.9%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.062 s -
Agent iast 1.169 s 106.8 ms (10.1%)
Agent iast_HARDCODED_SECRET_DISABLED 1.178 s 115.953 ms (10.9%)
Agent iast_TELEMETRY_OFF 1.174 s 112.084 ms (10.6%)
Total tracing 8.554 s -
Total iast 8.993 s 438.305 ms (5.1%)
Total iast_HARDCODED_SECRET_DISABLED 8.985 s 430.496 ms (5.0%)
Total iast_TELEMETRY_OFF 9.042 s 487.218 ms (5.7%)
gantt
    title insecure-bank - break down per module: candidate=1.36.0-SNAPSHOT~838fd83bff, baseline=1.37.0-SNAPSHOT~ffe2b6b64d

    dateFormat X
    axisFormat %s
section tracing
BytebuddyAgent [baseline] (673.241 ms) : 0, 673241
BytebuddyAgent [candidate] (665.891 ms) : 0, 665891
GlobalTracer [baseline] (307.12 ms) : 0, 307120
GlobalTracer [candidate] (303.515 ms) : 0, 303515
AppSec [baseline] (50.67 ms) : 0, 50670
AppSec [candidate] (50.221 ms) : 0, 50221
Remote Config [baseline] (738.01 µs) : 0, 738
Remote Config [candidate] (692.362 µs) : 0, 692
Telemetry [baseline] (7.752 ms) : 0, 7752
Telemetry [candidate] (7.627 ms) : 0, 7627
section iast
BytebuddyAgent [baseline] (787.903 ms) : 0, 787903
BytebuddyAgent [candidate] (779.871 ms) : 0, 779871
GlobalTracer [baseline] (297.236 ms) : 0, 297236
GlobalTracer [candidate] (293.43 ms) : 0, 293430
AppSec [baseline] (47.706 ms) : 0, 47706
AppSec [candidate] (46.925 ms) : 0, 46925
Remote Config [baseline] (595.591 µs) : 0, 596
Remote Config [candidate] (635.074 µs) : 0, 635
Telemetry [baseline] (7.806 ms) : 0, 7806
Telemetry [candidate] (6.981 ms) : 0, 6981
IAST [baseline] (27.538 ms) : 0, 27538
IAST [candidate] (27.998 ms) : 0, 27998
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (787.974 ms) : 0, 787974
BytebuddyAgent [candidate] (785.959 ms) : 0, 785959
GlobalTracer [baseline] (297.682 ms) : 0, 297682
GlobalTracer [candidate] (295.963 ms) : 0, 295963
AppSec [baseline] (47.685 ms) : 0, 47685
AppSec [candidate] (47.832 ms) : 0, 47832
Remote Config [baseline] (618.232 µs) : 0, 618
Remote Config [candidate] (650.355 µs) : 0, 650
Telemetry [baseline] (7.069 ms) : 0, 7069
Telemetry [candidate] (7.849 ms) : 0, 7849
IAST [baseline] (27.331 ms) : 0, 27331
IAST [candidate] (26.606 ms) : 0, 26606
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (791.267 ms) : 0, 791267
BytebuddyAgent [candidate] (783.596 ms) : 0, 783596
GlobalTracer [baseline] (298.899 ms) : 0, 298899
GlobalTracer [candidate] (295.296 ms) : 0, 295296
AppSec [baseline] (47.603 ms) : 0, 47603
AppSec [candidate] (47.564 ms) : 0, 47564
Remote Config [baseline] (636.65 µs) : 0, 637
Remote Config [candidate] (607.647 µs) : 0, 608
Telemetry [baseline] (6.978 ms) : 0, 6978
Telemetry [candidate] (6.909 ms) : 0, 6909
IAST [baseline] (28.263 ms) : 0, 28263
IAST [candidate] (27.047 ms) : 0, 27047
Loading
Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.36.0-SNAPSHOT~838fd83bff, baseline=1.37.0-SNAPSHOT~ffe2b6b64d

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.066 s) : 0, 1065810
Total [baseline] (10.349 s) : 0, 10348945
Agent [candidate] (1.072 s) : 0, 1072435
Total [candidate] (10.338 s) : 0, 10338158
section appsec
Agent [baseline] (1.186 s) : 0, 1185526
Total [baseline] (10.479 s) : 0, 10479290
Agent [candidate] (1.182 s) : 0, 1182194
Total [candidate] (10.514 s) : 0, 10514242
section iast
Agent [baseline] (1.183 s) : 0, 1182779
Total [baseline] (10.757 s) : 0, 10756737
Agent [candidate] (1.171 s) : 0, 1170991
Total [candidate] (10.819 s) : 0, 10819213
section profiling
Agent [baseline] (1.269 s) : 0, 1268510
Total [baseline] (10.667 s) : 0, 10667327
Agent [candidate] (1.262 s) : 0, 1262274
Total [candidate] (10.62 s) : 0, 10619799
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.066 s -
Agent appsec 1.186 s 119.716 ms (11.2%)
Agent iast 1.183 s 116.968 ms (11.0%)
Agent profiling 1.269 s 202.7 ms (19.0%)
Total tracing 10.349 s -
Total appsec 10.479 s 130.345 ms (1.3%)
Total iast 10.757 s 407.792 ms (3.9%)
Total profiling 10.667 s 318.382 ms (3.1%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.072 s -
Agent appsec 1.182 s 109.759 ms (10.2%)
Agent iast 1.171 s 98.556 ms (9.2%)
Agent profiling 1.262 s 189.839 ms (17.7%)
Total tracing 10.338 s -
Total appsec 10.514 s 176.084 ms (1.7%)
Total iast 10.819 s 481.056 ms (4.7%)
Total profiling 10.62 s 281.642 ms (2.7%)
gantt
    title petclinic - break down per module: candidate=1.36.0-SNAPSHOT~838fd83bff, baseline=1.37.0-SNAPSHOT~ffe2b6b64d

    dateFormat X
    axisFormat %s
section tracing
BytebuddyAgent [baseline] (667.273 ms) : 0, 667273
BytebuddyAgent [candidate] (672.779 ms) : 0, 672779
GlobalTracer [baseline] (305.151 ms) : 0, 305151
GlobalTracer [candidate] (305.948 ms) : 0, 305948
AppSec [baseline] (50.431 ms) : 0, 50431
AppSec [candidate] (50.611 ms) : 0, 50611
Remote Config [baseline] (750.105 µs) : 0, 750
Remote Config [candidate] (686.673 µs) : 0, 687
Telemetry [baseline] (7.654 ms) : 0, 7654
Telemetry [candidate] (7.595 ms) : 0, 7595
section appsec
BytebuddyAgent [baseline] (677.791 ms) : 0, 677791
BytebuddyAgent [candidate] (676.77 ms) : 0, 676770
GlobalTracer [baseline] (298.88 ms) : 0, 298880
GlobalTracer [candidate] (297.561 ms) : 0, 297561
AppSec [baseline] (154.037 ms) : 0, 154037
AppSec [candidate] (154.005 ms) : 0, 154005
Remote Config [baseline] (634.14 µs) : 0, 634
Remote Config [candidate] (645.509 µs) : 0, 646
Telemetry [baseline] (8.663 ms) : 0, 8663
Telemetry [candidate] (7.792 ms) : 0, 7792
IAST [baseline] (21.728 ms) : 0, 21728
IAST [candidate] (21.755 ms) : 0, 21755
section iast
BytebuddyAgent [baseline] (789.204 ms) : 0, 789204
BytebuddyAgent [candidate] (780.082 ms) : 0, 780082
GlobalTracer [baseline] (297.114 ms) : 0, 297114
GlobalTracer [candidate] (293.788 ms) : 0, 293788
AppSec [baseline] (47.816 ms) : 0, 47816
AppSec [candidate] (47.131 ms) : 0, 47131
Remote Config [baseline] (580.641 µs) : 0, 581
Remote Config [candidate] (621.879 µs) : 0, 622
Telemetry [baseline] (7.024 ms) : 0, 7024
Telemetry [candidate] (8.545 ms) : 0, 8545
IAST [baseline] (27.491 ms) : 0, 27491
IAST [candidate] (27.497 ms) : 0, 27497
section profiling
BytebuddyAgent [baseline] (665.725 ms) : 0, 665725
BytebuddyAgent [candidate] (663.446 ms) : 0, 663446
GlobalTracer [baseline] (389.492 ms) : 0, 389492
GlobalTracer [candidate] (386.492 ms) : 0, 386492
AppSec [baseline] (52.08 ms) : 0, 52080
AppSec [candidate] (51.35 ms) : 0, 51350
Remote Config [baseline] (661.374 µs) : 0, 661
Remote Config [candidate] (742.211 µs) : 0, 742
Telemetry [baseline] (7.472 ms) : 0, 7472
Telemetry [candidate] (7.389 ms) : 0, 7389
ProfilingAgent [baseline] (95.826 ms) : 0, 95826
ProfilingAgent [candidate] (95.79 ms) : 0, 95790
Profiling [baseline] (95.851 ms) : 0, 95851
Profiling [candidate] (95.815 ms) : 0, 95815
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
end_time 2024-07-01T14:32:45 2024-07-01T14:39:34
git_branch master jb/oome_notifier
git_commit_date 1719840983 1719843028
git_commit_sha ffe2b6b 838fd83
release_version 1.37.0-SNAPSHOT~ffe2b6b64d 1.36.0-SNAPSHOT~838fd83bff
start_time 2024-07-01T14:32:32 2024-07-01T14:39:21
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1719845118 1719845118
ci_job_id 558183112 558183112
ci_pipeline_id 37990660 37990660
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
variant iast iast

Summary

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

Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.36.0-SNAPSHOT~838fd83bff, baseline=1.37.0-SNAPSHOT~ffe2b6b64d
    dateFormat X
    axisFormat %s
section baseline
no_agent (365.431 µs) : 345, 386
.   : milestone, 365,
iast (479.781 µs) : 459, 501
.   : milestone, 480,
iast_FULL (547.824 µs) : 527, 569
.   : milestone, 548,
iast_GLOBAL (506.587 µs) : 485, 528
.   : milestone, 507,
iast_HARDCODED_SECRET_DISABLED (484.691 µs) : 463, 506
.   : milestone, 485,
iast_INACTIVE (459.159 µs) : 438, 481
.   : milestone, 459,
iast_TELEMETRY_OFF (467.226 µs) : 446, 489
.   : milestone, 467,
tracing (436.626 µs) : 417, 457
.   : milestone, 437,
section candidate
no_agent (372.889 µs) : 353, 392
.   : milestone, 373,
iast (484.26 µs) : 463, 506
.   : milestone, 484,
iast_FULL (551.934 µs) : 531, 573
.   : milestone, 552,
iast_GLOBAL (504.637 µs) : 484, 526
.   : milestone, 505,
iast_HARDCODED_SECRET_DISABLED (484.293 µs) : 463, 505
.   : milestone, 484,
iast_INACTIVE (452.621 µs) : 432, 474
.   : milestone, 453,
iast_TELEMETRY_OFF (471.456 µs) : 450, 493
.   : milestone, 471,
tracing (448.279 µs) : 427, 470
.   : milestone, 448,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 365.431 µs [344.858 µs, 386.004 µs] -
iast 479.781 µs [458.513 µs, 501.049 µs] 114.35 µs (31.3%)
iast_FULL 547.824 µs [526.805 µs, 568.844 µs] 182.393 µs (49.9%)
iast_GLOBAL 506.587 µs [485.231 µs, 527.944 µs] 141.156 µs (38.6%)
iast_HARDCODED_SECRET_DISABLED 484.691 µs [463.399 µs, 505.984 µs] 119.26 µs (32.6%)
iast_INACTIVE 459.159 µs [437.659 µs, 480.659 µs] 93.728 µs (25.6%)
iast_TELEMETRY_OFF 467.226 µs [445.636 µs, 488.816 µs] 101.794 µs (27.9%)
tracing 436.626 µs [416.641 µs, 456.61 µs] 71.194 µs (19.5%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 372.889 µs [353.386 µs, 392.392 µs] -
iast 484.26 µs [462.833 µs, 505.687 µs] 111.371 µs (29.9%)
iast_FULL 551.934 µs [530.785 µs, 573.083 µs] 179.045 µs (48.0%)
iast_GLOBAL 504.637 µs [483.517 µs, 525.757 µs] 131.748 µs (35.3%)
iast_HARDCODED_SECRET_DISABLED 484.293 µs [463.228 µs, 505.358 µs] 111.404 µs (29.9%)
iast_INACTIVE 452.621 µs [431.696 µs, 473.547 µs] 79.732 µs (21.4%)
iast_TELEMETRY_OFF 471.456 µs [450.102 µs, 492.81 µs] 98.567 µs (26.4%)
tracing 448.279 µs [426.719 µs, 469.839 µs] 75.39 µs (20.2%)
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.36.0-SNAPSHOT~838fd83bff, baseline=1.37.0-SNAPSHOT~ffe2b6b64d
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.339 ms) : 1320, 1359
.   : milestone, 1339,
appsec (1.744 ms) : 1721, 1767
.   : milestone, 1744,
appsec_no_iast (1.734 ms) : 1710, 1758
.   : milestone, 1734,
iast (1.472 ms) : 1450, 1494
.   : milestone, 1472,
profiling (1.499 ms) : 1475, 1522
.   : milestone, 1499,
tracing (1.468 ms) : 1444, 1491
.   : milestone, 1468,
section candidate
no_agent (1.347 ms) : 1328, 1367
.   : milestone, 1347,
appsec (1.713 ms) : 1688, 1738
.   : milestone, 1713,
appsec_no_iast (1.711 ms) : 1686, 1736
.   : milestone, 1711,
iast (1.472 ms) : 1449, 1495
.   : milestone, 1472,
profiling (1.472 ms) : 1447, 1497
.   : milestone, 1472,
tracing (1.467 ms) : 1443, 1491
.   : milestone, 1467,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.339 ms [1.32 ms, 1.359 ms] -
appsec 1.744 ms [1.721 ms, 1.767 ms] 404.592 µs (30.2%)
appsec_no_iast 1.734 ms [1.71 ms, 1.758 ms] 394.805 µs (29.5%)
iast 1.472 ms [1.45 ms, 1.494 ms] 132.751 µs (9.9%)
profiling 1.499 ms [1.475 ms, 1.522 ms] 159.517 µs (11.9%)
tracing 1.468 ms [1.444 ms, 1.491 ms] 128.252 µs (9.6%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.347 ms [1.328 ms, 1.367 ms] -
appsec 1.713 ms [1.688 ms, 1.738 ms] 365.908 µs (27.2%)
appsec_no_iast 1.711 ms [1.686 ms, 1.736 ms] 363.707 µs (27.0%)
iast 1.472 ms [1.449 ms, 1.495 ms] 124.733 µs (9.3%)
profiling 1.472 ms [1.447 ms, 1.497 ms] 124.903 µs (9.3%)
tracing 1.467 ms [1.443 ms, 1.491 ms] 119.67 µs (8.9%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master jb/oome_notifier
git_commit_date 1719840983 1719843028
git_commit_sha ffe2b6b 838fd83
release_version 1.37.0-SNAPSHOT~ffe2b6b64d 1.36.0-SNAPSHOT~838fd83bff
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1719845633 1719845633
ci_job_id 558183113 558183113
ci_pipeline_id 37990660 37990660
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
variant appsec appsec

Summary

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

Execution time for tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.36.0-SNAPSHOT~838fd83bff, baseline=1.37.0-SNAPSHOT~ffe2b6b64d
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.461 ms) : 1449, 1472
.   : milestone, 1461,
appsec (2.213 ms) : 2177, 2249
.   : milestone, 2213,
iast (1.973 ms) : 1930, 2016
.   : milestone, 1973,
iast_GLOBAL (2.017 ms) : 1973, 2061
.   : milestone, 2017,
profiling (1.865 ms) : 1829, 1901
.   : milestone, 1865,
tracing (1.848 ms) : 1814, 1883
.   : milestone, 1848,
section candidate
no_agent (1.455 ms) : 1444, 1467
.   : milestone, 1455,
appsec (2.189 ms) : 2155, 2223
.   : milestone, 2189,
iast (1.963 ms) : 1921, 2005
.   : milestone, 1963,
iast_GLOBAL (1.988 ms) : 1947, 2028
.   : milestone, 1988,
profiling (2.308 ms) : 2132, 2484
.   : milestone, 2308,
tracing (1.819 ms) : 1788, 1851
.   : milestone, 1819,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.461 ms [1.449 ms, 1.472 ms] -
appsec 2.213 ms [2.177 ms, 2.249 ms] 752.262 µs (51.5%)
iast 1.973 ms [1.93 ms, 2.016 ms] 512.486 µs (35.1%)
iast_GLOBAL 2.017 ms [1.973 ms, 2.061 ms] 556.103 µs (38.1%)
profiling 1.865 ms [1.829 ms, 1.901 ms] 404.302 µs (27.7%)
tracing 1.848 ms [1.814 ms, 1.883 ms] 387.929 µs (26.6%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.455 ms [1.444 ms, 1.467 ms] -
appsec 2.189 ms [2.155 ms, 2.223 ms] 733.698 µs (50.4%)
iast 1.963 ms [1.921 ms, 2.005 ms] 508.116 µs (34.9%)
iast_GLOBAL 1.988 ms [1.947 ms, 2.028 ms] 532.475 µs (36.6%)
profiling 2.308 ms [2.132 ms, 2.484 ms] 852.353 µs (58.6%)
tracing 1.819 ms [1.788 ms, 1.851 ms] 364.276 µs (25.0%)
Execution time for biojava
gantt
    title biojava - execution time [CI 0.99] : candidate=1.36.0-SNAPSHOT~838fd83bff, baseline=1.37.0-SNAPSHOT~ffe2b6b64d
    dateFormat X
    axisFormat %s
section baseline
no_agent (15.0 s) : 15000000, 15000000
.   : milestone, 15000000,
appsec (15.062 s) : 15062000, 15062000
.   : milestone, 15062000,
iast (18.856 s) : 18856000, 18856000
.   : milestone, 18856000,
iast_GLOBAL (17.88 s) : 17880000, 17880000
.   : milestone, 17880000,
profiling (15.59 s) : 15590000, 15590000
.   : milestone, 15590000,
tracing (14.874 s) : 14874000, 14874000
.   : milestone, 14874000,
section candidate
no_agent (15.461 s) : 15461000, 15461000
.   : milestone, 15461000,
appsec (15.081 s) : 15081000, 15081000
.   : milestone, 15081000,
iast (18.843 s) : 18843000, 18843000
.   : milestone, 18843000,
iast_GLOBAL (17.911 s) : 17911000, 17911000
.   : milestone, 17911000,
profiling (15.093 s) : 15093000, 15093000
.   : milestone, 15093000,
tracing (15.059 s) : 15059000, 15059000
.   : milestone, 15059000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.0 s [15.0 s, 15.0 s] -
appsec 15.062 s [15.062 s, 15.062 s] 62.0 ms (0.4%)
iast 18.856 s [18.856 s, 18.856 s] 3.856 s (25.7%)
iast_GLOBAL 17.88 s [17.88 s, 17.88 s] 2.88 s (19.2%)
profiling 15.59 s [15.59 s, 15.59 s] 590.0 ms (3.9%)
tracing 14.874 s [14.874 s, 14.874 s] -126.0 ms (-0.8%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.461 s [15.461 s, 15.461 s] -
appsec 15.081 s [15.081 s, 15.081 s] -380.0 ms (-2.5%)
iast 18.843 s [18.843 s, 18.843 s] 3.382 s (21.9%)
iast_GLOBAL 17.911 s [17.911 s, 17.911 s] 2.45 s (15.8%)
profiling 15.093 s [15.093 s, 15.093 s] -368.0 ms (-2.4%)
tracing 15.059 s [15.059 s, 15.059 s] -402.0 ms (-2.6%)

@jbachorik jbachorik marked this pull request as ready for review July 1, 2024 09:47
@jbachorik jbachorik force-pushed the jb/oome_notifier branch 3 times, most recently from ac6f724 to cfa6d4e Compare July 1, 2024 13:04
@jbachorik jbachorik merged commit cdecb42 into master Jul 1, 2024
82 checks passed
@jbachorik jbachorik deleted the jb/oome_notifier branch July 1, 2024 15:07
@jbachorik jbachorik added this to the 1.37.0 milestone Jul 1, 2024
@@ -91,6 +91,7 @@ public CrashUploader() {

ConfigProvider configProvider = config.configProvider();

System.out.println("===> telemetryUrl: " + telemetryUrl);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it a leftover?

Comment on lines +100 to +113
public void recordEvent(
String type, String source, String eventName, String message, String... tags) {
Event.AlertType alertType = Event.AlertType.valueOf(type.toUpperCase());
log.debug(
"Recording event: {} - {} - {} - {} [{}]", alertType, source, eventName, message, tags);
Event.Builder eventBuilder =
Event.builder()
.withTitle(eventName)
.withText(message)
.withSourceTypeName(source)
.withDate(System.currentTimeMillis())
.withAlertType(alertType);
connection.statsd.recordEvent(eventBuilder.build(), tagMapping.apply(tags));
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this new method be part of the StatsD client API?
I would rather not expose the :communication implementation and revert it back to package private.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, this method should really have been added to StatsDClient interface in the internal-api so you didn't then need to expose and cast to the implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See #7267

@PerfectSlayer PerfectSlayer changed the title PROF-10025: Add support for sending OOME events Add support for sending OOME events Jul 2, 2024
@PerfectSlayer PerfectSlayer added the comp: profiling Profiling label Jul 2, 2024
@SuppressForbidden
public static void sendOomeEvent(String taglist) {
try (DDAgentStatsDClient client =
(DDAgentStatsDClient)
Copy link
Contributor

Choose a reason for hiding this comment

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

We should be using the interface rather than the implementation here

@jbachorik jbachorik added the comp: crash tracking Crash tracking label Jul 3, 2024
@jivanic-demystdata
Copy link

How do we enable this new capability?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants