Optimizing Java OpenJDK
When optimizing Java applications based on OpenJDK, typically the goal is to tune the JVM from both the point of view of cost savings and quality of service.
Please refer to the Java OpenJDK optimization pack for the list of component types, parameters, metrics, and constraints.
Workflows
Applying parameters
Akamas offers many operators that you can use to apply the parameters for the tuned JVM. In particular, it is suggested to use the FileConfigurator operator to create a configuration file or inject the arguments directly in the command string using a template.
The following is an example of templatized executions string:
A typical workflow
A typical workflow to optimize a Java application can be structured in two parts:
Configure the Java arguments
Generate a configuration file or a command string containing the selected JVM parameters using a FileConfigurator operator.
Run the Java application
Use available operators to execute a performance test against the application.
Here’s an example of a typical workflow where Akamas executes the script containing the command string generated by the file configurator:
Telemetry Providers
Akamas can access JMX metrics using the Prometheus provider. This provider comes out of the box with a set of default queries to interrogate a Prometheus instance configured to fetch data from a JMX Exporter.
Here’s a configuration example for a telemetry provider instance that uses Prometheus to extract all the JMX metrics defined in this optimization pack:
where the configuration of the monitored component provides the additional references as in the following snippet:
Examples
See this page for an example of a study leveraging the Java OpenJDK pack.
Last updated