The main idea is straightforward, every 1 minute (GC_EVERY
), list:
GC_AFTER_UNUSED_INSTANCES
), take the 10 least recently used instances and shutdown them.The criterias to consider a webapp unused is if no one is connected. “Strategic” handlers are added in ServerApp.scala