You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

This section describes how to change the memory settings for the Java Virtual Machine when running Aspire. It depends on how you are running Aspire. Check the Hardware and Network Considerations for the recommend Memory allocation settings.

 

Running as Windows Service

If running Aspire as Windows Service, there is two options:

Re-install the Service

Every command should be run using an Administrator Console, and relative to the ${aspire.home} directory.

  1. 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

    rem Initial Java heap size
    set JAVA_INITIAL_MEMORY=32768
    
    rem Maximum  Java heap size
    set JAVA_MAX_MEMORY=32768
  2. Stop the service from the Services Window
  3. Remove the service by executing

    > bin\removeService.bat
    Windows Service Name:  AspireService
    
    [SC] DeleteService SUCCESS
    Service AspireService deleted.
    
    > 
    
    
  4. Reinstall the service

    > bin\installService.bat
    "JAVA 8"
    Current System Architecture: AMD64
    Windows Service Name:  AspireService
    Aspire Home:  C:\Users\aaguilar\Distributions\aspire-3.2
    
    Java VM:  C:\Program Files\Java\jdk1.8.0_73\jre\bin\server\jvm.dll
    Creating Service...
    
    
    Service AspireService created.
    
    > 
  5. Enjoy your new Memory Settings

     

 

 

  • No labels