NaturalHistoryMuseum / iiif-image-server

A IIIF Image Server
GNU General Public License v3.0
5 stars 0 forks source link

Memory leak #30

Closed jrdh closed 2 years ago

jrdh commented 2 years ago

There seems to be a memory leak somewhere, presumably related to loading image data into RAM and then not properly freeing it after it's used.

See:

image

Not sure where it's happening yet though.

jrdh commented 2 years ago

Maybe these deleted temp files that have lingering references are related?

image

jrdh commented 2 years ago

I wonder if errors in converting images aren't being collected immediately and therefore the image is being held in memory until the exception is handled? Whenever I shut down the servers and errors have occurred, there seem to be a bunch of exceptions spewed out when the server shuts down.