Unsolved
This post is more than 5 years old
9 Posts
0
1060
December 6th, 2011 06:00
Memory leak in Centera API 3.2.661
Hello,
we are currently using Centera SDK 3.2.661, besides other techniques to connect to different network storages.
One of our customer recently stated that out application is using way to much memory.
Usually the memory usage stays around 20MB but here it goes up to 80MB and more within a few month.
Since the customer only uses a Centera connection we started our search in the code we build around the API.
Long story short we could reproduce this behaviour, but didn't find the problem. The memory usage was rising, but very slow.
As the memory usage was rising faster when the connection to the Centera wasn't possible (e.g. due to missing network connection) we could make out FPPool_Open() as the culprit.
It seems as if the connection string is copied internally but not freed when the connection can't be established.
Here is a short example:
#include int main(int argc, char* argv[]) { FPPoolRef ref; for(int i = 0; i < 100000; i++) { ref = FPPool_Open(" "); printf("0x%08x\n",ref); //Always NULL }
return 0; } |
The longer the connection string the faster the memory rises.
Is there a way to prevent this behaviour and/or is this a known bug that was already fixed yet?
Thanks and best regards,
Simon