innodb_thread_concurrency & innodb_concurrency_tickets

1. innodb_thread_concurrency

 

Command-Line Format--innodb-thread-concurrency=#
System Variableinnodb_thread_concurrency
ScopeGlobal
DynamicYes
SET_VAR Hint AppliesNo
TypeInteger
Default Value0
Minimum Value0
Maximum Value1000

Defines the maximum number of threads permitted inside of InnoDB. A value of 0 (the default) is interpreted as infinite concurrency (no limit). This variable is intended for performance tuning on high concurrency systems.

InnoDB tries to keep the number of threads inside InnoDB less than or equal to the innodb_thread_concurrency limit. Once the limit is reached, additional threads are placed into a “First In, First Out” (FIFO) queue for waiting threads. Threads waiting for locks are not counted in the number of concurrently executing threads.

The correct setting depends on workload and computing environment. Consider setting this variable if your MySQL instance shares CPU resources with other applications or if your workload or number of concurrent users is growing. Test a range of values to determine the setting that provides the best performance. innodb_thread_concurrency is a dynamic variable, which permits experimenting with different settings on a live test system. If a particular setting performs poorly, you can quickly set innodb_thread_concurrency back to 0.

Use the following guidelines to help find and maintain an appropriate setting:

  • If the number of concurrent user threads for a workload is consistently small and does not affect performance, set innodb_thread_concurrency=0 (no limit).

  • If your workload is consistently heavy or occasionally spikes, set an innodb_thread_concurrency value and adjust it until you find the number of threads that provides the best performance. For example, suppose that your system typically has 40 to 50 users, but periodically the number increases to 60, 70, or more. Through testing, you find that performance remains largely stable with a limit of 80 concurrent users. In this case, set innodb_thread_concurrency to 80.

  • If you do not want InnoDB to use more than a certain number of virtual CPUs for user threads (20 virtual CPUs, for example), set innodb_thread_concurrency to this number (or possibly lower, depending on performance testing). If your goal is to isolate MySQL from other applications, consider binding the mysqld process exclusively to the virtual CPUs. Be aware, however, that exclusive binding can result in non-optimal hardware usage if the mysqld process is not consistently busy. In this case, you can bind the mysqld process to the virtual CPUs but allow other applications to use some or all of the virtual CPUs.

    Note

    From an operating system perspective, using a resource management solution to manage how CPU time is shared among applications may be preferable to binding the mysqld process. For example, you could assign 90% of virtual CPU time to a given application while other critical processes are not running, and scale that value back to 40% when other critical processes are running.

 

2. innodb_concurrency_tickets

Command-Line Format--innodb-concurrency-tickets=#
System Variableinnodb_concurrency_tickets
ScopeGlobal
DynamicYes
SET_VAR Hint AppliesNo
TypeInteger
Default Value5000
Minimum Value1
Maximum Value4294967295

Determines the number of threads that can enter InnoDB concurrently. A thread is placed in a queue when it tries to enter InnoDB if the number of threads has already reached the concurrency limit. When a thread is permitted to enter InnoDB, it is given a number of “ tickets” equal to the value of innodb_concurrency_tickets, and the thread can enter and leave InnoDB freely until it has used up its tickets. After that point, the thread again becomes subject to the concurrency check (and possible queuing) the next time it tries to enter InnoDB. The default value is 5000.

With a small innodb_concurrency_tickets value, small transactions that only need to process a few rows compete fairly with larger transactions that process many rows. The disadvantage of a small innodb_concurrency_tickets value is that large transactions must loop through the queue many times before they can complete, which extends the amount of time required to complete their task.

With a large innodb_concurrency_tickets value, large transactions spend less time waiting for a position at the end of the queue (controlled by innodb_thread_concurrency) and more time retrieving rows. Large transactions also require fewer trips through the queue to complete their task. The disadvantage of a large innodb_concurrency_tickets value is that too many large transactions running at the same time can starve smaller transactions by making them wait a longer time before executing.

With a nonzero innodb_thread_concurrency value, you may need to adjust the innodb_concurrency_tickets value up or down to find the optimal balance between larger and smaller transactions. The SHOW ENGINE INNODB STATUS report shows the number of tickets remaining for an executing transaction in its current pass through the queue. This data may also be obtained from the TRX_CONCURRENCY_TICKETS column of the INFORMATION_SCHEMA.INNODB_TRX table.

For more information, see Section 15.8.4, “Configuring Thread Concurrency for InnoDB”.

 

3.示例演示

3.1 查看当前实例这两个参数值

mysql> show variables like '%concurrency%';
+----------------------------+-------+
| Variable_name              | Value |
+----------------------------+-------+
| innodb_commit_concurrency  | 0     |
| innodb_concurrency_tickets | 5000  |
| innodb_thread_concurrency  | 64    |
+----------------------------+-------+

3.2 查看大并发下实例 show engine innodb status\G;输出(TRANSACTIONS部分)

#为了信息安全,下面信息中的,用户名,表名,以及 插入的 values 值都做了处理

下面的信息很长,所以此处直接总结最有用的信息:

1) not started sleeping before entering InnoDB

表示有线程正在等待进入 innodb 引擎(也就是说现在innodb 引擎正在处理的线程数已经达到了innodb_thread_concurrency设定值)

2)

---TRANSACTION 4335034500, ACTIVE 2 sec inserting, thread declared inside InnoDB 4998 
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1
MySQL thread id 4902853, OS thread handle 140350903908096, query id 1674105764 10.185.212.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......

表示该线程已经使用了两个 innodb_concurrency_tickets (默认 innodb_concurrency_tickets 值为5000 ,而thread declared inside InnoDB 4998 ,5000-4998=2),(undo log entries) + (thread declared inside InnoDB) 有时等于5000,有时等于4999。(等于4999的情况,我猜测是线程已经拿到第二个ticket,开始处理第二行,但是第二行的undo还没有生成)

下面的输出中有64个线程持有ticket (统计 thread declared inside InnoDB 出现64次),正好等于innodb_thread_concurrency参数设置的值,所以我们能看到有些事务处于 not started sleeping before entering InnoDB 状态

3) ---TRANSACTION 4335034498, ACTIVE (PREPARED) 3 sec
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1
MySQL thread id 4902861, OS thread handle 140347197286144, query id 1674105749 10.185.212.15 test_user waiting for handler commit

表示该事务正在提交,处于该状态下的线程是不计算在innodb_thread_concurrency中(这里我们看到该线程已经处于提交状态3s,这是有问题的)

 

 

------------
TRANSACTIONS
------------
Trx id counter 4335034501
Purge done for trx's n:o < 4333496830 undo n:o < 769 state: running
History list length 108123
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 421834812531440, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812545392, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812520976, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812543648, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812541904, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812541032, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812537544, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812536672, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812534056, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812532312, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812527952, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812524464, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812523592, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812522720, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812521848, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812520104, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812509640, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812501792, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812495688, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812492200, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812490456, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812488712, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812482608, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812480864, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812479992, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812479120, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812478248, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812475632, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812474760, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812471272, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812468656, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812458192, not started sleeping before entering InnoDB
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421834812377096, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
.......
.......
.......
---TRANSACTION 4335034500, ACTIVE 2 sec inserting, thread declared inside InnoDB 4998
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1
MySQL thread id 4902853, OS thread handle 140350903908096, query id 1674105764 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034499, ACTIVE 2 sec inserting, thread declared inside InnoDB 4941
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 58
MySQL thread id 4902814, OS thread handle 140355443263232, query id 1674105767 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
    
---TRANSACTION 4335034498, ACTIVE (PREPARED) 3 sec
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1
MySQL thread id 4902861, OS thread handle 140347197286144, query id 1674105749 10.188.202.15 test_user waiting for handler commit
insert into t_table_2 (id, check_date, account_id, 
      currency_type, account_key_code, amount_type, 
      amount, balance_before, balance_after, 
      balance_type, trade_type, fee_type, 
      transaction_time, transaction_no, transfer_from, 
      transfer_to, out_order_no, source, 
      create_time, extend)
    values ......
---TRANSACTION 4335034497, ACTIVE (PREPARED) 3 sec
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1
MySQL thread id 4902860, OS thread handle 140350896535296, query id 1674105750 10.188.202.15 test_user waiting for handler commit
insert into t_table_3 (quota_id, check_date, wallet_type, 
      ent_id, limit_tier, tier_id, 
      tier_key, used_balance, transaction_time, 
      create_time, update_time)
    values ......
---TRANSACTION 4335034496, ACTIVE 3 sec inserting, thread declared inside InnoDB 4977
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 22
MySQL thread id 4902851, OS thread handle 140350921602816, query id 1674105782 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
---TRANSACTION 4335034495, ACTIVE 3 sec, thread declared inside InnoDB 4999
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1
MySQL thread id 4902840, OS thread handle 140355060082432, query id 1674104952 10.188.202.15 test_user update
insert into t_table_4 (debt_id, check_date, account_id,
    currency_type, wallet_type, amount,
    fee_type, trade_type, debt_status,
    debt_time, platform_account_id, source,
    extend, create_time, create_by,
    update_time, update_by)
    values ......
      
---TRANSACTION 4335034492, ACTIVE 3 sec inserting, thread declared inside InnoDB 4909
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 90
MySQL thread id 4902809, OS thread handle 140350908036864, query id 1674105557 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034490, ACTIVE 3 sec inserting, thread declared inside InnoDB 4947
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 52
MySQL thread id 4902411, OS thread handle 140355058902784, query id 1674105784 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034487, ACTIVE 3 sec inserting, thread declared inside InnoDB 4785
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 214
MySQL thread id 4902427, OS thread handle 140350917768960, query id 1674105544 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034486, ACTIVE 3 sec, thread declared inside InnoDB 4999
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1
MySQL thread id 4902835, OS thread handle 140350900958976, query id 1674104772 10.188.202.15 test_user update
insert into t_table_5 (account_id, currency_type, check_date,
    account_name, balance, locking,
    status, transaction_time, create_time
    )
    values ......
      
---TRANSACTION 4335034485, ACTIVE 3 sec inserting, thread declared inside InnoDB 4724
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 275
MySQL thread id 4902790, OS thread handle 140350918063872, query id 1674105734 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......

---TRANSACTION 4335034484, ACTIVE 3 sec inserting, thread declared inside InnoDB 4699
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 300
MySQL thread id 4483274, OS thread handle 140346778449664, query id 1674105781 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034483, ACTIVE 3 sec inserting, thread declared inside InnoDB 4756
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 244
MySQL thread id 4902803, OS thread handle 140355445032704, query id 1674105774 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      

---TRANSACTION 4335034482, ACTIVE 3 sec inserting, thread declared inside InnoDB 4691
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 308
MySQL thread id 4902777, OS thread handle 140350900664064, query id 1674105761 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034481, ACTIVE 3 sec inserting, thread declared inside InnoDB 4734
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 265
MySQL thread id 4902436, OS thread handle 140355054479104, query id 1674105535 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034480, ACTIVE 3 sec inserting, thread declared inside InnoDB 4693
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 306
MySQL thread id 4902424, OS thread handle 140349534279424, query id 1674105768 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034479, ACTIVE 12 sec inserting, thread declared inside InnoDB 4443
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 556
MySQL thread id 4902799, OS thread handle 140355438839552, query id 1674105596 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......

---TRANSACTION 4335034478, ACTIVE 12 sec inserting, thread declared inside InnoDB 4264
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 736
MySQL thread id 4902820, OS thread handle 140350925895424, query id 1674105736 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034477, ACTIVE 13 sec inserting, thread declared inside InnoDB 4664
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 335
MySQL thread id 4902800, OS thread handle 140355639891712, query id 1674105674 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034476, ACTIVE 13 sec inserting, thread declared inside InnoDB 4581
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 419
MySQL thread id 4902857, OS thread handle 140359827576576, query id 1674105067 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034473, ACTIVE 13 sec inserting, thread declared inside InnoDB 4298
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 702
MySQL thread id 4902775, OS thread handle 140347177953024, query id 1674105501 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034472, ACTIVE 13 sec inserting, thread declared inside InnoDB 4284
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 716
MySQL thread id 4902410, OS thread handle 140350895945472, query id 1674105652 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034471, ACTIVE 13 sec inserting, thread declared inside InnoDB 4038
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 961
MySQL thread id 4902428, OS thread handle 140355052119808, query id 1674105515 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034470, ACTIVE 13 sec inserting, thread declared inside InnoDB 4120
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 879
MySQL thread id 4902773, OS thread handle 140355050940160, query id 1674105640 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034469, ACTIVE 13 sec inserting, thread declared inside InnoDB 4210
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 789
MySQL thread id 4902793, OS thread handle 140349532477184, query id 1674105495 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034468, ACTIVE 13 sec inserting, thread declared inside InnoDB 3856
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1144
MySQL thread id 4902778, OS thread handle 140350918948608, query id 1674105723 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034465, ACTIVE 13 sec inserting, thread declared inside InnoDB 4217
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 782
MySQL thread id 4902771, OS thread handle 140355441198848, query id 1674105512 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034464, ACTIVE 13 sec inserting, thread declared inside InnoDB 3918
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1082
MySQL thread id 4902417, OS thread handle 140355058312960, query id 1674105534 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034463, ACTIVE 13 sec inserting, thread declared inside InnoDB 4095
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 905
MySQL thread id 4902811, OS thread handle 140355048285952, query id 1674105559 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034462, ACTIVE 13 sec inserting, thread declared inside InnoDB 3505
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1495
MySQL thread id 4902788, OS thread handle 140355045304064, query id 1674105537 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034461, ACTIVE 13 sec inserting, thread declared inside InnoDB 4175
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 825
MySQL thread id 4902815, OS thread handle 140350921012992, query id 1674105513 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034459, ACTIVE 14 sec inserting, thread declared inside InnoDB 4234
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 765
MySQL thread id 4902798, OS thread handle 140355048875776, query id 1674105689 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034458, ACTIVE 14 sec inserting, thread declared inside InnoDB 4041
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 959
MySQL thread id 4902818, OS thread handle 140350910396160, query id 1674105638 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034455, ACTIVE 14 sec inserting, thread declared inside InnoDB 4172
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 828
MySQL thread id 4902396, OS thread handle 140350926190336, query id 1674105685 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034454, ACTIVE 15 sec inserting, thread declared inside InnoDB 4372
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 627
MySQL thread id 4902813, OS thread handle 140350920718080, query id 1674105642 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034453, ACTIVE 15 sec inserting, thread declared inside InnoDB 4104
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 896
MySQL thread id 4902819, OS thread handle 140350898599680, query id 1674105502 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034452, ACTIVE 15 sec inserting, thread declared inside InnoDB 4209
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 791
MySQL thread id 4902774, OS thread handle 140350908921600, query id 1674105511 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034450, ACTIVE 15 sec inserting, thread declared inside InnoDB 3907
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1092
MySQL thread id 4902805, OS thread handle 140347197875968, query id 1674105504 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034449, ACTIVE 15 sec inserting, thread declared inside InnoDB 3987
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1012
MySQL thread id 4902849, OS thread handle 140350910691072, query id 1674105510 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034448, ACTIVE 15 sec inserting, thread declared inside InnoDB 4047
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 952
MySQL thread id 4902850, OS thread handle 140355059787520, query id 1674105636 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034447, ACTIVE 15 sec inserting, thread declared inside InnoDB 3879
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1121
MySQL thread id 4902817, OS thread handle 140355045598976, query id 1674105536 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034446, ACTIVE 15 sec inserting, thread declared inside InnoDB 3749
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1250
MySQL thread id 4902423, OS thread handle 140349533984512, query id 1674105497 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034439, ACTIVE 17 sec inserting, thread declared inside InnoDB 3831
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1168
MySQL thread id 4902795, OS thread handle 140350915409664, query id 1674105542 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034438, ACTIVE 18 sec inserting, thread declared inside InnoDB 3609
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1391
MySQL thread id 4902441, OS thread handle 140350915114752, query id 1674105505 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034437, ACTIVE 18 sec inserting, thread declared inside InnoDB 3917
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1082
MySQL thread id 4902772, OS thread handle 140350895355648, query id 1674105494 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034436, ACTIVE 18 sec inserting, thread declared inside InnoDB 3325
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1674
MySQL thread id 4902789, OS thread handle 140350908626688, query id 1674105492 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034435, ACTIVE 18 sec inserting, thread declared inside InnoDB 3937
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1062
MySQL thread id 4902787, OS thread handle 140350905382656, query id 1674105488 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034429, ACTIVE 18 sec inserting, thread declared inside InnoDB 3724
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1276
MySQL thread id 4902839, OS thread handle 140355049465600, query id 1674104771 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034428, ACTIVE 18 sec inserting, thread declared inside InnoDB 3271
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1729
MySQL thread id 4902866, OS thread handle 140355445917440, query id 1674105059 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034427, ACTIVE 18 sec inserting, thread declared inside InnoDB 3443
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1556
MySQL thread id 4902398, OS thread handle 140355051235072, query id 1674105459 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034426, ACTIVE 18 sec inserting, thread declared inside InnoDB 3333
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1667
MySQL thread id 4902792, OS thread handle 140347177363200, query id 1674105463 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034425, ACTIVE 18 sec inserting, thread declared inside InnoDB 3441
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1558
MySQL thread id 4902425, OS thread handle 140359806269184, query id 1674105462 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034423, ACTIVE 19 sec inserting, thread declared inside InnoDB 3502
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1498
MySQL thread id 4902783, OS thread handle 140355053299456, query id 1674105457 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034422, ACTIVE 19 sec inserting, thread declared inside InnoDB 3044
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1955
MySQL thread id 4902816, OS thread handle 140347177658112, query id 1674105452 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      

---TRANSACTION 4335034421, ACTIVE 19 sec inserting, thread declared inside InnoDB 3165
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1834
MySQL thread id 4902779, OS thread handle 140347126028032, query id 1674105455 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034420, ACTIVE 19 sec inserting, thread declared inside InnoDB 3260
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1740
MySQL thread id 4902435, OS thread handle 140355052709632, query id 1674105453 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034418, ACTIVE 19 sec inserting, thread declared inside InnoDB 3097
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1902
MySQL thread id 4902855, OS thread handle 140347174971136, query id 1674105404 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034414, ACTIVE 19 sec inserting, thread declared inside InnoDB 3112
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1888
MySQL thread id 4902791, OS thread handle 140358258112256, query id 1674105405 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034408, ACTIVE 19 sec inserting, thread declared inside InnoDB 3224
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1775
MySQL thread id 4902827, OS thread handle 140359806859008, query id 1674105371 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......

---TRANSACTION 4335034407, ACTIVE 19 sec inserting, thread declared inside InnoDB 3058
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1942
MySQL thread id 4902776, OS thread handle 140347174676224, query id 1674105370 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034406, ACTIVE 19 sec inserting, thread declared inside InnoDB 3044
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1956
MySQL thread id 4902802, OS thread handle 140355439724288, query id 1674105408 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034405, ACTIVE (PREPARED) 19 sec
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 2000
MySQL thread id 4902440, OS thread handle 140359807448832, query id 1674105389 10.188.202.15 test_user waiting for handler commit
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034403, ACTIVE 20 sec inserting, thread declared inside InnoDB 3105
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1894
MySQL thread id 4902796, OS thread handle 140355640186624, query id 1674105406 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034401, ACTIVE (PREPARED) 20 sec
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 2000
MySQL thread id 4902782, OS thread handle 140350912460544, query id 1674105368 10.188.202.15 test_user waiting for handler commit
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034395, ACTIVE 20 sec inserting, thread declared inside InnoDB 3179
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1821
MySQL thread id 4902854, OS thread handle 140350905677568, query id 1674105394 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034394, ACTIVE 20 sec inserting, thread declared inside InnoDB 3300
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1699
MySQL thread id 4902415, OS thread handle 140350898304768, query id 1674105390 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034393, ACTIVE 20 sec inserting, thread declared inside InnoDB 3199
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1800
MySQL thread id 4902856, OS thread handle 140350913345280, query id 1674105045 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034389, ACTIVE (PREPARED) 20 sec
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 2000
MySQL thread id 4902859, OS thread handle 140355642840832, query id 1674105361 10.188.202.15 test_user waiting for handler commit
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034384, ACTIVE 20 sec inserting, thread declared inside InnoDB 3197
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 1802
MySQL thread id 4902825, OS thread handle 140355640776448, query id 1674104980 10.188.202.15 test_user update
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......
      
---TRANSACTION 4335034383, ACTIVE (PREPARED) 20 sec
mysql tables in use 1, locked 1
1 lock struct(s), heap size 1136, 0 row lock(s), undo log entries 2000
MySQL thread id 4902426, OS thread handle 140350921307904, query id 1674105342 10.188.202.15 test_user waiting for handler commit
insert into t_table_1 (account_id, uid, check_date,
      wallet_type, create_time)
    values ......

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

渔夫数据库笔记

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值