Bug #54063 | huge SQL fails to execute via proxy | ||
---|---|---|---|
Submitted: | 28 May 2010 12:08 | Modified: | 31 May 2010 16:44 |
Reporter: | Andrii Nikitin | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Enterprise Monitor: Agent | Severity: | S1 (Critical) |
Version: | 2.2.1.1717 | OS: | Any |
Assigned to: | Jan Kneschke | CPU Architecture: | Any |
[28 May 2010 12:08]
Andrii Nikitin
[31 May 2010 16:43]
Enterprise Tools JIRA Robot
Jan Kneschke writes: Can't get it to crash on Mac OS X 10.6 x86_64. Used the script to generate the 21MByte INSERT statement and raise the max_allowed_packet on the MySQL Server side with: SET GLOBAL max_allowed_packet = 32 * 1024 * 1024; and used the same on the client side: /opt/local/bin/mysql5 test --host=127.0.0.1 --port=4040 --max_allowed_packet=`perl -e 'print 32 * 1024 * 1024'` < o.sql
[1 Jun 2010 19:02]
Diego Medina
I tried 2.2.1.1717 and was unable to reproduce the bug, could you try running the agent under gdb? Maybe that would give us more information and it would also explain why you see the crash but we do not. See https://inside.mysql.com/wiki/ET:QAdebugCrash#Using_gdb_.28.2AUnix.29 for information about how to run the agent under gdb (Note the 2.2 agent section)
[1 Jun 2010 19:21]
Diego Medina
Thanks to your bug report I found http://bugs.mysql.com/bug.php?id=54157
[1 Jun 2010 20:07]
Andrii Nikitin
Detailed analysis of testcase shows that crash happened because of lack of virtual memory. Agent memory usage increases to 1.4G for processing 21M query. Leaving in "Can't repeat" state.
[3 Jun 2010 18:23]
Enterprise Tools JIRA Robot
Diego Medina writes: Just as a reference: The agent starts at 4-5MB of ram if you send a 1MB insert, the agent will go to 35MB If you send a 21MB file, it will reach about 650MB This is not using ssl and no other query was going through the proxy port.
[7 Jun 2010 19:03]
Andrii Nikitin
submitted bug 54304 related to agent memory usage when QUAN is enabled