默认会话数最大值55,如果超过了,就会报如下错误:
com.vertica.support.exceptions.NonTransientConnectionException: [Vertica][VJDBC](4060) FATAL: New session rejected due to limit, already 55 sessions active
查看最大会话数:
SELECT GET_CONFIG_PARAMETER ('MaxClientSessions');
设置最大会话数:
SELECT SET_CONFIG_PARAMETER ('MaxClientSessions', 100);
查看当前值正在执行的会话:
select * from query_requests where is_executing='true'
根据session_id关闭指定会话:
select CLOSE_SESSION ( 'verdb-1091.eastmone-143932:0x35909')