-
Notifications
You must be signed in to change notification settings - Fork 292
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
paranoid exception handling when setting profiling thread context #7903
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jbachorik
approved these changes
Nov 7, 2024
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 54 metrics, 9 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.43.0-SNAPSHOT~00e4e5a408, baseline=1.43.0-SNAPSHOT~8e1ab2bcd8
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.081 s) : 0, 1081446
Total [baseline] (8.568 s) : 0, 8568243
Agent [candidate] (1.08 s) : 0, 1079996
Total [candidate] (8.567 s) : 0, 8566956
section iast
Agent [baseline] (1.203 s) : 0, 1202518
Total [baseline] (9.127 s) : 0, 9126826
Agent [candidate] (1.206 s) : 0, 1205606
Total [candidate] (9.155 s) : 0, 9155076
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.206 s) : 0, 1205525
Total [baseline] (9.142 s) : 0, 9141803
Agent [candidate] (1.207 s) : 0, 1207458
Total [candidate] (9.131 s) : 0, 9131225
section iast_TELEMETRY_OFF
Agent [baseline] (1.203 s) : 0, 1202810
Total [baseline] (9.147 s) : 0, 9146946
Agent [candidate] (1.205 s) : 0, 1204632
Total [candidate] (9.153 s) : 0, 9153480
gantt
title insecure-bank - break down per module: candidate=1.43.0-SNAPSHOT~00e4e5a408, baseline=1.43.0-SNAPSHOT~8e1ab2bcd8
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (686.148 ms) : 0, 686148
BytebuddyAgent [candidate] (686.768 ms) : 0, 686768
GlobalTracer [baseline] (315.627 ms) : 0, 315627
GlobalTracer [candidate] (315.111 ms) : 0, 315111
AppSec [baseline] (54.213 ms) : 0, 54213
AppSec [candidate] (54.027 ms) : 0, 54027
Remote Config [baseline] (671.853 µs) : 0, 672
Remote Config [candidate] (669.115 µs) : 0, 669
Telemetry [baseline] (11.176 ms) : 0, 11176
Telemetry [candidate] (9.762 ms) : 0, 9762
section iast
BytebuddyAgent [baseline] (799.302 ms) : 0, 799302
BytebuddyAgent [candidate] (801.372 ms) : 0, 801372
GlobalTracer [baseline] (304.208 ms) : 0, 304208
GlobalTracer [candidate] (304.499 ms) : 0, 304499
AppSec [baseline] (56.325 ms) : 0, 56325
AppSec [candidate] (57.424 ms) : 0, 57424
Remote Config [baseline] (599.309 µs) : 0, 599
Remote Config [candidate] (614.763 µs) : 0, 615
Telemetry [baseline] (7.386 ms) : 0, 7386
Telemetry [candidate] (7.523 ms) : 0, 7523
IAST [baseline] (21.082 ms) : 0, 21082
IAST [candidate] (20.492 ms) : 0, 20492
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (801.076 ms) : 0, 801076
BytebuddyAgent [candidate] (801.951 ms) : 0, 801951
GlobalTracer [baseline] (304.862 ms) : 0, 304862
GlobalTracer [candidate] (305.457 ms) : 0, 305457
AppSec [baseline] (56.548 ms) : 0, 56548
AppSec [candidate] (57.337 ms) : 0, 57337
Remote Config [baseline] (609.08 µs) : 0, 609
Remote Config [candidate] (641.397 µs) : 0, 641
Telemetry [baseline] (7.468 ms) : 0, 7468
Telemetry [candidate] (7.591 ms) : 0, 7591
IAST [baseline] (21.305 ms) : 0, 21305
IAST [candidate] (20.778 ms) : 0, 20778
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (798.51 ms) : 0, 798510
BytebuddyAgent [candidate] (799.56 ms) : 0, 799560
GlobalTracer [baseline] (304.672 ms) : 0, 304672
GlobalTracer [candidate] (305.031 ms) : 0, 305031
AppSec [baseline] (57.69 ms) : 0, 57690
AppSec [candidate] (57.17 ms) : 0, 57170
Remote Config [baseline] (607.472 µs) : 0, 607
Remote Config [candidate] (606.644 µs) : 0, 607
Telemetry [baseline] (7.481 ms) : 0, 7481
Telemetry [candidate] (8.181 ms) : 0, 8181
IAST [baseline] (20.192 ms) : 0, 20192
IAST [candidate] (20.405 ms) : 0, 20405
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.43.0-SNAPSHOT~00e4e5a408, baseline=1.43.0-SNAPSHOT~8e1ab2bcd8
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.082 s) : 0, 1082049
Total [baseline] (10.359 s) : 0, 10359286
Agent [candidate] (1.08 s) : 0, 1080053
Total [candidate] (10.397 s) : 0, 10396651
section appsec
Agent [baseline] (1.217 s) : 0, 1217337
Total [baseline] (10.667 s) : 0, 10666975
Agent [candidate] (1.214 s) : 0, 1213614
Total [candidate] (10.64 s) : 0, 10639788
section iast
Agent [baseline] (1.209 s) : 0, 1208799
Total [baseline] (10.924 s) : 0, 10924133
Agent [candidate] (1.205 s) : 0, 1205434
Total [candidate] (10.932 s) : 0, 10931825
section profiling
Agent [baseline] (1.285 s) : 0, 1285405
Total [baseline] (10.797 s) : 0, 10797283
Agent [candidate] (1.28 s) : 0, 1280010
Total [candidate] (10.693 s) : 0, 10692811
gantt
title petclinic - break down per module: candidate=1.43.0-SNAPSHOT~00e4e5a408, baseline=1.43.0-SNAPSHOT~8e1ab2bcd8
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (686.503 ms) : 0, 686503
BytebuddyAgent [candidate] (686.065 ms) : 0, 686065
GlobalTracer [baseline] (316.023 ms) : 0, 316023
GlobalTracer [candidate] (316.355 ms) : 0, 316355
AppSec [baseline] (53.936 ms) : 0, 53936
AppSec [candidate] (54.257 ms) : 0, 54257
Remote Config [baseline] (675.04 µs) : 0, 675
Remote Config [candidate] (670.544 µs) : 0, 671
Telemetry [baseline] (11.27 ms) : 0, 11270
Telemetry [candidate] (9.044 ms) : 0, 9044
section appsec
BytebuddyAgent [baseline] (705.739 ms) : 0, 705739
BytebuddyAgent [candidate] (703.04 ms) : 0, 703040
GlobalTracer [baseline] (313.719 ms) : 0, 313719
GlobalTracer [candidate] (313.47 ms) : 0, 313470
AppSec [baseline] (166.124 ms) : 0, 166124
AppSec [candidate] (165.436 ms) : 0, 165436
Remote Config [baseline] (637.411 µs) : 0, 637
Remote Config [candidate] (636.324 µs) : 0, 636
Telemetry [baseline] (7.397 ms) : 0, 7397
Telemetry [candidate] (7.39 ms) : 0, 7390
IAST [baseline] (20.128 ms) : 0, 20128
IAST [candidate] (20.025 ms) : 0, 20025
section iast
BytebuddyAgent [baseline] (804.245 ms) : 0, 804245
BytebuddyAgent [candidate] (800.957 ms) : 0, 800957
GlobalTracer [baseline] (305.068 ms) : 0, 305068
GlobalTracer [candidate] (304.774 ms) : 0, 304774
AppSec [baseline] (56.53 ms) : 0, 56530
AppSec [candidate] (55.686 ms) : 0, 55686
Remote Config [baseline] (611.048 µs) : 0, 611
Remote Config [candidate] (620.999 µs) : 0, 621
Telemetry [baseline] (7.347 ms) : 0, 7347
Telemetry [candidate] (7.397 ms) : 0, 7397
IAST [baseline] (21.354 ms) : 0, 21354
IAST [candidate] (22.343 ms) : 0, 22343
section profiling
BytebuddyAgent [baseline] (686.195 ms) : 0, 686195
BytebuddyAgent [candidate] (682.699 ms) : 0, 682699
GlobalTracer [baseline] (399.55 ms) : 0, 399550
GlobalTracer [candidate] (398.821 ms) : 0, 398821
AppSec [baseline] (54.721 ms) : 0, 54721
AppSec [candidate] (54.695 ms) : 0, 54695
Remote Config [baseline] (684.254 µs) : 0, 684
Remote Config [candidate] (677.598 µs) : 0, 678
Telemetry [baseline] (10.657 ms) : 0, 10657
Telemetry [candidate] (11.874 ms) : 0, 11874
ProfilingAgent [baseline] (94.506 ms) : 0, 94506
ProfilingAgent [candidate] (92.419 ms) : 0, 92419
Profiling [baseline] (94.529 ms) : 0, 94529
Profiling [candidate] (92.444 ms) : 0, 92444
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 17 unstable metrics. Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.43.0-SNAPSHOT~00e4e5a408, baseline=1.43.0-SNAPSHOT~8e1ab2bcd8
dateFormat X
axisFormat %s
section baseline
no_agent (364.767 µs) : 345, 385
. : milestone, 365,
iast (484.383 µs) : 463, 506
. : milestone, 484,
iast_FULL (639.507 µs) : 618, 661
. : milestone, 640,
iast_GLOBAL (507.408 µs) : 486, 528
. : milestone, 507,
iast_HARDCODED_SECRET_DISABLED (498.334 µs) : 477, 520
. : milestone, 498,
iast_INACTIVE (438.834 µs) : 418, 459
. : milestone, 439,
iast_TELEMETRY_OFF (474.311 µs) : 453, 496
. : milestone, 474,
tracing (436.511 µs) : 416, 457
. : milestone, 437,
section candidate
no_agent (371.114 µs) : 352, 390
. : milestone, 371,
iast (488.417 µs) : 467, 510
. : milestone, 488,
iast_FULL (643.075 µs) : 622, 664
. : milestone, 643,
iast_GLOBAL (515.688 µs) : 494, 538
. : milestone, 516,
iast_HARDCODED_SECRET_DISABLED (486.14 µs) : 465, 507
. : milestone, 486,
iast_INACTIVE (445.38 µs) : 424, 467
. : milestone, 445,
iast_TELEMETRY_OFF (470.283 µs) : 449, 491
. : milestone, 470,
tracing (441.807 µs) : 421, 463
. : milestone, 442,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.43.0-SNAPSHOT~00e4e5a408, baseline=1.43.0-SNAPSHOT~8e1ab2bcd8
dateFormat X
axisFormat %s
section baseline
no_agent (1.348 ms) : 1328, 1367
. : milestone, 1348,
appsec (1.739 ms) : 1715, 1764
. : milestone, 1739,
appsec_no_iast (1.717 ms) : 1692, 1741
. : milestone, 1717,
iast (1.476 ms) : 1454, 1499
. : milestone, 1476,
profiling (1.499 ms) : 1477, 1522
. : milestone, 1499,
tracing (1.473 ms) : 1449, 1497
. : milestone, 1473,
section candidate
no_agent (1.341 ms) : 1322, 1361
. : milestone, 1341,
appsec (1.719 ms) : 1693, 1744
. : milestone, 1719,
appsec_no_iast (1.744 ms) : 1720, 1768
. : milestone, 1744,
iast (1.469 ms) : 1446, 1492
. : milestone, 1469,
profiling (1.48 ms) : 1458, 1503
. : milestone, 1480,
tracing (1.483 ms) : 1459, 1507
. : milestone, 1483,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics. Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.43.0-SNAPSHOT~00e4e5a408, baseline=1.43.0-SNAPSHOT~8e1ab2bcd8
dateFormat X
axisFormat %s
section baseline
no_agent (15.382 s) : 15382000, 15382000
. : milestone, 15382000,
appsec (15.291 s) : 15291000, 15291000
. : milestone, 15291000,
iast (18.768 s) : 18768000, 18768000
. : milestone, 18768000,
iast_GLOBAL (18.145 s) : 18145000, 18145000
. : milestone, 18145000,
profiling (15.548 s) : 15548000, 15548000
. : milestone, 15548000,
tracing (15.183 s) : 15183000, 15183000
. : milestone, 15183000,
section candidate
no_agent (15.487 s) : 15487000, 15487000
. : milestone, 15487000,
appsec (15.369 s) : 15369000, 15369000
. : milestone, 15369000,
iast (18.928 s) : 18928000, 18928000
. : milestone, 18928000,
iast_GLOBAL (18.432 s) : 18432000, 18432000
. : milestone, 18432000,
profiling (15.142 s) : 15142000, 15142000
. : milestone, 15142000,
tracing (15.459 s) : 15459000, 15459000
. : milestone, 15459000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.43.0-SNAPSHOT~00e4e5a408, baseline=1.43.0-SNAPSHOT~8e1ab2bcd8
dateFormat X
axisFormat %s
section baseline
no_agent (1.467 ms) : 1456, 1479
. : milestone, 1467,
appsec (2.352 ms) : 2309, 2394
. : milestone, 2352,
iast (2.085 ms) : 2032, 2138
. : milestone, 2085,
iast_GLOBAL (2.12 ms) : 2068, 2173
. : milestone, 2120,
profiling (1.937 ms) : 1896, 1979
. : milestone, 1937,
tracing (1.924 ms) : 1884, 1964
. : milestone, 1924,
section candidate
no_agent (1.473 ms) : 1462, 1485
. : milestone, 1473,
appsec (2.35 ms) : 2308, 2392
. : milestone, 2350,
iast (2.102 ms) : 2048, 2156
. : milestone, 2102,
iast_GLOBAL (2.135 ms) : 2082, 2188
. : milestone, 2135,
profiling (1.956 ms) : 1914, 1998
. : milestone, 1956,
tracing (1.925 ms) : 1886, 1965
. : milestone, 1925,
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What Does This Do
This handles scenarios where the profiling context may not be able to store the thread context because the user has increased the value of pid_max during the process lifetime.
Motivation
Additional Notes
Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any usefull labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issueJira ticket: PROF-10861