-
Notifications
You must be signed in to change notification settings - Fork 304
Read hsperfdata for Java PIDs if jvmstat is unavailable #8792
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
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 2 performance improvements and 1 performance regressions! Performance is the same for 51 metrics, 17 unstable metrics.
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.50.0-SNAPSHOT~d7886c60bb, baseline=1.50.0-SNAPSHOT~90ca83f4bc
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.021 s) : 0, 1020606
Total [baseline] (10.508 s) : 0, 10508126
Agent [candidate] (1.021 s) : 0, 1020655
Total [candidate] (10.492 s) : 0, 10492353
section appsec
Agent [baseline] (1.174 s) : 0, 1173709
Total [baseline] (10.728 s) : 0, 10728465
Agent [candidate] (1.162 s) : 0, 1162181
Total [candidate] (10.698 s) : 0, 10698184
section iast
Agent [baseline] (1.15 s) : 0, 1150444
Total [baseline] (10.921 s) : 0, 10921259
Agent [candidate] (1.164 s) : 0, 1164032
Total [candidate] (10.934 s) : 0, 10933965
section profiling
Agent [baseline] (1.283 s) : 0, 1282810
Total [baseline] (10.904 s) : 0, 10904397
Agent [candidate] (1.287 s) : 0, 1286724
Total [candidate] (11.004 s) : 0, 11004241
gantt
title petclinic - break down per module: candidate=1.50.0-SNAPSHOT~d7886c60bb, baseline=1.50.0-SNAPSHOT~90ca83f4bc
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (683.273 ms) : 0, 683273
BytebuddyAgent [candidate] (683.773 ms) : 0, 683773
GlobalTracer [baseline] (240.329 ms) : 0, 240329
GlobalTracer [candidate] (240.655 ms) : 0, 240655
AppSec [baseline] (55.937 ms) : 0, 55937
AppSec [candidate] (54.49 ms) : 0, 54490
Debugger [baseline] (6.926 ms) : 0, 6926
Debugger [candidate] (9.124 ms) : 0, 9124
Remote Config [baseline] (705.936 µs) : 0, 706
Remote Config [candidate] (690.233 µs) : 0, 690
Telemetry [baseline] (9.877 ms) : 0, 9877
Telemetry [candidate] (8.298 ms) : 0, 8298
section appsec
BytebuddyAgent [baseline] (708.941 ms) : 0, 708941
BytebuddyAgent [candidate] (700.578 ms) : 0, 700578
GlobalTracer [baseline] (239.387 ms) : 0, 239387
GlobalTracer [candidate] (237.255 ms) : 0, 237255
IAST [baseline] (22.025 ms) : 0, 22025
IAST [candidate] (21.749 ms) : 0, 21749
AppSec [baseline] (176.22 ms) : 0, 176220
AppSec [candidate] (175.622 ms) : 0, 175622
Debugger [baseline] (5.985 ms) : 0, 5985
Debugger [candidate] (5.918 ms) : 0, 5918
Remote Config [baseline] (633.892 µs) : 0, 634
Remote Config [candidate] (615.137 µs) : 0, 615
Telemetry [baseline] (7.82 ms) : 0, 7820
Telemetry [candidate] (7.736 ms) : 0, 7736
section iast
BytebuddyAgent [baseline] (802.943 ms) : 0, 802943
BytebuddyAgent [candidate] (812.992 ms) : 0, 812992
GlobalTracer [baseline] (231.0 ms) : 0, 231000
GlobalTracer [candidate] (233.002 ms) : 0, 233002
IAST [baseline] (25.874 ms) : 0, 25874
IAST [candidate] (29.55 ms) : 0, 29550
AppSec [baseline] (52.747 ms) : 0, 52747
AppSec [candidate] (50.057 ms) : 0, 50057
Debugger [baseline] (5.865 ms) : 0, 5865
Debugger [candidate] (5.985 ms) : 0, 5985
Remote Config [baseline] (595.249 µs) : 0, 595
Remote Config [candidate] (619.135 µs) : 0, 619
Telemetry [baseline] (7.816 ms) : 0, 7816
Telemetry [candidate] (7.983 ms) : 0, 7983
section profiling
BytebuddyAgent [baseline] (673.709 ms) : 0, 673709
BytebuddyAgent [candidate] (677.668 ms) : 0, 677668
GlobalTracer [baseline] (379.338 ms) : 0, 379338
GlobalTracer [candidate] (377.035 ms) : 0, 377035
AppSec [baseline] (54.769 ms) : 0, 54769
AppSec [candidate] (62.065 ms) : 0, 62065
Debugger [baseline] (6.135 ms) : 0, 6135
Debugger [candidate] (6.365 ms) : 0, 6365
Remote Config [baseline] (670.505 µs) : 0, 671
Remote Config [candidate] (668.251 µs) : 0, 668
Telemetry [baseline] (8.084 ms) : 0, 8084
Telemetry [candidate] (8.219 ms) : 0, 8219
ProfilingAgent [baseline] (109.32 ms) : 0, 109320
ProfilingAgent [candidate] (103.736 ms) : 0, 103736
Profiling [baseline] (109.346 ms) : 0, 109346
Profiling [candidate] (103.761 ms) : 0, 103761
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.50.0-SNAPSHOT~d7886c60bb, baseline=1.50.0-SNAPSHOT~90ca83f4bc
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.024 s) : 0, 1023532
Total [baseline] (8.651 s) : 0, 8650871
Agent [candidate] (1.021 s) : 0, 1020982
Total [candidate] (8.66 s) : 0, 8660203
section iast
Agent [baseline] (1.149 s) : 0, 1149036
Total [baseline] (9.249 s) : 0, 9249129
Agent [candidate] (1.149 s) : 0, 1149225
Total [candidate] (9.268 s) : 0, 9268239
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.158 s) : 0, 1158445
Total [baseline] (9.219 s) : 0, 9218752
Agent [candidate] (1.149 s) : 0, 1149264
Total [candidate] (9.202 s) : 0, 9202341
section iast_TELEMETRY_OFF
Agent [baseline] (1.146 s) : 0, 1146346
Total [baseline] (9.23 s) : 0, 9229962
Agent [candidate] (1.157 s) : 0, 1157259
Total [candidate] (9.284 s) : 0, 9284248
gantt
title insecure-bank - break down per module: candidate=1.50.0-SNAPSHOT~d7886c60bb, baseline=1.50.0-SNAPSHOT~90ca83f4bc
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (684.053 ms) : 0, 684053
BytebuddyAgent [candidate] (681.776 ms) : 0, 681776
GlobalTracer [baseline] (241.136 ms) : 0, 241136
GlobalTracer [candidate] (240.255 ms) : 0, 240255
AppSec [baseline] (55.315 ms) : 0, 55315
AppSec [candidate] (55.076 ms) : 0, 55076
Debugger [baseline] (9.011 ms) : 0, 9011
Debugger [candidate] (10.595 ms) : 0, 10595
Remote Config [baseline] (697.977 µs) : 0, 698
Remote Config [candidate] (688.058 µs) : 0, 688
Telemetry [baseline] (9.756 ms) : 0, 9756
Telemetry [candidate] (8.937 ms) : 0, 8937
section iast
BytebuddyAgent [baseline] (801.868 ms) : 0, 801868
BytebuddyAgent [candidate] (801.543 ms) : 0, 801543
GlobalTracer [baseline] (230.513 ms) : 0, 230513
GlobalTracer [candidate] (230.619 ms) : 0, 230619
IAST [baseline] (28.235 ms) : 0, 28235
IAST [candidate] (28.4 ms) : 0, 28400
AppSec [baseline] (50.551 ms) : 0, 50551
AppSec [candidate] (50.593 ms) : 0, 50593
Debugger [baseline] (5.896 ms) : 0, 5896
Debugger [candidate] (5.963 ms) : 0, 5963
Remote Config [baseline] (598.728 µs) : 0, 599
Remote Config [candidate] (604.592 µs) : 0, 605
Telemetry [baseline] (7.882 ms) : 0, 7882
Telemetry [candidate] (7.949 ms) : 0, 7949
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (808.393 ms) : 0, 808393
BytebuddyAgent [candidate] (801.405 ms) : 0, 801405
GlobalTracer [baseline] (231.944 ms) : 0, 231944
GlobalTracer [candidate] (231.209 ms) : 0, 231209
IAST [baseline] (29.038 ms) : 0, 29038
IAST [candidate] (29.245 ms) : 0, 29245
AppSec [baseline] (50.812 ms) : 0, 50812
AppSec [candidate] (49.476 ms) : 0, 49476
Debugger [baseline] (5.991 ms) : 0, 5991
Debugger [candidate] (5.898 ms) : 0, 5898
Remote Config [baseline] (605.485 µs) : 0, 605
Remote Config [candidate] (595.756 µs) : 0, 596
Telemetry [baseline] (7.948 ms) : 0, 7948
Telemetry [candidate] (7.906 ms) : 0, 7906
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (799.42 ms) : 0, 799420
BytebuddyAgent [candidate] (806.732 ms) : 0, 806732
GlobalTracer [baseline] (230.691 ms) : 0, 230691
GlobalTracer [candidate] (232.975 ms) : 0, 232975
IAST [baseline] (23.838 ms) : 0, 23838
IAST [candidate] (24.362 ms) : 0, 24362
AppSec [baseline] (54.445 ms) : 0, 54445
AppSec [candidate] (54.892 ms) : 0, 54892
Debugger [baseline] (5.978 ms) : 0, 5978
Debugger [candidate] (6.058 ms) : 0, 6058
Remote Config [baseline] (676.28 µs) : 0, 676
Remote Config [candidate] (638.991 µs) : 0, 639
Telemetry [baseline] (7.802 ms) : 0, 7802
Telemetry [candidate] (7.916 ms) : 0, 7916
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 18 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.50.0-SNAPSHOT~d7886c60bb, baseline=1.50.0-SNAPSHOT~90ca83f4bc
dateFormat X
axisFormat %s
section baseline
no_agent (1.353 ms) : 1333, 1372
. : milestone, 1353,
appsec (1.742 ms) : 1718, 1765
. : milestone, 1742,
appsec_no_iast (1.731 ms) : 1707, 1755
. : milestone, 1731,
code_origins (1.669 ms) : 1641, 1696
. : milestone, 1669,
iast (1.517 ms) : 1493, 1540
. : milestone, 1517,
profiling (1.563 ms) : 1528, 1597
. : milestone, 1563,
tracing (1.493 ms) : 1468, 1517
. : milestone, 1493,
section candidate
no_agent (1.366 ms) : 1346, 1387
. : milestone, 1366,
appsec (1.74 ms) : 1715, 1764
. : milestone, 1740,
appsec_no_iast (1.728 ms) : 1704, 1751
. : milestone, 1728,
code_origins (1.676 ms) : 1650, 1703
. : milestone, 1676,
iast (1.516 ms) : 1492, 1540
. : milestone, 1516,
profiling (1.516 ms) : 1492, 1540
. : milestone, 1516,
tracing (1.499 ms) : 1474, 1524
. : milestone, 1499,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.50.0-SNAPSHOT~d7886c60bb, baseline=1.50.0-SNAPSHOT~90ca83f4bc
dateFormat X
axisFormat %s
section baseline
no_agent (382.993 µs) : 362, 404
. : milestone, 383,
iast (521.606 µs) : 500, 543
. : milestone, 522,
iast_FULL (730.637 µs) : 707, 754
. : milestone, 731,
iast_GLOBAL (560.853 µs) : 539, 582
. : milestone, 561,
iast_HARDCODED_SECRET_DISABLED (519.474 µs) : 496, 543
. : milestone, 519,
iast_INACTIVE (463.172 µs) : 441, 486
. : milestone, 463,
iast_TELEMETRY_OFF (514.793 µs) : 492, 538
. : milestone, 515,
tracing (454.063 µs) : 432, 476
. : milestone, 454,
section candidate
no_agent (378.646 µs) : 359, 399
. : milestone, 379,
iast (522.5 µs) : 499, 546
. : milestone, 522,
iast_FULL (732.485 µs) : 709, 756
. : milestone, 732,
iast_GLOBAL (568.068 µs) : 546, 590
. : milestone, 568,
iast_HARDCODED_SECRET_DISABLED (517.647 µs) : 496, 540
. : milestone, 518,
iast_INACTIVE (456.892 µs) : 435, 479
. : milestone, 457,
iast_TELEMETRY_OFF (511.93 µs) : 489, 535
. : milestone, 512,
tracing (459.749 µs) : 437, 482
. : milestone, 460,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.50.0-SNAPSHOT~d7886c60bb, baseline=1.50.0-SNAPSHOT~90ca83f4bc
dateFormat X
axisFormat %s
section baseline
no_agent (1.472 ms) : 1461, 1484
. : milestone, 1472,
appsec (2.408 ms) : 2359, 2458
. : milestone, 2408,
iast (2.185 ms) : 2124, 2247
. : milestone, 2185,
iast_GLOBAL (2.237 ms) : 2174, 2299
. : milestone, 2237,
profiling (2.046 ms) : 1995, 2097
. : milestone, 2046,
tracing (2.022 ms) : 1974, 2070
. : milestone, 2022,
section candidate
no_agent (1.474 ms) : 1463, 1486
. : milestone, 1474,
appsec (2.398 ms) : 2349, 2446
. : milestone, 2398,
iast (2.181 ms) : 2120, 2243
. : milestone, 2181,
iast_GLOBAL (2.231 ms) : 2169, 2294
. : milestone, 2231,
profiling (2.53 ms) : 2345, 2716
. : milestone, 2530,
tracing (2.014 ms) : 1966, 2062
. : milestone, 2014,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.50.0-SNAPSHOT~d7886c60bb, baseline=1.50.0-SNAPSHOT~90ca83f4bc
dateFormat X
axisFormat %s
section baseline
no_agent (14.974 s) : 14974000, 14974000
. : milestone, 14974000,
appsec (14.856 s) : 14856000, 14856000
. : milestone, 14856000,
iast (18.518 s) : 18518000, 18518000
. : milestone, 18518000,
iast_GLOBAL (17.995 s) : 17995000, 17995000
. : milestone, 17995000,
profiling (15.51 s) : 15510000, 15510000
. : milestone, 15510000,
tracing (14.944 s) : 14944000, 14944000
. : milestone, 14944000,
section candidate
no_agent (14.77 s) : 14770000, 14770000
. : milestone, 14770000,
appsec (14.829 s) : 14829000, 14829000
. : milestone, 14829000,
iast (18.612 s) : 18612000, 18612000
. : milestone, 18612000,
iast_GLOBAL (17.974 s) : 17974000, 17974000
. : milestone, 17974000,
profiling (15.235 s) : 15235000, 15235000
. : milestone, 15235000,
tracing (15.01 s) : 15010000, 15010000
. : milestone, 15010000,
|
Yeah. The bet is that this is mostly unused - anyway, it would affect also any |
Co-authored-by: Jaroslav Bachorik <[email protected]>
Co-authored-by: Brice Dutheil <[email protected]>
Datadog Summary✅ Code Quality ✅ Code Security ✅ Dependencies Was this helpful? Give us feedback! |
9e161ee
to
d7886c6
Compare
What Does This Do
This reads from the
hsperfdata
directory created by JDKs with theperfdata
feature enabled (on by default) to identify the process IDs of other JVMs on the system.Motivation
This follows up on #8641 - initially, we had assumed that though
jps
may not be present or invocable across all distributions, the internaljvmstat
module would be. We've discovered that this isn't the case via system tests and telemetry, so this PR adds in a new mechanism to reproducesjvmstat
's behaviour.Additional Notes
This PR is intended to be part of a phased rollout - we will likely deprecate the other means of getting the Java PIDs after introducing this one.
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-11673