syahra712 commented on code in PR #143:
URL: https://github.com/apache/solr-orbit/pull/143#discussion_r4433074995


##########
solrorbit/test_run_orchestrator.py:
##########
@@ -462,6 +462,25 @@ def _load_cluster_config(cfg):
     return instance
 
 
+def _create_jvm_telemetry_devices(cfg):
+    """
+    Build the JVM telemetry devices (``jfr``, ``gc``, ``jit``) enabled with 
``--telemetry``.
+
+    ``SolrProvisioner`` adds the ``instrument_java_opts()`` of every device it 
is given to
+    ``SOLR_OPTS``, so only the enabled ones are returned. Their output goes to 
a
+    ``telemetry`` directory inside the test run directory.
+    """
+    enabled_devices = cfg.opts("telemetry", "devices", mandatory=False, 
default_value=[]) or []
+    telemetry_params = cfg.opts("telemetry", "params", mandatory=False, 
default_value={}) or {}
+    log_root = os.path.join(paths.test_run_root(cfg), "telemetry")
+    devices = [
+        telemetry.FlightRecorder(telemetry_params, log_root, 
java_major_version=None),
+        telemetry.Gc(telemetry_params, log_root, java_major_version=None),
+        telemetry.JitCompiler(log_root, telemetry_params),

Review Comment:
   Thanks, fixed in 67cb915. `TraceClassLoading` is obsolete since JDK 17 
(JDK-8256718), so it now uses `-Xlog:class+load=info`. I also made 
`-XX:+PrintAssembly` opt-in (`jit-print-assembly:true`) in 87d05ff, because it 
slowed startup on `solr:9` from about 25s to over 90s.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to