mmap failed with file ... dovecot.index.cache: Cannot allocate memory

  • Hallo,


    wir haben massenhaft auf einem E-Mailpostfach folgende Meldung:


    Aug 18 08:44:55 server15 dovecot: pop3(service@domain.com:( Error: mmap(size=295357744) failed with file /home/popuser/popboxen/domain.com/servicesa/Maildir/dovecot.index.cache: Cannot allocate memory


    In dem Verzeichnis schauen die Files so aus:

    Maildir # du -c -s *

    100 cur

    4 dovecot.index

    288660 dovecot.index.cache

    16 dovecot.index.log

    40 dovecot.index.log.2

    8 dovecot.index.thread

    4 dovecot.mailbox.log

    4 dovecot-uidlist

    4 dovecot-uidvalidity

    0 dovecot-uidvalidity.5b6d89b0

    4 maildirsize

    44 new

    4 subscriptions

    4 tmp

    288896 insgesamt


    Hat einer eine idee was man da macht und das abstellt?


    Manfred

  • Error: mmap(size=295357744) failed with file /home/popuser/popboxen/domain.com/servicesa/Maildir/dovecot.index.cache: Cannot allocate memory

    Dovecot meldet einen Speicherfehler (nicht Speicherplatz ;) ). Steht dem Server noch ausreichend Arbeitsspeicher zur Verfügung? Ist in der dovecot Konfiguration ggf. vsz_limit gesetzt?

  • Ich war jetzt mal mutig...
    Das hier hat mir geholfen:
    https://www.linuxquestions.org…le-in-dovecot-4175616608/


    Der letzte Eintrag:
    I deleted the dovecot.index.cache file, and I watched the logs. The user was able to login without issue, and Dovecot created a new dovecot.index.cache file.


    Und genau so habe ich es gemacht. Im laufenden Betrieb die betroffenen dovecot.index.cache gelöscht.

    Und es wurde automatisch eine neue angelegt.
    Die ist jetzt auch normal klein, weil eh keine Mails drin liegen in dem Postfach:

    90964058 4 -rw------- 1 popuser popuser 1052 Aug 18 15:09 dovecot.index.cache


    Vielleicht wäre es mit den Limits auch gegangen, aber so scheint es jetzt behoben zu sein, was auch immer das ausgelöst hat.