https://kotlinlang.org logo
#ktor
Title
# ktor
k

Kiet

02/24/2022, 3:34 AM
Hey folks, I posted a multiplayer demo a few days ago which uses ktor websockets, I noticed that the memory usage goes up slowly overtime on google cloud run for some reason. From looking at my code, it's unclear to me where the memory leak is coming from, I was wondering if someone could please review my code? https://github.com/Kietyo/KorgeMultiplayerDemo/tree/master/Server
e

e5l

02/24/2022, 7:36 AM
I recently fixed a bunch of allocation issues https://youtrack.jetbrains.com/issue/KTOR-3903, so it should be much better in 2.0.0
Could you log an issue as well? I will verify this case
k

Kiet

02/25/2022, 3:51 AM
Thanks I'll wait for 2.0.0 to be released then before I switch to that version. This is just a demo project so no rush on my end. Created issue: https://youtrack.jetbrains.com/issue/KTOR-3948
2 Views