> For the complete documentation index, see [llms.txt](https://docs.akamas.io/quick-guides/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/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-steps.md).

# \[AIAS-02] Define the optimization steps

Finally, you can define the steps the study will go through.

Typically, an Akamas study is composed of:

* A `Baseline` step, which is used to assess the system performance in the initial configuration (e.g. the settings currently in place for your system)
* An `Optimize` step, which is used to execute the actual AI-driven performance optimization

The Akamas study wizard already creates these two steps for you.

In this study, we simply configure the baseline configuration by setting `jvm_maxHeapSize` to **1024MB**:

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

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

Then click on the Optimize step in the left panel to specify the optimization configuration.

For now, simply set the number of experiments to execute to 30:

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

Finally click on **Save**. You have now created your first study and you are ready to start the optimization!

You can review your study in the **Definition** tab or go and launch the study by pressing the **Start** button:

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


---

# 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/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-steps.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.
