Arval SQLException: FATAL: sorry, too many clients already in postgres

后端 未结 2 829
别跟我提以往
别跟我提以往 2020-12-16 03:15

I am using a database in PostgreSQL 9.1,in which entry are coming continuously from another program . I am sending request from Ajax after 6 sec to fetch the latest entry.to

2条回答
  •  太阳男子
    2020-12-16 03:46

    You can increase the max_connections in postgres, that is not the solution though. You have resource leaks. It could be any - connection not closed, result set not closed. Please go back and check the code.

    Consider using a connection pooling library like c3p0/BoneCp

    A general discussion on connection pooling is here (Thanks to @sinisa229 mihajlovski)

提交回复
热议问题