Fact
Nordic Edge Automatic Account Manager 3
Situation
Automatic Account Manager stops running policies with error:
- “Exception in thread “Timer-0” java.lang.OutOfMemoryError” reported in aamlog.txt/aamstudiolog.txt.
or
- “Caused by: java.lang.OutOfMemoryError: PermGen space” reported in aamstudiolog.txt
Solution
The AAM Java-process has reached the memory limit.
For error “Exception in thread “Timer-0” java.lang.OutOfMemoryError”, edit AAMService.lax and/or AAMStudio.lax and modify lax.nl.java.option.java.heap.size.max
- Set max size to 1,5 GB of memory
lax.nl.java.option.java.heap.size.max=1610612736
- Set max size 2 GB of memory
lax.nl.java.option.java.heap.size.max=2147483648
- Set max size to 4 GB of memory
lax.nl.java.option.java.heap.size.max=4294967296
For error “Caused by: java.lang.OutOfMemoryError: PermGen space”, edit AAMService .lax and/or AAMStudio.lax and add the following parameter after parameter lax.nl.java.option.java.heap.size.max
# LAX.NL.JAVA.OPTION.ADDITIONAL # ------------------------------------- # The default MaxPermSize is 64GB. lax.nl.java.option.additional=-XX:MaxPermSize=128m
Restart the AAMService/AAMStudio.
NOTE: The 32-bit process model limits memory addressing to 4GB. In practice, this limit is even lower on some operating systems. For a 32-bit java process running on Windows 64bit, the maximum of the java heap size is <2GB (2047MB). On Windows 32bit, the maximum is 1,4GB.
The maximum heap size is determined by the maximum amount of contiguous memory space that the Java process can allocate. On a Windows 64bit computer with <=4GB RAM the operating system itself may allocate most of the resources which decreases the maximum amount of contigous memory space available. For example: A Windows 64bit computer with 4GB RAM and a java heap size of 2047 MB may run out of memory before the java heap exceeds 2047 MB. A Windows 64bit computer with 8GB RAM and a java heap size of 4GB will not run out of memory before the java heap exceeds 4GB.
More information about java can be found at http://www.oracle.com.
DISCLAIMER
Information provided in this document is for your information only. PhenixID makes no explicit or implied claims to the validity of this information. Any trademarks referenced in this document are the property of their respective owners.The origin of this information may be internal or external to PhenixID. PhenixID makes all reasonable efforts to verify this information.
PhenixID - support.phenixid.se