Skip to content Skip to sidebar Skip to footer

Pypy Memory Usage Grows Forever?

I have a complicated python server app, that runs constantly all the time. Below is a very simplified version of it. When I run the below app using python; 'python Main.py'. It

Solution 1:

Compared to cpython, pypy uses different garbage collection strategies. If the increase in memory is due to something in your program, you could try to run a forced garbage collection every now and then, by using the collect function from the gc module. In this case, it might also help to explicitly del large objects that you don't need anymore and that don't go out of scope.

If it is due to the internal workings of pypy, it might be worth it submitting a bug report, as Mark Dickinson suggested.

Post a Comment for "Pypy Memory Usage Grows Forever?"