Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Mail: Dovecot `default_vsz_limit` stuck at 256M, large mailboxes fail to mmap their index cache

Mail: Dovecot `default_vsz_limit` stuck at 256M, large mailboxes fail to mmap their index cache

Scheduled Pinned Locked Moved Solved Support
maildovecot
2 Posts 2 Posters 198 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    N
    nilp
    wrote on last edited by
    #1

    Mail: Dovecot default_vsz_limit stuck at 256M, large mailboxes fail to mmap their index cache

    On mailboxes with a large index cache, Dovecot logs this when they are opened or indexed (Cloudron 10.1.5, mail 4.4.4, Dovecot 2.4.2; it already happened with 10.0.5 and Dovecot 2.3):

    indexer-worker(user1@example.com): Error: Mailbox INBOX: mmap(size=200498572) failed with file /app/data/vmail/user1@example.com/mail/dovecot.index.cache: Cannot allocate memory
    imap(user2@example.com): Error: Mailbox Archive: mmap(size=111789528) failed with file /app/data/vmail/user2@example.com/mail/.Archive/dovecot.index.cache: Cannot allocate memory
    

    A third mailbox (about 170,000 mails, 48 GB) has a 313 MB dovecot.index.cache and fails the same way. Dovecot then works without the cache, and these mailboxes are slow to open.

    The cause is Dovecot's per-process limit, which stays at its default:

    # doveconf -h default_vsz_limit
    256 M
    

    dovecot.conf.template does not set it. Raising the mail service memory limit in the dashboard does not help: the container now has about 25 GB, and every Dovecot process is still capped at 256M. Dovecot's own sample config says so: "Most of the memory goes to mmap()ing files. You may need to increase this limit if you have huge mailboxes."

    Could the mail container raise this limit, either default_vsz_limit or vsz_limit for service imap and service indexer-worker (1G for example)? It could also follow the memory limit set in the dashboard. A supported way to add a custom Dovecot setting would solve it as well.

    1 Reply Last reply
    1
    • girishG
      girishG
      girish
      Staff
      wrote on last edited by
      #2

      Thanks for reporting, I have upped it to 2G for now.

      1 Reply Last reply
      1
      • girishG girish has marked this topic as solved on

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search