mail server 擴充記憶體 — php / imapd(dovecot)

筆記一下 , 系統擴充記憶體 , php / imapd (dovecot) 更動設定吃擴充的記憶體 , 以提升效能 .

1. php.ini
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
memory_limit = 4096M ; Maximum amount of memory a script may consume (8MB)

2. dovecot.conf
# Set max. process size in megabytes. Most of the memory goes to mmap()ing
# files, so it shouldn’t harm much even if this limit is set pretty high.
#mail_process_size = 256
mail_process_size = 4096

或者視版本不同在 dovecot.conf 中加入以下

service imap {
vsz_limit = 4096 MB
}

Share your vote!


Do you like this post?
  • Fascinated
  • Happy
  • Sad
  • Angry
  • Bored
  • Afraid

Leave a Reply

Your email address will not be published. Required fields are marked *


Please help to input verification code