From 7a7b7381c970aef400ad4d16860a0eed97e144b2 Mon Sep 17 00:00:00 2001 From: Benjamin Dalsass <95754414+bdalsass@users.noreply.github.com> Date: Tue, 12 Mar 2024 09:48:01 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B02732=20-=20DataSynchro=20:=20process=20s?= =?UTF-8?q?topped=20when=20memory=20peak=20usage=20exceeds=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- synchro/synchrodatasource.class.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/synchro/synchrodatasource.class.inc.php b/synchro/synchrodatasource.class.inc.php index f418b4eb9..791a5ebfc 100644 --- a/synchro/synchrodatasource.class.inc.php +++ b/synchro/synchrodatasource.class.inc.php @@ -1961,6 +1961,12 @@ class SynchroLog extends DBObject { $this->TraceToText(); $sMemPeak = max($this->Get('memory_usage_peak'), ExecutionKPI::memory_get_peak_usage()); + + // memory peak overflow protection + if($sMemPeak > 2147483647){ + $sMemPeak = 2147483647; + } + $this->Set('memory_usage_peak', $sMemPeak); parent::OnUpdate(); }