Panel/Holoviews/Bokeh app memory leaks, looking for general best practices

Are you all using a template by any chance? I was wondering if maybe it’s the template causing the memory leak or maybe some type of database?

Or I wonder if it’s a leak from all the way upstream from tornado

Hi @sunny and others

Without knowing the specifics (package versions, minimals reproducible code example, how the code is run etc) it will be almost impossible for any one to help. So please provide if possible.

My experience from running lots of applications using different package versions and operating systems is that there is no problems. The only time I see problems is when using panel serve with --autoreload flag. And that is a false positive as far as I know.

Please see Memory leak in panel · and [BUG] Increasing memory

1 Like

Interesting, what made you suspect the template? I’m using template, and my app did run into the same error.

1 Like

Random guess because 2 out of 2 of my apps both use templates.

I have been facing this issue since nearly two years. I think it has something to do with reading in data within functions that create plots