In Linux based systems, the memory usage can be changed with the following environment variables
aspire_max_heap_memory | no | 2g | Maximum Heap the JVM will request and use from the host system |
aspire_max_metaspace_size | no | 256m | Maximum metaspace the JVM will request and use from the host system. |
In Windows based systems if using the aspire.bat file, the memory usage should be changed in the aspire.bat itself.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
@echo off
rem ensure environment variables only exist in this space
setlocal ENABLEDELAYEDEXPANSION
rem **************************************************************************************************
rem * set the "useful" option at the top of the script for ease of changing (even if they won't be used)
rem Initial Java heap size in Megabytes
set JAVA_INITIAL_MEMORY=1024
rem Maximum Java heap size in Megabytes
set JAVA_MAX_MEMORY=2048
rem Maximum Java Permanent Generation Size (Java 1.7 and below) or Java Metaspace Size (Java 1.8 and above) in Megabytes
set JAVA_MAX_META_MEMORY=512
rem Set any other java options
set JAVA_OPTIONS=-Dfile.encoding=UTF-8
... |
Otherwise, if it is running as a Windows Service:
HKEY_LOCAL_MACHINE / SOFTWARE / WOW6432Node / Apache Software / Procrun
2.0
/ AspireService / Parameters / Java