The RAM occupation problem of the virtual localhost

Hi friends:
I have built a virtual localhost of compute.rhino3d. While the problem is that the RAM occupation kept increasing and eventually exceeded the memory capacity when I made Iterative computation in python. It seems that the virtual localhost will store the interactive data between python and grasshopper in each iteration.
My question is that how to clear the old data in virtual localhost during iteration to reduce memory footprint?
Thanks for your attention.
Best regards.

This is a known bug. Do you have an example python script or Grasshopper file that you could share with us to help diagnose the cause of the memory increase?

The python code for diagnose has been uploaded to github.
I will be appreciated if you can give me a reply when there is any progress.