| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | Alex Burton | Date: | October 3 2006 1:36am |
| Subject: | mysql++ memory usage | ||
| View as plain text | |||
Hello,
I have a simple logging application that needs to be able to run unattended and reliably
for as long as possible.
The memory that it uses is increasing as it runs.
Here is an simplified example that reproduces the problem.
int main()
{
while (true)
{
Connection c;
c.connect("database","localhost","user","pass");
Query q = c.query();
q << "INSERT INTO table_name (field_1 , field_2) VALUES ( 1 , 2 ) ;";
q.execute();
}
}
This memory usage of this program gradually rises over time, and has reached tens of
megabytes.
It makes no difference if I move the connection out of the loop.
I don't think that it is a memory 'leak' as leak detectors can't find any leaks.
Is this normal ?
Alex
| Thread | ||
|---|---|---|
| • mysqlpp and wchar_t problem | gani b. c. | 2 Oct |
| • Re: mysqlpp and wchar_t problem | Warren Young | 2 Oct |
| • mysql++ memory usage | Alex Burton | 3 Oct |
| • Re: mysql++ memory usage | Warren Young | 4 Oct |
| • Re: mysql++ memory usage | Bill K | 4 Oct |
| • Re: mysql++ memory usage | Alex Burton | 4 Oct |
| • Re: mysql++ memory usage | Warren Young | 4 Oct |
| • Re: mysql++ memory usage | Bill K | 5 Oct |
| • Re: mysql++ memory usage | Warren Young | 5 Oct |
| • Re: mysql++ memory usage | Alex Burton | 6 Oct |
| • Re: mysql++ memory usage | Alex Burton | 6 Oct |
| • RE: mysql++ memory usage | Matt Dargavel | 6 Oct |
| • Re: mysql++ memory usage | Warren Young | 6 Oct |
| • Re: mysql++ memory usage | Alex Burton | 7 Oct |
| • Re: mysql++ memory usage | Warren Young | 7 Oct |
| • Re: mysql++ memory usage | Matt Dargavel | 7 Oct |
| • Re: mysql++ memory usage | Warren Young | 12 Oct |
| • Exporting classes | Matt Dargavel | 19 Oct |
| • Re: Exporting classes | Warren Young | 20 Oct |
| • RE: Exporting classes | Matt Dargavel | 20 Oct |
| • Re: mysql++ memory usage | Carlos Flores | 4 Oct |
| • Re: mysqlpp and wchar_t problem | gani b. c. | 3 Oct |
