ddavness / power-mailinabox

A Mail-in-a-Box with extra capabilities and more customizability. Not just for power users!
Creative Commons Zero v1.0 Universal
168 stars 31 forks source link

High system resource usage #88

Open lifeboy opened 1 year ago

lifeboy commented 1 year ago

In die README.md file a spec of 1 cpu and 1 Gb of RAM is quoted, which is little enough. However, in a real world setup with 11 users (using activesync for mail and the nextcloud desktop sync client), even assigning 12 CPU's and 8GB of RAM seems inadequate.

I see a lot or activity from a process called "php-fpm: pool miab". Far too much as far as I am concerned...

What would cause this?

image

ddavness commented 1 year ago

Hi!

I'd say memory usage seems to actually be within normal - it's using "just" 1.5GB, the rest is the kernel that likes to hog memory for disk cache.

Not sure about CPU loads, however. Was the machine unstable with a smaller machine configurations? (say 2-4CPU/2-3GB RAM?) What are the values from php-fpm: pool miab compared to other processes?

php-fpm: pool miab is basically every component shipping out-of-the-box with MIAB that requires PHP. That includes Roundcube, Nextcloud, Z-Push, etc.

lifeboy commented 1 year ago

It seems that there's also a Z-push authentication error when the services tries to get to the contacts for a user.

26/10/2022 16:13:38 [908823] [ERROR] [sean@xxxaaabbb.co.za] BackendCardDAV->Logon(): User 'sean@xxxaaabbb.co.za' failed to authenticate on 'https://127.0.0.1:443/carddav/addressbooks/sean@xxxaaabbb.co.za/': 26/10/2022 16:13:38 [908823] [FATAL] [sean@xxxaaabbb.co.za] Exception: (AuthenticationRequiredException) - Access denied. Username or password incorrect

However, mail is pushed to the client and when the user pressed enter on the user/password prompt, all is well, until somewhat later when the whole thing repeats itself.

lifeboy commented 1 year ago

I think maybe I should reinstall a fresh server, take backup and restore it. If I restore the automatic backup done by miab (with Duplicity), does it just bring the data, or will broken config also be transfered?

ddavness commented 1 year ago

For the Z-Push part, it seems to be broken both here (at least in Ubuntu 22.04) and in Mail-in-a-Box (the upstream project we fork from, also in 22.04) and will need to be resolved separately (As Z-Push does not support PHP 8).

By curiosity, what OS are you running? Did you upgrade in-place? (for example, upgrade a working 20.04 or Debian 10 installation to Ubuntu 22.04/Debian 11 respectively without doing a fresh install). I think it won't really matter here, but in case it does... 😅

lifeboy commented 1 year ago

cat /etc/issue

Ubuntu 20.04.5 LTS \n \l

@.***:~# php -v PHP 7.4.3 (cli) (built: Aug 17 2022 13:29:56) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies

pmiab v 60.2

I ran the mailinabox script again, which upgraded me from 56.x to 60.2

Should I try a fresh server and restore the data, or should I just switch the users to imap and caldav?

On Thu, 27 Oct 2022 at 19:04, David Duque @.***> wrote:

For the Z-Push part, it seems to be broken both here (at least in Ubuntu 22.04) and in Mail-in-a-Box (the upstream project we fork from, also in 22.04) and will need to be resolved separately (As Z-Push does not support PHP 8).

By curiosity, what OS are you running? Did you upgrade in-place? (for example, upgrade a working 20.04 or Debian 10 installation to Ubuntu 22.04/Debian 11 respectively without doing a fresh install)

— Reply to this email directly, view it on GitHub https://github.com/ddavness/power-mailinabox/issues/88#issuecomment-1293820747, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEZPJ6VNB3J2X3LF3USQBDWFKYYRANCNFSM6AAAAAAROYCW7I . You are receiving this because you authored the thread.Message ID: @.***>

risturiz commented 1 year ago

Btw did you try without "nextcloud desktop sync client" ?