LiveUpdate Administrator (LUA) 2.3.x cannot open the LUA console correctly or some scheduled tasks cannot be executed suddenly.
The lua-application.log or lua-application.log.<number> files shows "java.lang.OutOfMemoryError: Java heap space".
OR,
You may also observe following error in luatomcat-stderr-<date>.log
WARNING [Thread-10] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [lua] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.WARNING [Thread-10] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [lua] appears to have started a thread named [__DEFAULT__] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.base/java.lang.Object.wait0(Native Method) java.base/java.lang.Object.wait(Object.java:366) java.base/java.lang.Object.wait(Object.java:339) java.base/java.util.TimerThread.mainLoop(Timer.java:537) java.base/java.util.TimerThread.run(Timer.java:516)
Is there any tuning to increase Java heap space?
Tomcat is indicating a lack of Java heap memory available. To increase the size of the Java Heap, please do the following:
1. Open a command prompt window and navigate to the folder "<LUA installation folder>\tomcat\bin\".
2. Execute the following command:
tomcat9w.exe //ES//LUATomcat
Note: The tomcat<number>w.exe located in this folder will be tomcat9w.exe when running LiveUpdate Administrator 2.3.13/14.
If you are running LiveUpdate Administrator 2.3.5 - 2.3.12, the tomcat<number>.exe will be tomcat8w.exe.
If you are running version 2.3.4 or earlier, the file will be named tomcat7w.exe.
3. “LUA Apache Tomcat Properties” dialog appears.
4. Select the “Java” tab.
5. Change the memory and thread parameters to the following values:
Initial memory pool: 512 MB
Maximum memory pool: 1024 MB
Thread stack size: 512 KB
Note : If issue persists, set the Maximum memory pool to 2048.
For example:
Initial memory pool: 128 MB
Maximum memory pool: 512 MB
Thread stack size: 96 KB
Initial memory pool: 512 MB
Maximum memory pool: 1024 MB
Thread stack size: 512 KB
6. Click on the “OK” button.
7. Stop “LUA Apache Tomcat” service, wait 30 seconds then start “LUA Apache Tomcat” service.