Re: Memory growth observed with C++ application consuming libpq.dll on Windows
От | Rajesh Kokkonda |
---|---|
Тема | Re: Memory growth observed with C++ application consuming libpq.dll on Windows |
Дата | |
Msg-id | CAM4OfG0TXww-n_YZ0thG_OnS9RanV06uOeZUdTR2QsAEW3XhzA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Memory growth observed with C++ application consuming libpq.dll on Windows (Ranier Vilela <ranier.vf@gmail.com>) |
Ответы |
Re: Memory growth observed with C++ application consuming libpq.dll on Windows
|
Список | pgsql-hackers |
We did run our application under valgrind on Linux. We did not see any leaks. There is no platform dependent code in our application. We are seeing gradual memory growth only on windows.
That is what lead me to believe the leak may be present in postgresql. I will run under available memory tools on windows and get back to you.
I will also try to create a sample and see if I can reproduce the problem.
Thanks,
Rajesh
On Fri, 2 Aug 2024, 21:45 Ranier Vilela, <ranier.vf@gmail.com> wrote:
Em sex., 2 de ago. de 2024 às 11:54, Rajesh Kokkonda <rajeshk.kokkonda@gmail.com> escreveu:It is highly likely that the memory consumption is caused by your application.Okay. I will try to create one sample program and send it to you sometime next week. In the meantime, I am listing down all the methods we are consuming from libpq.PQconnectdbParams
PQstatus
PQerrorMessage
PQpingParams
PQfinish
PQresultStatus
PQclear
PQsetSingleRowMode
PQntuples
PQnfields
PQftype
PQgetvalue
PQgetlength
PQgetisnull
PQgetCancel
PQfreeCancel
PQcancel
PQsetErrorVerbosity
PQsendPrepare
PQsendQueryPrepared
PQgetResult
PQconsumeInput
PQisBusy
PQsetnonblocking
PQflush
PQsocket
PQtransactionStatus
PQresultErrorFieldPerhaps due to the lack of freeing up the resources used by the library.You can try using this tool, to find out the root cause.best regards,Ranier Vilela
В списке pgsql-hackers по дате отправления: