"Marcus Andree S. Magalhaes" <marcus.magalhaes@vlinfo.com.br> writes:
> We have a java program scheduled to run a few times in an hour and
> the server backend keeps running when the java program exits.
That means you're not closing the connection. Fix your client.
regards, tom lane