The message, “Forcing GC due to low memory... Restarting due to low free memory...” is output to system log and the service is stopped. I want to know the cause and measures.

 
The following message is output when Resin has stops because the free area of the heap memory used by JavaVM cannot be secured.
------------------------------------- 
Forcing GC due to low memory. XXXXXXX free bytes. 
Restarting due to low free memory. XXXXXXX free bytes 
-------------------------------------

Resin forcefully terminates when free area of heap area which secured at JavaVM startup is reduced.
This is Resin specification.
Moreover, value for threshold to terminate cannot be changed.
Normally, JavaVM executes GC or FULL GC before outputting the message above and releases unnecessary Java object and secure JavaVM heap area, however, non-use or unnecessary Java object itself has less status or persistently used object has more, then the effect of GC will be reduced.
If you continue to operate in this state, Java might run out of memory area and Resin might stop.
To avoid this event, first increase the maximum heap memory size (-xmx) in the range that matches the machine specifications with the Java VM startup option.
However, if the service is operated in a non-stop state, the free heap area will eventually decrease, so it is necessary to periodically restart the service and release the objects that are persistently used. 


-- Target ------------------------------------------------------------------------------------
iWP/Web System Construction Platform/WebPlatform/AppFramework
------------------------------------------------------------------------------------------------


FAQID:261
Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk