11.08.2015 23:42, Jeferson Sisto wrote: > I already try to do it, but when a connection from a client (another > machine) is ended abnormally (for example, turn off the machine or > disconnect the cable of network), this connection still stay on system > table "MON$ATTACHMENT".
It's because the connection is still really alive, the server has no idea that it was terminated from the other side. You need to configure either the TCP keepalive interval at the OS level or enable DummyPacketInterval in firebird.conf, so that such forced disconnects were detected faster by the server. Dmitry