> For the complete documentation index, see [llms.txt](https://docs.akamas.io/akamas-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.akamas.io/akamas-docs/3.2.2/using-akamas/optimization-scenarios/optimizing-jvm-layer-openjdk.md).

# Guidelines for JVM layer (OpenJDK)

When starting a new JVM optimization, the following is a list of recommended parameters. After having selected the parameters, always make sure to add/review the corresponding parameter domains and constraints based on your environment. Please refer to the optimization pack reference page for more information.

## Suggested Parameters for Open JDK 11 <a href="#suggested-parameters" id="suggested-parameters"></a>

* `jvm_maxHeapSize`
* `jvm_minHeapSize`
* `jvm_gcType`
* `jvm_newSize`
* `jvm_survivorRatio`
* `jvm_maxTenuringThreshold`
* `jvm_parallelGCThreads`
* `jvm_concurrentGCThreads`
* `jvm_maxInlineSize`
* `jvm_inlineSmallCode`
* `jvm_useTransparentHugePages`
* `jvm_alwaysPreTouch`

## Suggested Parameters for Open JDK 8 <a href="#suggested-parameters" id="suggested-parameters"></a>

When starting a new JVM optimization, the following is a list of recommended parameters to include in your study:

* `jvm_gcType`
* `jvm_maxHeapSize`
* `jvm_newSize`
* `jvm_survivorRatio`
* `jvm_maxTenuringThreshold`
* `jvm_parallelGCThreads`
* `jvm_concurrentGCThreads`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.akamas.io/akamas-docs/3.2.2/using-akamas/optimization-scenarios/optimizing-jvm-layer-openjdk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
