Resource Tuner
|
Classes | |
class | ClientGarbageCollector |
ClientGarbageCollector. More... | |
Runs as a Daemon Thread and Periodically (Every 83 seconds) and performs cleanup for a pre-defined max number of clients found in the Garbage Collector Queue (added by the Pulse Monitor).
As part of the cleanup:
1) All the active Requests from the client (if any) are untuned.
2) The Request Manager is updated, so that these requests are no longer tracked as active Requests.
3) The Client tracking entries maintained by the ClientDataManager for this client PID are cleared.
Note, not all clients in the queue are cleaned up at once, instead a pre-defined upper bound is placed on the number of clients to be cleaned in one iteration. The pending clients will be taken up in subsequent iterations.