ktor server – memory leak

Hi everyone,

I’ve written a small server application using ktor for processing multipart. So basically I do the following:

https://preview.redd.it/ol222ajv5wzb1.png?width=853&format=png&auto=webp&s=7356077a6b4b3f30c76bd74d5cfc3bef0d7ee312

After using that for a while and uploading/receiving some gigabytes, I realized that the java-process running ktor used 3 GBs!!! After processing it still had over 2 GB in use which is way too much, so obviously there’s a memory leak. Did I forget anything there, do I have to do some cleanups to free the memory?

Thanks!

submitted by /u/therealmcz
[link] [comments]