FATAL: sorry, too many clients already

We experience HTTP Error 500 several hours after system restart.
gitlab-ctl tail shows:

/var/log/gitlab/postgresql/current FATAL: sorry, too many clients already

How could i troubleshoot the problem? Any advices?