# \[AIAS-02] Define the optimization parameters

It’s now time to select which parameters Akamas needs to tune in this study.

Select the `jvm` component and add the following JVM parameters:

* jvm\_maxHeapSize
* jvm\_newSize
* jvm\_maxHeapFreeRatio
* jvm\_gcType
* jvm\_survivorRatio
* jvm\_maxTenuringThreshold

<figure><img src="/files/E8L1OiNNg8pS2B915Knp" alt=""><figcaption></figcaption></figure>

It is also possible to tell Akamas the range of values each parameter can have: this way, the AI will suggest configurations that respect desired limits. For example, in the sandbox environment, the max heap size of the JVM has to be limited to 1GB.

Select the following range of values by clicking on the EDIT DOMAIN of the corresponding parameter:

* jvm\_maxHeapSize: from **32MB** to **1024MB**
* jvm\_newSize: from **32MB** to **1024MB**
* jvm\_maxHeapFreeRatio: **from 41 to 100**

Akamas supports constraints among parameters to avoid incorrect combinations of values. **In this example, the JVM newSize parameter needs to be lower or equal to maxHeapSize**. You can add a new constraint to tell Akamas to keep this relation in consideration during the optimization:

<figure><img src="/files/Ekgr1qHg562Dt8uINWwE" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.akamas.io/quick-guides/quick-guides-akamas-in-a-sandbox/aias-02-guide-create-a-study-to-optimize-java-performance-using-the-akamas-ui/aias-02-define-the-optimization-parameters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
