gm RES memory problem
yzh杨振宏 <[email protected]> Sat, 8 Dec 2018 05:58:59 +0000
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <7354BE8391D7C34B9384A115F0B5444A20B2DC9D@SVR2115HP380.cn1.global.ctrip.com> |
hi,
Recently, a graphicsmagick memory problem bother us. We found that the memory is not returned back to system when magickwand is destroyed. I write a simple program to reproduce it:
#include <stdlib.h>
#include <stdio.h>
#include <wand/magick_wand.h>
int main(int argc,char **argv) {
MagickWand *magick_wand;
magick_wand=NewMagickWand();
MagickReadImage(magick_wand,"./test.gif");
DestroyMagickWand(magick_wand);
DestroyMagick();
sleep(1000000);
}
I simply read a gif image and destroy it, and the RES memory is finally stabilized at 172476 when sleep.
This is not a memory leak, when I call it in a for loop, the memory just fluctuate at this level. It is likely something has been cached.
So I want to know what does GM do and why.
My GM versin is 1.3.29 and system is Centos7.1
_______________________________________________
Graphicsmagick-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help