The following message is output when Resin terminates as enough free space cannot be secured for heap memory used by JavaVM.
-------------------------------------
Forcing GC due to low memory. XXXXXXX free bytes.
Restarting due to low free memory. XXXXXXX free bytes
-------------------------------------
Resin is terminated forcibly when free space for heap space in a memory size secured by JavaVM at its starting is not enough. This is Resin’s specification. Additionally, you cannot change the threshold of forced termination.
JavaVM usually executes GC or FULL GC before the above-mentioned message is output and release unnecessary Java objects to secure heap space for it. However, in the case that the amount of unnecessary, unused Java objects is small or the amount of permanently used objects is large, the GC effect is rather small.
If you continue operation in this kind of state, Resin might terminate by the Java’s memory space shortage like this case.
To avoid the event, raise an upper limit of the maximum size of heap memory (-xmx) within the range of a machine specification with the startup option of JavaVM. Also note that you need to re-start services on a regular basis to release objects permanently used because available heap memory will gradually be reduced when the services operate without shutdown.
-- Target ------------------------------------------------------------------------
iWP/Web System Construction Platform/WebPlatform/AppFramework
----------------------------------------------------------------------------------
FAQID:261
The service terminates with the message “Forcing GC due to low memory... Restarting due to low free memory...” output to the system log. Tell me the cause of this and the countermeasure.
