sometimes BPC server has some dead loop mdx query that run a few hours, make the server cpu 90% busy, and active thread is more than 9. to identify those dead loop mdx sessions, run the following mdx query.
select session_connection_id,session_user_name,
session_start_time ,session_last_command_start_time as cmd_start_time,session_last_command_end_time as cmd_end_time,
session_last_command_elapsed_time_ms as cmd_elapsed_time_ms,session_idle_time_ms,session_last_command FROM $SYSTEM.DISCOVER_SESSIONS
pay attention to those that have 0 session_idle_time_ms and big cmd_elapsed_time_ms, pick up there connection_id and kill them.
to kill the sesion, run
(Cancel xmlns="http://schemas.microsoft.com/analysisservices/2003/engine")
(ConnectionID)
replace_with_id_number
(/ConnectionID)
(/Cancel)
select session_connection_id,session_user_name,
session_start_time ,session_last_command_start_time as cmd_start_time,session_last_command_end_time as cmd_end_time,
session_last_command_elapsed_time_ms as cmd_elapsed_time_ms,session_idle_time_ms,session_last_command FROM $SYSTEM.DISCOVER_SESSIONS
pay attention to those that have 0 session_idle_time_ms and big cmd_elapsed_time_ms, pick up there connection_id and kill them.
to kill the sesion, run
(Cancel xmlns="http://schemas.microsoft.com/analysisservices/2003/engine")
(ConnectionID)
replace_with_id_number
(/ConnectionID)
(/Cancel)
Comments
Post a Comment