In my Python / bokeh Cloud Run app , I hit an apparent memory leak issue that I cannot reproduce in my local environment. Any suggestion on what to look for next would be appreciated. Thanks!
Symptom:
Even in a single user usage, container memory utilization steadily grows until it runs out of memory. I tried to track down the memory usage of the app (using psutil ), but couldn't find any noticeable leak in my process. I could not reproduce the issue in my local environment either.
Details:
Update: I've found the root cause. It is because my app downloads data and caches them in local file system, which is just memory in Cloud Run. The memory usage increase tracks the accumulated download over time.