Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sysbench FATAL: mysql_stmt_prepare() failed #25

Closed
dingyuan408 opened this issue Apr 7, 2021 · 2 comments
Closed

sysbench FATAL: mysql_stmt_prepare() failed #25

dingyuan408 opened this issue Apr 7, 2021 · 2 comments

Comments

@dingyuan408
Copy link
Collaborator

dingyuan408 commented Apr 7, 2021

1、准备
sysbench /usr/share/sysbench/oltp_read_write.lua --mysql-port=30160 --mysql-db=test_db --mysql-user=usr --mysql-password=123456 --table_size=400000 --tables=8 --threads=256 --events=0 --report-interval=10 --time=600 --mysql-host=192.168.0.3 --table_size=400000 prepare
2、运行
sysbench /usr/share/sysbench/oltp_read_write.lua --mysql-port=30160 --mysql-db=test_db --mysql-user=usr --mysql-password=123456 --table_size=400000 --tables=8 --threads=256 --events=0 --report-interval=10 --time=600 --mysql-host=192.168.0.3 --table_size=400000 run
max\u prepared\u stmt\u count个语句(当前值:16382)会报错

FATAL: mysql_stmt_prepare() failed
FATAL: MySQL error: 1461 "Can't create more than max_prepared_stmt_count statements (current value: 16382)"
FATAL: `thread_init' function failed: /usr/share/sysbench/oltp_common.lua:275: SQL API error
FATAL: mysql_stmt_prepare() failed

sysbench /usr/share/sysbench/oltp_read_write.lua --mysql-port=30160 --mysql-db=test_db --mysql-user=usr --mysql-password=123456 --table_size=400000 --tables=8 --threads=256 --events=0 --report-interval=10 --time=600 --mysql-host=192.168.0.3 --table_size=400000 cleanup

image

@hustjieke hustjieke changed the title show global status like ‘com_stmt%’; sysbench FATAL: mysql_stmt_prepare() failed Apr 7, 2021
@andyli029
Copy link
Contributor

Can't create more than max_prepared_stmt_count statements (current value: 16382)

@hustjieke hustjieke reopened this Apr 8, 2021
@hustjieke
Copy link
Contributor

var Com_stmt_prepare not same on master/slave node.
on master:
image
on slave:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants