SessionCleanupThread

22 views
Skip to first unread message

Concord

unread,
Feb 5, 2021, 3:30:38 AM2/5/21
to membrane-monitor

Hi Guys,

com.predic8.membrane.core.interceptor.balancer; SessionCleanupThread

Looks this thread runs more time and I could see close to 1000 individual threads on WAITING state on this class.
Whenever Balancer constructor is called, this class kicks in and it runs the clean up process with few wait times, so when does this will stop.

If  i want to alter the waiting time , can i use any property to set it.

Sessions which are more than an hour are eligible for clearing, can i set it to some minutes.

Please share your thoughts


Concord

unread,
Apr 25, 2021, 11:58:40 PM4/25/21
to membrane...@googlegroups.com
Guys do I have any update.

Much needed solution.

--
You received this message because you are subscribed to the Google Groups "membrane-monitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to membrane-monit...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/membrane-monitor/8f9a8073-a98a-4de0-b36f-fd9362265dd8n%40googlegroups.com.

Tobias Polley

unread,
May 3, 2021, 12:18:59 PM5/3/21
to membrane-monitor
Hi bhaskaran,

spawning a SessionCleanupThread could be avoided by converting Balancer.clusters from a Hashtable into a Cache (from the guava library, configured with the timeout).

Pull requests are welcome.

Best, Tobias
Reply all
Reply to author
Forward
0 new messages