for (int i = 0; i < 1000000; i++)
{
......
if (ThreadExeSQL...)
{
......
continue; // this line change to continue; code copy with a little mistake.
}
}
CentOS6.9 (MySql v5.7.22) use mysql C API mysql_real_query cause the memory always
I test the mysql_real_quer y API, I just loop to execute Sql syntax ,like 'UPDATE ** SET **' there is a leak memory bug occur. when I use 'top' to check the bug, I find the system 'used memory' option will always growing until the system or process crush. but 'mysqld' and 'testsql' processes's %MEM option has not increase, System free memory look like disappear. I try to force kill the 'testsql' process but the memory still be used and can not be...
Leave a comment: