I have a tiny script that just opens a database connection and then
repeats:
1) do a query and free the response, and
2) sleep for a few seconds.
Note that this is not using ActiveRecord or any other Rails bits, but
just the straight ruby-mysql bindings. Also note that in this particular
test, the response is always empty; there are no records that match the
query.
The application memory increases over time, so that within a few hours,
it's consuming hundreds of Mb. Anyone else seen this? Is it a version
problem?
Thanks,
Aaron
Versions:
ruby 1.8.7 (2009-04-08 patchlevel 160) [x86_64-linux]
*** LOCAL GEMS ***
mysql (2.7)
Linux version 2.6.24-23-xen (buildd@crested) (gcc version 4.2.3 (Ubuntu
4.2.3-2ubuntu7)) #1 SMP Mon Jan 26 03:09:12 UTC 2009
mysql Server version 5.0.51a-3ubuntu5.4
···
--
Posted via http://www.ruby-forum.com/.