c++ - Qt qml application increasing memory usage -


i created application qt/qml, load qml file qquickview, , use loader element change pages(gui) inside application, , works fine, problem increase of program memory usage (the application starts less of 100mb, , after 1 day, size 500 mb or more), write , update model of objects in qml (javascript), application grows quickly, changing create models c++ objects, memory usage grows less problem still not solved.

my model can updated continuously (even 1 time per second), don't believe reason of memory rises.

but problem come other strangers behaviors tableview when changes page, memory rises 10 mb, try free memory gc(), don't successful results, , in change of page, memory can rise 1 mb.

note: use qt 5.5, , msvc 2010.

you might want check application memory leaks. sounds little excessive, qml, not known memory efficiency.

keep in mind, qml engine over-provision , not release memory when seems logical thing do. i've had cases of reaching gigabytes of memory usage in qml, having tens of thousands of qml objects "alive", , upon deletion of objects, memory usage doesn't come anywhere near initial memory usage. freed memory tiny amount, example, having 1 gb of memory worth of objects, deleting objects frees 150 mb of memory. news memory reused, creating objects again push memory usage previous peak, not further. far memory in application concerned, set.

i don't know if stack rest of os processes, whether application release memory if system runs out of ram.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -