• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

Question Can Someone Anyone Tell Me What RotateTrash Does Daily Maintenance

Ladylinux

New Pleskian
Server operating system version
Debian 12
Plesk version and microupdate number
18.0.62
Hi,

So I have been battling daily issues with the maintenance script.


I have narrowed it down to this

RotateTrash

If I exclude it from Daily Maintenance with a small shell script I run to debug which job is causing the issue everything runs smooth

So what the heck is this and why is it spawning off so many of these

/usr/bin/sw-engine -c /opt/psa/admin/conf/php.ini /opt/psa/admin/sbin/collectdmng-handler

All it takes is running it manually

plesk daily RotateTrash

Mind you running 200 or so of the above simultaneously runs the server out of memory and off to swap land

Again it really would be nice to have a document with what each of these scripts are doing

Thanks!!

LadyLinux
 
Hi there, RotateTrash rotates the Trash Bins of the Plesk File Manager for each domain. It's usually not a very resource intensive operation, so I am not really sure why that causes you so much headache. For troubleshooting proposes you could try to disabled the trash bins for the File Manager by adding the following configuration to the panel.ini file.
Code:
[fileManager]
trash.enabled = false
Keep in mind that disabling the trash bins does mean that files deleted using the File Manager are permanently deleted.

The collectdmng-handler is related to the Cgroups Manager. Is the Cgroups Manager installed and enabled on the server? You could try to hide Cgroups Manager functionality in the panel.ini file by adding the following configuration to the panel.ini file. See if that improves the situation.
Code:
[resourceController]
enabled = false

Since you mentioned having substantial server load when the Daily Maintenance task is running I would actually recommend to open a ticket with our support team to get the issue investigated. As this behavior doesn't sound quite right to me.
 
Hi Kaspar,

I agree this is not normal behavior. Yes Cgroups Manager is enabled in the server.

Could this be GUI changes being made as I suspect the client could be doing things that are in fact confusing the issue

I am going to run this stuff today and make sure the client is off the machine. Failing that yes we need support to step in as in my opinion server load should never spike like this.

Mind you other than these issues the server runs smooth all day and this issue only cropped up at the time the Daily Maint task was running. I don't think the client was making changes at 4:30am but one never knows and that would be quite a coincidence :)

Thanks For The Help :)

LadyLinux
 
Hi,

Just ran RotateTrash this morning (This Server Is In Australia)



07:00:01 PM runq-sz plist-sz ldavg-1 ldavg-5 ldavg-15 blocked
07:10:03 PM 0 338 0.21 0.22 0.21 0
07:20:03 PM 0 338 0.10 0.15 0.19 0
07:30:03 PM 0 333 0.21 0.18 0.18 0
07:40:01 PM 0 331 0.40 0.27 0.21 0
07:50:04 PM 0 332 0.17 0.16 0.17 0
08:00:01 PM 1 335 0.44 0.29 0.21 0
08:10:04 PM 1 334 0.26 0.32 0.27 0
08:20:01 PM 3 345 0.22 0.25 0.24 0
08:30:02 PM 2 367 0.19 0.25 0.23 0
08:40:04 PM 0 334 0.22 0.27 0.26 0
08:50:04 PM 0 343 0.21 0.30 0.28 0
09:00:01 PM 2 337 0.83 0.63 0.40 0
09:10:04 PM 0 347 0.07 0.38 0.41 0
09:20:04 PM 0 336 0.05 0.11 0.25 0
09:30:01 PM 1 338 0.18 0.26 0.26 0
09:40:00 PM 0 337 0.44 0.19 0.19 0
09:50:00 PM 4 334 0.58 0.31 0.22 0
10:00:00 PM 0 561 50.58 17.39 6.44 0 <----- Rotate Trash
As you can see its loafing along until that runs

Gonna disable it in the panel and try again and if it clears the issue raise a ticket with Support

Thanks!!

LadyLinux
 
Hi,

After deleting all .trash folders and then disabling trash cans load is now good

Really did not have that much in .trash so this is weird to say the least

Anyhow tomorrow I am going to run all jobs and monitor load

A day later I will re-enable the Daily Maintenance script and see if the issue has vanished

Still very strange.

Thanks!!

LadyLinux
 
Back
Top