-
Notifications
You must be signed in to change notification settings - Fork 81
Description
While testing the new version of servald we encountered a big bug regarding sqlite and meshms.
We flooded one machine from another with 32000 messages, after a few messages we can only send one message per second and a new file entry for the message is created in the database but the old journal is not removed, so each ne entry is as big as the old one plus the new size. After a certain rhizome.db size is reached blobs are written to the filesystem.
A simple script to flood another host with messages can be found here: https://github.com/umr-ds/serval-tests/blob/master/meshms-flood
Even after a few hundred mesages you can see that every few seconds the database grows another megabyte even though the messages are only 53 bytes long.
Using restful api or commandline doesn't make a difference.