> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/install/10.2-install/pentaho-installation-overview-cp/manual-installation/manual-installation-process/configure-and-start-the-pentaho-server-after-manual-installation/configure-the-pentaho-server-for-windows/step-1-modify-the-tomcat-startup-script.md). Agents can also search and read this documentation through its [MCP server](https://docs.pentaho.com/~gitbook/mcp).

# Step 1: Modify the Tomcat startup script

**CATALINA\_OPTS** indicates the amount of memory to allocate. It also indicates where Pentaho licenses are installed.

**Note:** The startup process will fail if an environment variable setting is not valid or is incorrect. When modifying any environment variable in the startup file, make sure its setting is valid and correct.

Perform the following steps to include the **CATALINA\_OPTS** variable:

1. Copy all the JAR files from the `server\pentaho-server\pentaho-solutions\native-lib\win64` folder to the `~\webapps\pentaho\WEB-INF\lib` folder.
2. Add the LIBPATH variable to the Tomcat `startup.bat` file as follows:

   ```
   set LIBPATH=~\native-lib\win64
   ```
3. Make sure the Tomcat web application server is not running by starting the Windows **Task Manager** and looking for **Tomcat** in the **Applications** tab.

   If the server is running, stop it.
4. Use a text editor to open the `startup.bat` file, which is in the `pentaho\server\pentaho-server\tomcat\bin` directory.
5. Add this line before the `CATALINA_HOME` section:

   `SET DI_HOME=%~dp0..\..\pentaho-solutions\system\kettle`
6. Add the java option `pentaho.license.information.file` to the **CATALINA\_OPTS** variable.

   You need to modify the setting of **CATALINA\_OPTS** variable by adding the java option. See the following example.

   `SET CATALINA_OPTS=-Xms4096m -Xmx6144m -Djava.library.path=%LIBPATH% -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dpentaho.license.information.file=%PENTAHO_LICENSE_INFORMATION_PATH% -DDI_HOME=%DI_HOME%`
7. Save and close the file.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.pentaho.com/install/10.2-install/pentaho-installation-overview-cp/manual-installation/manual-installation-process/configure-and-start-the-pentaho-server-after-manual-installation/configure-the-pentaho-server-for-windows/step-1-modify-the-tomcat-startup-script.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
