My Oracle Support Banner

How To Find Queries Taking Longer Than N Seconds? (Doc ID 2076876.1)

Last updated on SEPTEMBER 04, 2023

Applies to:

MySQL Server - Version 5.1 and later
Information in this document applies to any platform.


Learn how to find queries taking more than a given amount of time to complete.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 The Sys Schema session View
 The Performance Schema threads table
 The Information Schema PROCESSLIST table

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.