3 ms·
> Once a day, reboot. Alternatively, you could have a pool of Java servers and coordinate GC with your load balancer. That is, some system would: (1) coordin
by adrianmonk 6y ago
> Once a day, reboot.
Alternatively, you could have a pool of Java servers and coordinate GC with your load balancer.
That is, some system would:
(1) coordinate with the load balancer (or directory service of endpoints) to ensure that a Java node is completely out of the pool
(2) coordinate with the Java node to ensure all its in-progress requests have completed
(3) run a full GC on that node
(4) return it to the pool
(5) move on to the next node, cycling through them.
You probably wouldn't need to increase the number of Java nodes very much, either. If a GC is required every 10 minutes and it only takes 30 seconds to do this, then you only need 5% more Java nodes.