Each FLUSH destroys and re-creates the in-memory hash table. If you observe a memory use growth despite the periodic FLUSH, the root cause of that growth must be further researched.
Have you checked if there is no (small) continuous growth with your patch that clear thread data on disconnect?
Each FLUSH destroys and re-creates the in-memory hash table. If you observe a memory use growth despite the periodic FLUSH, the root cause of that growth must be further researched.
Have you checked if there is no (small) continuous growth with your patch that clear thread data on disconnect?