cleanup_delete_non_assigned_kb causes the server's RAM to explode

Questions about WAPT Server / Requests and help related to the WAPT server
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Answer
esberard
Messages: 36
Registration: Oct 09, 2023 - 11:35

May 19, 2026 - 08:49

Good morning,

We are experiencing an issue with the "cleanup_delete_non_assigned_kb" function of WUA which is run every night around 3am and is overloading our server.

We get the same effect if we use the "Clear unaffected updates" button in the console.

Our KB database represents 183GB and our server is relatively robust nonetheless.

We are on version 2.6.1.17705, but I have not seen a fix for this problem in later versions.
WAPT-OOM.png
WAPT-OOM.png (134 KB) Viewed 6626 times
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

May 19, 2026 - 09:22

Hi Rémi,

there is indeed an issue with the way the SQL cleanup query is written. I'm opening an internal ticket; we'll look into it quickly.

Best regards,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
esberard
Messages: 36
Registration: Oct 09, 2023 - 11:35

May 19, 2026 - 10:02

dcardon wrote: May 19, 2026 - 09:22 Hi Rémi,

there is indeed an issue with the way the SQL cleanup query is written. I'm opening an internal ticket; we'll look into it quickly.

Best regards,

Denis
Thank you Denis, I await your feedback on the fix.
esberard
Messages: 36
Registration: Oct 09, 2023 - 11:35

May 20, 2026 - 08:22

Hello Denis,

We really need a quick fix, or at the very least, to be told how to disable this purging function every night at 3am because we end up with a server down almost every other morning.
WAPT-OOM2.png
WAPT-OOM2.png (134.75 KB) Viewed 6510 times
esberard
Messages: 36
Registration: Oct 09, 2023 - 11:35

May 26, 2026 - 11:12

Hello,

do you have any idea when this patch will be released?

Thank you very much,

Rémy
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

May 27, 2026 - 5:08 PM

Hi Rémi,

it's been fixed in master/2.7 (the next major release is coming soon :-) ). We still need to backport it to 2.6.1, and that will be in the next release.

We'll keep you posted.

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
esberard
Messages: 36
Registration: Oct 09, 2023 - 11:35

May 28, 2026 - 08:54

Hello Denis,

Thank you for the feedback, I'm eagerly awaiting the release. :D
Answer