EnglishУкраїнськаmRussian
Login/New
Topic with no new replies

[BugFixed] Transport.SSL: Memory Leakage?!


Author Message
Written on: 03. 05. 2017 [08:23]
amirkhan63
amir amir
Topic creator
registered since: 07.03.2017
Posts: 2
Hi,
I implemented an scada project with openscada 0.8.17 but after a couple days I checked the memory usage of system and I saw that memory increased at time. Then I tested the application by Valgrind and it reported some Memory Leakage Errors. Testing AGLKS Model had a same result that attached to this topic.
Please tell me what can I do because my scada server freezes due to high memory usage of openscada core.
thank you
Attachment

openscada18-AGLKS-960213.txt (File type: text/plain, Size: 391.78 kilobytes) — 1875 downloads
Written on: 03. 05. 2017 [09:21]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3750
"amirkhan63" wrote:

I implemented an scada project with openscada 0.8.17 but after a couple days I checked the memory usage of system and I saw that memory increased at time.

For first time objects loading, in general, it's normal, up to about 100MB on x86_64 (150MB with Qt).

"amirkhan63" wrote:

Then I tested the application by Valgrind and it reported some Memory Leakage Errors. Testing AGLKS Model had a same result that attached to this topic.

indirectly lost: 3,956,999 bytes in 16,200 blocks

That isn't memory leakage at all, for long running!
If it's at a short running then that problem is into Transport.SSL by SSL_new(). Then try to use Transport.Sockets instead for this reason detection and I will append missed SSL_free().

"amirkhan63" wrote:

Please tell me what can I do because my scada server freezes due to high memory usage of openscada core.
thank you

I have not any like problems, without Transport.SSL, for example see to my server, which works in years:
PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
1012580 root 20 0 382M 111M 4376 S 48.0 3.7 99h06:38 /usr/bin/openscada --demon --pidFile=/var/run/openscada_Boiler.pid --coreDumpAllow --c
1010551 root 20 0 540M 59784 3804 S 47.0 2.0 125h /usr/bin/openscada --demon --pidFile=/var/run/openscada_AGLKS.pid --coreDumpAllow --co
1009556 root 20 0 696M 51196 3424 S 16.0 1.7 42h20:43 /usr/bin/openscada --demon --pidFile=/var/run/openscada_server.pid --coreDumpAllow


Learn, learn and learn better than work, work and work.
Written on: 03. 05. 2017 [10:23]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3750
"roman" wrote:

indirectly lost: 3,956,999 bytes in 16,200 blocks

That isn't memory leakage at all, for long running!
If it's at a short running then that problem is into Transport.SSL by SSL_new(). Then try to use Transport.Sockets instead for this reason detection and I will append missed SSL_free().

Missed SSL_free() has added and SSL structures cleaning has prevented at starting for already started output transports.

For the Work version the changes will commit at the end of the week.
For the LTS version wait for 0.8.18 update.

Learn, learn and learn better than work, work and work.



7457