Transaction status: "not started sleeping before entering InnoDB"

(Doc ID 2412577.1)

Last updated on JUNE 24, 2018

Applies to:

MySQL Server - Version 5.6 to 5.7 [Release 5.6 to 5.7]
Information in this document applies to any platform.

Symptoms

If check the innodb engine status we can see many transactions are in status :

"--TRANSACTION xxxxxxxx, not started sleeping before entering InnoDB"

or

"---TRANSACTION xxxxxxxx, not started committing, thread declared inside InnoDB"

And Innodb queue is busy:

"

--------------
ROW OPERATIONS
--------------
16 queries inside InnoDB, 9447 queries in queue
15 read views open inside InnoDB

"

Changes

 Set innodb_thread_concurrency to 16 in this case.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms