Plotting on Google Cloud Run getting really slow sometimes


I am supporting a project in which matplotlib is used on Google Cloud Run.
In the project a lot of plots are plotted, from complex to easy ones.
Although multiprocessing and multithreading is used, sometimes the plotting becomes really slow.
Interestingly this happens mainly with the easy plots not the complex ones.

Does someone have a hint what to do here?

@Daniel_Pietschmann It is extremely hard to help you based on this information. You are describing what I expect to be a pretty complex bit of code (running on a complex platform, running on unknown versions of everything) so at best we can speculate.

Can you give a minimal example that reproduces the issue on a local machine?