mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°2732 - DataSynchro : process stopped when memory peak usage exceeds 2
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user