#1278 Memory storage with mod_mam uses too much RAM

Reporter Lunar
Owner Nobody
Created
Updated
Stars ★★ (3)
Tags
  • Type-Defect
  • Priority-Medium
  • Status-New
  1. Lunar on

    What steps will reproduce the problem? 1. Enable mod_mam, have it use the memory storage and set the archive expiry to the short time (1 hour). 2. Watch the memory usage on a high traffic server over a day or two. 3. Check the memory usage and compare the data stored when using internal storage. What is the expected output? Seeing that the memory usage is much lower. What do you see instead? I saw the memory used go up to 4GB+ over the course of 1 day. Compared to internal storage which used 400MB (on the filesystem). What version of the product are you using? On what operating system? Latest version of modules, Prosody 0.11.1 and on Debian 9. Please provide any additional information below. It seems like mod_mam with memory storage and a short archive expiry time is inefficient. Right now on the 2nd day it has used 6GB of RAM. Since the archive is being purged every hour it should never go this high.

New comment

Not published. Used for spam prevention and optional update notifications.