Configuration When Presto Uses Only Heap Memory
The initial default Java heap memory settings for Presto are appropriate for small applications or development environments 1G as the maximum heap size. Both the Integrated MashZone Server and the Event Service that are deployed with Presto also use this heap space.
Note: | If you are using Presto Analytics with large datasets and limited memory (less than the recommended 4G minimum), configuring BigMemory to use off-heap memory is not recommended as it can adversely affect performance. |
Some portion of available memory must be reserved for the operating system and any other applications on this host, as shown in the following figure:
How much memory to allocate to Presto depends on available memory, requirements for the Integrated MashZone Server and Event Service and what other applications may run on this computer.
To update memory configuration
1. In a text editor of your choice, open the application server configuration file appropriate for your operating system:
presto-install/apache-tomee-jaxrs/bin/setenv.bat, for Windows
presto-install/apache-tomee-jaxrs/bin/setenv.sh, for Linux, OS/X or UNIX
2. Change any of these Java memory options:
-Xms | Default = 512M |
-Xmx | Default = 1G |
-XX:PermSize | Default = 128M |
-XX:MaxPermSize | Default = 256M |