Poolboy Connections


is there anyway to find out which processes currently have checked out a poolboy connection? I can only find :poolboy.status/1 which is not very useful.


Poolboy stores this information in an ets table called monitors but since it’s a private table, it can’t be read. Is there any way around it?

It seems there is a handle_call that could retrieve what You need…

From source code.

handle_call(get_all_monitors, _From, State) ->
    Monitors = ets:select(State#state.monitors,
                          [{{'$1', '_', '$2'}, [], [{{'$1', '$2'}}]}]),
    {reply, Monitors, State};

Thanks so much @kokolegorille! This works exactly like I wanted it to!