Event-manager memory leak
Posted: Wed Aug 21, 2019 6:08 pm
We need to acknowledge alerts from script with additional information in _add_value_7 and _add_value_8. We use function alertSetWait for this (ACK_bug.ctl). It was noticed that in this case there is a memory leak on the event manager.
I attached project for demonstration.
1. Run the ACK_bug.ctl script in the console. This script acknowledges alerts with the addition of add_value_7 and add_value_8.
2. Memorize value of memory that uses by event manager.
3. Run the panel GenerateAlarm.pnl, click on "START".
4. Wait until the number of generated alarms become 3000 (CAME Alarms == 3000), alarm generation will be disabled.
5. Look on value of memory that uses by event manager. Make sure that the memory of the event Manager has increased significantly (On my hardware > 350%)
I note that this project is small and uses a little memory. However, on real projects there is a memory leak of about 10Gb in 10 minutes.
WinCC OA 3.14 p28
I attached project for demonstration.
1. Run the ACK_bug.ctl script in the console. This script acknowledges alerts with the addition of add_value_7 and add_value_8.
2. Memorize value of memory that uses by event manager.
3. Run the panel GenerateAlarm.pnl, click on "START".
4. Wait until the number of generated alarms become 3000 (CAME Alarms == 3000), alarm generation will be disabled.
5. Look on value of memory that uses by event manager. Make sure that the memory of the event Manager has increased significantly (On my hardware > 350%)
I note that this project is small and uses a little memory. However, on real projects there is a memory leak of about 10Gb in 10 minutes.
WinCC OA 3.14 p28