I also tried calling the destroy() method on all generated display objects.
The pixi app instance also gets re-used and won't be destroyed between requests.
When running the app locally on macOS the memory usage stays constant - no matter how many requests I throw at it. Running it in the Docker container results in the memory footprint growing constantly with every request. Looking at the process monitor indicates that this is an issue with node - not xvfb.
This issue is also not caused due to dev/prod builds, both ways lead to a memory leak.
I'll try sharing a sample app - but until then I'll try my best here if anyone has advice on this.
I'm running PixiJS node in a Docker container, based on the example Dockerfile via xvfb.
My app provides a HTTP endpoint which simply generates an image. After every request I'm unloading all assets from the Asset & Cache manager.
Might not be the prettiest way but it works.
I also tried calling the
destroy()
method on all generated display objects.The pixi app instance also gets re-used and won't be destroyed between requests.
When running the app locally on macOS the memory usage stays constant - no matter how many requests I throw at it. Running it in the Docker container results in the memory footprint growing constantly with every request. Looking at the process monitor indicates that this is an issue with node - not xvfb.
This issue is also not caused due to dev/prod builds, both ways lead to a memory leak.
I'll try sharing a sample app - but until then I'll try my best here if anyone has advice on this.