Orthanc increases RES memory when accessing Explorer UI

Hi Authors,

I am running Orthanc version 1.8.0 in my Ubuntu desktop. I notice that whenever I access the Explorer UI (http://localhost:8042/app/explorer.html) the RES memory increases each time I visit the page. I use Valgrind to check if there is any memory leak and the attach is the result of the command:

valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt ./Orthanc ./Configuration.json

This is the valgrind summary

==8608== LEAK SUMMARY:
==8608== definitely lost: 0 bytes in 0 blocks
==8608== indirectly lost: 0 bytes in 0 blocks
==8608== possibly lost: 237,604 bytes in 875 blocks
==8608== still reachable: 33,095,565 bytes in 100,808 blocks
==8608== of which reachable via heuristic:
==8608== stdstring : 26,228,049 bytes in 270 blocks
==8608== length64 : 245,192 bytes in 341 blocks
==8608== newarray : 280 bytes in 2 blocks
==8608== suppressed: 0 bytes in 0 blocks
==8608==
==8608== ERROR SUMMARY: 180 errors from 180 contexts (suppressed: 0 from 0)
==8608== ERROR SUMMARY: 180 errors from 180 contexts (suppressed: 0 from 0)

Below are screenshot captured between 2 times accessing the page

As you can see the memory increases from 66264 to 68384. I dont know whether it’s memory leak or not since there was already a thread mentioned that (but in docker). This can affect if we develop a plugin for new frontend UI.

valgrind-out.txt (4.33 MB)

Hello,

Have you read the FAQ about scalability, and have you appropriately set the MALLOC_ARENA_MAX environment variable to 5?
https://book.orthanc-server.com/faq/scalability.html#controlling-memory-usage

Sébastien-

Thank you Sebastien

Vào lúc 13:26:11 UTC+7 ngày Thứ Năm, 10 tháng 12, 2020, s.jo...@gmail.com đã viết: