預設會話數最大值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')