Python Forum
Where is the memory leak in this Flask Code?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where is the memory leak in this Flask Code?
#2
Matplotlib has a documented memory leak when used with web services like Flask.

The workaround I saw suggested was to use a "figure", not a "plt", but when I tried to do that, it did not fix the memory leak.

Hopefully others here will chime in with some ideas.

Good luck!

Oliver
Reply


Messages In This Thread
RE: Where is the memory leak in this Flask Code? - by Oliver - Jun-18-2021, 02:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting an error while trying to process data, low memory when memory is not low? bkeith12 0 502 Dec-20-2024, 03:06 PM
Last Post: bkeith12
  code not working when executed from flask app ThomasDC 1 3,063 Jul-18-2023, 07:16 AM
Last Post: ThomasDC
  memory leak on embedded python in c++ asdf3721 3 4,365 Jul-16-2020, 06:33 AM
Last Post: Gribouillis
  Queue get memory leak when used in multithreading wangcp 1 5,297 Nov-27-2018, 04:06 AM
Last Post: wangcp

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020