Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
La memoria allocata all'applicazione Looker nelle istanze ospitate dal cliente è specificata nello script di avvio di Looker.
Puoi scaricare lo script di avvio più recente, looker, dal repository GitHub di Looker open source. Quando scarichi lo script di avvio, spostalo nella stessa directory del file looker.jar (in genere /home/looker/looker). Per ulteriori informazioni, consulta la pagina della documentazione Installazione dell'applicazione Looker.
Lo script di avvio determina automaticamente la quantità di memoria Java da allocare a Looker. Tuttavia, se vuoi personalizzare questo valore manualmente, puoi seguire queste istruzioni.
Modificare l'allocazione della memoria di Looker
Per modificare la memoria allocata a Looker, modifica queste righe per l'allocazione della memoria dell'heap e del metaspazio Java nello script di avvio:
JAVAMEM="2300m"
METAMEM="800m"
Quindi, riavvia l'applicazione:
./looker restart
Per le istanze più piccole dedicate a Looker, la memoria allocata deve essere pari a circa due terzi della memoria disponibile. In istanze più grandi, questo rapporto può essere aumentato.
Se viene allocata troppa memoria:
L'avvio di Looker potrebbe non riuscire
In generale, il sistema potrebbe avere problemi di prestazioni
Se viene allocata poca memoria:
L'avvio di Looker potrebbe non riuscire
In particolare, Looker potrebbe riscontrare problemi di prestazioni
Tipi di istanze comuni
La tabella seguente elenca le impostazioni di memoria consigliate per una serie di dimensioni di istanze comuni:
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-31 UTC."],[],[],null,["# Recommended Java memory settings\n\nThe memory allocated to the Looker application on customer-hosted instances is specified in the Looker startup script.\n\nYou can download the latest startup script, `looker`, at the [looker-open-source GitHub repo](https://github.com/looker-open-source/customer-scripts/tree/master/startup_scripts). When you download the startup script, move it into the same directory as the `looker.jar` file (generally `/home/looker/looker`). For more information, see the [Installing the Looker application](/looker/docs/installing-looker-application#install_the_looker_application) documentation page.\n\nThe 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.\n\nChanging Looker's memory allocation\n-----------------------------------\n\nTo change the memory allocated to Looker, edit these lines for Java heap and metaspace memory allocation in the startup script: \n\n JAVAMEM=\"2300m\"\n METAMEM=\"800m\"\n\nThen, restart the application: \n\n ./looker restart\n\nFor 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.\n\nIf too much memory is allocated:\n\n- Looker may fail to start\n- The system generally may suffer performance issues\n\nIf too little memory is allocated:\n\n- Looker may fail to start\n- Looker specifically may suffer performance issues\n\nCommon instance types\n---------------------\n\nThe following table lists the recommended memory settings for a number of common instance sizes:"]]