Dovecot - vsz_limit "Out of memory"

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
BrotherJ
Beiträge: 323
Registriert: 15.11.2018 07:56:18

Dovecot - vsz_limit "Out of memory"

Beitrag von BrotherJ » 17.03.2021 13:48:49

Hallo,

ich habe einen aktuellen Postfix-/Dovecot-Server auf Debian Buster. Und laut Eror-Logs

Code: Alles auswählen

doveadm log errors
habe ich bei nur einem Benutzer immer diese Fehler:

Code: Alles auswählen

Mar 17 13:42:37 Fatal: imap(wh@example.tld)<27649><+hoT0bq9tEBZzIeD>: pool_system_malloc(3146424): Out of memory
Mar 17 13:42:37 Error: imap(wh@example.tld)<27649><+hoT0bq9tEBZzIeD>: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(+0xdb73b) [0x7fdccc7a973b] -> /usr/lib/dovecot/libdovecot.so.0(+0xdb7d1) [0x7fdccc7a97d1] -> /usr/lib/dovecot/libdovecot.so.0(+0x4a37b) [0x7fdccc71837b] -> /usr/lib/dovecot/libdovecot.so.0(+0x4e0d8) [0x7fdccc71c0d8] -> /usr/lib/dovecot/libdovecot.so.0(+0xe0ff0) [0x7fdccc7aeff0] -> /usr/lib/dovecot/libdovecot.so.0(+0xe1206) [0x7fdccc7af206] -> /usr/lib/dovecot/libdovecot-storage.so.0(maildir_uidlist_sync_next_uid+0x315) [0x7fdccc8e6f35] -> /usr/lib/dovecot/libdovecot-storage.so.0(maildir_uidlist_sync_next+0x20) [0x7fdccc8e7140] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x87825) [0x7fdccc8e4825] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x88577) [0x7fdccc8e5577] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x88937) [0x7fdccc8e5937] -> /usr/lib/dovecot/libdovecot-storage.so.0(maildir_storage_sync_force+0x39) [0x7fdccc8e5a29] -> /usr/lib/dovecot/libdovecot-storage.so.0(maildir_file_do+0xe6) [0x7fdccc8ea036] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x826d2) [0x7fdccc8df6d2] -> /usr/lib/dovecot/libdovecot-storage.so.0(mail_get_stream_because+0x6a) [0x7fdccc8a9eea] -> /usr/lib/dovecot/libdovecot-storage.so.0(index_mail_prefetch+0x8e) [0x7fdccc92803e] -> /usr/lib/dovecot/libdovecot-storage.so.0(mail_prefetch+0x34) [0x7fdccc8a97e4] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0xd1cf3) [0x7fdccc92ecf3] -> /usr/lib/dovecot/libdovecot-storage.so.0(index_storage_search_next_nonblock+0x10d) [0x7fdccc92f18d] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_search_next_nonblock+0x28) [0x7fdccc8b7e58] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_search_next+0x3f) [0x7fdccc8b7edf] -> dovecot/imap(+0x21887) [0x561cc364f887] -> dovecot/imap(imap_fetch_more+0x39) [0x561cc36507b9] -> dovecot/imap(cmd_fetch+0x337) [0x561cc3641c07] -> dovecot/imap(command_exec+0x70) [0x561cc364ddc0] -> dovecot/imap(+0x1e3f2) [0x561cc364c3f2] -> dovecot/imap(+0x1e494) [0x561cc364c494] -> dovecot/imap(client_handle_input+0x1b5) [0x561cc364c845]
Mar 17 13:42:37 Fatal: imap(wh@example.tld)<27649><+hoT0bq9tEBZzIeD>: master: service(imap): child 27649 returned error 83 (Out of memory (service imap { vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1 environment to get core dump)
In der /etc/dovecot/conf.d/10-master.conf habe ich bereits

Code: Alles auswählen

service imap { 
  executable = imap imap-postlogin
  vsz_limit = 1024MB
}
gesetzt und den Server mit

Code: Alles auswählen

systemctl restart dovecot.service
neugestartet. Die Veränderungen werden allerdings nicht übernommen:

Code: Alles auswählen

# doveconf -a | grep vsz_limit
default_vsz_limit = 256 M
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 128 M
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
  vsz_limit = 18446744073709551615 B
Wie kann ich den vsz_limit für den imap-Service erhöhen, um dei Fehlermeldung abzu schalten?

Grüße
BrotherJ

Antworten