基于postgres数据库:

查看连接数:

select count(1) from pg_stat_activity;

查看最大连接数值:
show max_connections;

查看保留连接数:
show superuser_reserved_connections;

 

查看连接的客户端信息:

SELECT * FROM pg_stat_activity;

相关文章:

  • 2022-12-23
  • 2021-07-01
  • 2021-11-23
  • 2022-12-23
  • 2021-10-26
  • 2022-01-17
猜你喜欢
  • 2021-12-02
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案