基于postgres数据库:

查看连接数:

select count(1) from pg_stat_activity;

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

查看保留连接数:
show superuser_reserved_connections;

 

查看连接的客户端信息:

SELECT * FROM pg_stat_activity;

相关文章: