User Guide Getting Started Help Center Documentation Community Training
Looker
Recommended Java Memory Settings

The memory allocated to the Looker application is specified in the Looker startup script. This script is named looker and it must be in the same directory as looker.jar. The directory is generally /home/looker/looker.

The startup script automatically determines how much java memory to allocate to Looker. However, if you would like to customize this value manually, you can follow these instructions.

Changing Looker’s Memory Allocation

To change the memory allocated to Looker, edit these lines for Java heap and metaspace memory allocation in the startup script:

JAVAMEM="2300m"
METAMEM="800m"

Then, restart the application:

./looker restart

For smaller instances dedicated to Looker, the memory allocated should be approximately two thirds of the available memory. On larger instances this ratio can be increased.

If too much memory is allocated:

If too little memory is allocated:

EC2 Instance Types

The following table lists the recommended memory settings for a number of common Amazon EC2 instance sizes:

Instance Type Total Sytem Memory JAVAMEM METAMEM
mx.large 7500m 3600m 800m
mx.xlarge 15000m 9000m 1000m
mx.2xlarge 30000m 20000m 1000m
mx.4xlarge 60000m 46000m 1000m
Top