• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Forwarded to devs CGroups / systemd scope units slowing down

B4c4rd1

Regular Pleskian
TITLE:
CGroups / systemd scope units slowing down
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
Plesk Onyx, Version 17.5.3 Update #25, Ubuntu 16.04.2 LTS‬, x64
PROBLEM DESCRIPTION:
Hi,

I can identify a new problem.

Systemd always creates a separate folder per visitor/session under /run/systemd/system.

For example:
  1. session-c288942.scope.d
  2. session-c288940.scope.d
  3. session-c288939.scope.d
The biggest problem is that systemd deletes this folder does not automatically once the connection has been disconnected.

The more folders are present here, takes the longer the restart of systemd.

Now, with CGroups enabled, the process may take a long time.

My workaround:

Create a cronjob with the following command:
Code:
systemctl |grep "abandoned" |sed "s/\.scope.*/.scope/" |xargs systemctl stop

And do the job every hour.​
STEPS TO REPRODUCE:
Open many connections until you have about 30,000 objects in the folder /run/systemd/system. Yes, that takes a long time! But then you can check exactly how long a domain update takes.

Only test this with HDD! Dont test this with SSD drives.​
ACTUAL RESULT:
No automatic clean the folder: /run/systemd/system.​
EXPECTED RESULT:
Automatic clean the folder over time?​
ANY ADDITIONAL INFORMATION:
Is this a bug of ubuntu? Systemd? Plesk? But I know that it is a problem.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Help with sorting out
 
Last edited:
Thank you for report.
Developers have confirmed that it is known issue, already submitted as PPPM-7414
 
Back
Top