# \[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="https://1455297369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWaLHgCJcLYwHY9VZwaxO%2Fuploads%2FWMJHtrC1s3u5svemkdJx%2Fparameters-cropped.png?alt=media&#x26;token=78b2c6a2-aa0f-4b8d-b6e6-6135a24b194a" 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="https://1455297369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWaLHgCJcLYwHY9VZwaxO%2Fuploads%2FNG9YwFI8eRulIncijdsK%2Fconstraint-cropped.png?alt=media&#x26;token=c9508538-41a8-4ba9-8863-cbd40a0aef17" alt=""><figcaption></figcaption></figure>
