Error in Virtual User 2: can't read "RAISEERROR": no such variable #364
-
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Refer to https://github.com/TPC-Council/HammerDB/blob/master/config/mysql.xml
The default value of mysql_async_client is 10, is above issue regarding to the client count? |
Beta Was this translation helpful? Give feedback.
-
This is not correct
settings should be true or false |
Beta Was this translation helpful? Give feedback.
-
Try troubleshooting first without your wrapper script. |
Beta Was this translation helpful? Give feedback.
-
Could you pls. show an example of mysqlcpool..xml, since my hammerdb program entrance is hammerdbcli as follows, how can I edit the mysqlcpool.xml? echo "===Stage 1: Build schema started===" echo "===Stage 2: Run timer started" |
Beta Was this translation helpful? Give feedback.
-
OK, there is an issue here that needs to be fixed, that is triggered by an error in configuration. So if you fix the configuration error, then it will not cause the issue. To edit the connect pool parameters simply use any text editor. You would want to use this typically in a clustered environment, however for testing as an example below I have already created 3 databases on the same server and my transactions will round-robin between them.
So if you configure the connect pool correctly and increase your max_connections above the number of sessions you want to allow to connect (and prepared statements is likely to be another limit). Then you should not see the issue error.
However, the issue in HammerDB is shown in the example below. In ConnectToMySQLAsynch if it catches an error it checks the RAISEERROR variable that is not set local to the proc - so this is why the "can't read "RAISEERROR": no such variable" error is seen first. As we have multiple asynchronous clients and don't want it to error here just report the error then the if $RAISEERROR can be removed .
|
Beta Was this translation helpful? Give feedback.
OK, there is an issue here that needs to be fixed, that is triggered by an error in configuration. So if you fix the configuration error, then it will not cause the issue.
The error message you see is that an error is triggered, however it cannot see the RAISEERROR variable so you see this error first before the actual error - this is what will be fixed.
What is most likely the cause is that you trigger the Too many connections MySQL error as follows:
Error in Virtual User 6: vuser6:ac10:socket login failed:mysqlconnect/db server: Too many connections
This is because with the connect pool and asynchronous clients each asynchronous client will create all of the connect pool connections act…