libsql icon indicating copy to clipboard operation
libsql copied to clipboard

Memory leak, Dockerized on Railway

Open danfascia opened this issue 1 year ago • 8 comments

CleanShot 2024-10-06 at 20 10 27@2x

This is the memory usage pattern for my 35Mb SQLite DB running on LibSQL in a container on Railway. Over time the memory usage just grows and grows.

CleanShot 2024-10-06 at 20 11 07@2x

If I restart the container, the usage drops dramatically.

Is there a known issue running in Docker containers with memory leaking?

danfascia avatar Oct 06 '24 19:10 danfascia

+1

harryvince avatar Oct 11 '24 20:10 harryvince

I'm seeing something similar in some cases. Do you have bottomless enabled?

jeremybarbet avatar Oct 12 '24 08:10 jeremybarbet

Just sqlean uuid extension and custom data directory plus host port. Other than that using the libsql docker image

harryvince avatar Oct 12 '24 08:10 harryvince

Hello, which version of libsql server are you using?

Can you try disabling metrics, by setting an env variable:

export LIBSQL_DISABLE_METRICS=true

avinassh avatar Oct 16 '24 12:10 avinassh

Hi I'll do this now, and i'm using v0.24.26

harryvince avatar Oct 18 '24 19:10 harryvince

It's a repeat problem - I cannot figure it and I just have to restart the server every so often to reset the memory usage to a baseline of ~100Mb

danfascia avatar Oct 25 '24 17:10 danfascia

@danfascia could you share your version information? are you noticing issue despite disabling the metrics?

avinassh avatar Oct 25 '24 18:10 avinassh

seeing something similar. is this fixed?

intaek-h avatar May 03 '25 01:05 intaek-h