Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High system resource usage #88

Open
lifeboy opened this issue Oct 26, 2022 · 6 comments
Open

High system resource usage #88

lifeboy opened this issue Oct 26, 2022 · 6 comments
Labels
Needs Feedback from Author Not enough information

Comments

@lifeboy
Copy link

lifeboy commented Oct 26, 2022

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
Copy link
Owner

ddavness commented Oct 26, 2022

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
Copy link
Author

lifeboy commented Oct 27, 2022

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
Copy link
Author

lifeboy commented Oct 27, 2022

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
Copy link
Owner

ddavness commented Oct 27, 2022

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... 😅

@ddavness ddavness added the Needs Feedback from Author Not enough information label Oct 27, 2022
@lifeboy
Copy link
Author

lifeboy commented Oct 28, 2022 via email

@risturiz
Copy link

risturiz commented Nov 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Feedback from Author Not enough information
Projects
None yet
Development

No branches or pull requests

3 participants