Answer the question
In order to leave comments, you need to log in
Why do 30 fpm processes create 60 persistent db connections?
Hello! There is a postgress base with a limited number of connections. There is fpm with 30 processes. But if I make a request for pg_stat_activity, then it gives out 60 clogged connections. The connection is set up like this:
$dbh = new PDO(sprintf('pgsql:host=%s;dbname=%s;port=%s;sslmode=prefer', $dbHost, $dbName, $dbPort), $dbUser, $dbPass, [
PDO::ATTR_PERSISTENT => true,
]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question