tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
9.75k stars 257 forks source link

Memory leak, Dockerized on Railway #1781

Open danfascia opened 1 week ago

danfascia commented 1 week ago
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?

harryvince commented 1 week ago

+1

jeremybarbet commented 1 week ago

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

harryvince commented 1 week ago

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

avinassh commented 3 days ago

Hello, which version of libsql server are you using?

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

export LIBSQL_DISABLE_METRICS=true
harryvince commented 21 hours ago

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