Page History
Running in Linux from startup.sh
Go to your ${aspire.home}/bin folder and edit the startup.sh file, in this case we are setting Aspire to use 32 GB of memory.
Code Block language powershell theme Confluence firstline 8 linenumbers true # Set the java options JAVA_OPT="$JAVA_OPT -Xmx32g -Xms32g -XX:MaxPermSize=256m"
Restart Aspire
Code Block theme FadeToGrey $ bin\shutdown.sh
and then
Code Block theme FadeToGrey $ bin\startup.sh
- Enjoy your new memory settings.
Running in Windows from
startupaspire.bat
Go to your ${aspire.home}\bin folder and edit the aspire.bat file. In this case we are setting Aspire to use 32 GB of memory.
Code Block language powershell theme Confluence firstline 5 linenumbers true rem set the Java options for Aspire set ASPIRE_JAVA_OPTS=-Xmx32g -Xms32g -XX:MaxPermSize=256m
Restart Aspire
Code Block theme FadeToGrey > bin\shutdown.bat
and then
Code Block theme FadeToGrey > bin\aspire.bat
- Enjoy your new memory settings
Running as Windows Service
If running Aspire as Windows Service, there are two options.
Option 1. Re-install the Service
Every command should be run using an Administrator Console, and relative to the ${aspire.home} directory.
Change the ${aspire.home}\bin\installService.bat file to reflect the memory settings you want to use. In the example below we are setting the memory as 32 GB.
Code Block language powershell theme Confluence firstline 5 linenumbers true rem Initial Java heap size set JAVA_INITIAL_MEMORY=32768 rem Maximum Java heap size set JAVA_MAX_MEMORY=32768
- Stop the service from the Services window.
Remove the service by executing.
Code Block theme FadeToGrey > bin\removeService.bat Windows Service Name: AspireService [SC] DeleteService SUCCESS Service AspireService deleted. >
Reinstall the service.
Code Block theme FadeToGrey > bin\installService.bat "JAVA 11" Current System Architecture: AMD64 Windows Service Name: AspireService Aspire Home: C:\Users\aaguilar\Distributions\aspire-4.0 Java VM: C:\Program Files\Java\jdk1.8.0_73\jre\bin\server\jvm.dll Creating Service... Service AspireService created. >
Enjoy your new memory settings.
Option 2. Change the JVM Options
This option is available if you can't or don't want to reinstall the Service.
- Open the Registry Editor (regedit).
Browse to:
Code Block HKEY_LOCAL_MACHINE / SOFTWARE / WOW6432Node / Apache Software / Procrun 2.0 / AspireService / Parameters / Java
- Edit JvmMs and JvmMx to what you need.
- Restart the AspireService from the Services Window.
- Enjoy your new memory settings.