Bug #19439 | Client gobbles up all memory on BLOB select | ||
---|---|---|---|
Submitted: | 29 Apr 2006 22:49 | Modified: | 13 Jun 2006 13:48 |
Reporter: | Bill Conlon | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 4.1.18 | OS: | Linux (Fedora Core 4) |
Assigned to: | CPU Architecture: | Any |
[29 Apr 2006 22:49]
Bill Conlon
[1 May 2006 22:08]
Bill Conlon
Same behavior with 4.1.18-1 #rpm -q mysql-server mysql-server-4.1.18-1.fc4.remi # rpm -q mysql mysql-4.1.18-1.fc4.remi
[1 May 2006 22:10]
Bill Conlon
no change after upgrade to mysql-4.1.18-1.fc4
[2 May 2006 15:01]
MySQL Verification Team
Thank you for the bug report. Could you please test starting the mysql client with the option --quick. Thanks in advance.
[2 May 2006 16:14]
Bill Conlon
--quick seems to work, or at least doesn't gobble memory. It's still writing hyphens to the terminal (I guess to represent binary). My app connects via ODBC. I'll read the docs to see how to set this option, test that way, and report back.
[2 May 2006 16:41]
Bill Conlon
Don't see an option parameter to use --quick from ODBC. My application returns the following error: [MySQL][ODBC 3.51 Driver][mysqld-4.1.18-log]MySQL client run out of memory # rpm -q unixODBC unixODBC-2.2.11-3.FC4.1 # rpm -q MyODBC MyODBC-3.51.09-1
[2 May 2006 17:19]
MySQL Verification Team
Please try the flag: Don't Cache Results. Thanks in advance.
[2 May 2006 18:08]
Bill Conlon
Added to /etc/odbc.ini Option =1048576 This caused my application to consume all RAM (1GB) and had 2GB swap when I killed it.
[30 May 2006 16:25]
MySQL Verification Team
Thank you for the feedback. Besides that option you mentioned try the below option together: http://dev.mysql.com/doc/refman/4.1/en/connection-parameters.html 2097152 Force the use of Forward-only cursor type. In case of applications setting the default static/dynamic cursor type, and one wants the driver to use non-cache result sets, then this option ensures the forward-only cursor behavior.
[12 Jun 2006 17:23]
Bill Conlon
Option = 2097152 works. thanks.
[13 Jun 2006 13:48]
MySQL Verification Team
Thank you for the feedback. I am closing this bug report as not a bug.