[Gstreamer] Save images by multifilesink growing up memory time to time

Hi everyone,
I am running a pipeline with appsrc on Jetson NX-devkit but memory is grow up time to time.

command =  "appsrc emit-signals=True is-live=True\
                caps=video/x-raw,format=BGR,width=1280,height=720,framerate=30/1 !\
                queue max-size-buffers=10 !\
                jpegenc ! multifilesink location=./test/%010d.png "

Anyone can help me solve it.
Many thanks,

Hi,
Please break down the pipeline to clarify which plugin triggers it. You may try

command =  "appsrc emit-signals=True is-live=True\
                caps=video/x-raw,format=BGR,width=1280,height=720,framerate=30/1 ! \
                fakesink "
command =  "appsrc emit-signals=True is-live=True\
                caps=video/x-raw,format=BGR,width=1280,height=720,framerate=30/1 !\
                queue max-size-buffers=10 ! fakesink "
command =  "appsrc emit-signals=True is-live=True\
                caps=video/x-raw,format=BGR,width=1280,height=720,framerate=30/1 !\
                queue max-size-buffers=10 !\
                jpegenc ! fakesink "