Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. slowly memory leakage durring linux-based process running
Forum Updated to NodeBB v4.3 + New Features

slowly memory leakage durring linux-based process running

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 4 Posters 756 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MABahar
    wrote on last edited by
    #1

    Hi, I have made the Qt-widget app which is handeled by linux kernel. the project is commercially sensetive and i can not paste it here. the main job of program is getting large amount of modbus data and ui management based on data analysis. everything is ok but the memory usage grows slowly over the time. after 14 hours the ram usage percent moves from ~25% to ~35%. is this normal process ?
    the system has very sensetive job and it must work for hours of the day continouosly. additional information:
    1- i have monitored RSS and VSZ. both of them are growing slowly with the same steps.
    2- the mainwindow has the ownership of all Qt objects.
    3- i have used multiple sql queries localy in my functions but the database will be removed after doing jobs.

    JonBJ 1 Reply Last reply
    0
    • M MABahar

      Hi, I have made the Qt-widget app which is handeled by linux kernel. the project is commercially sensetive and i can not paste it here. the main job of program is getting large amount of modbus data and ui management based on data analysis. everything is ok but the memory usage grows slowly over the time. after 14 hours the ram usage percent moves from ~25% to ~35%. is this normal process ?
      the system has very sensetive job and it must work for hours of the day continouosly. additional information:
      1- i have monitored RSS and VSZ. both of them are growing slowly with the same steps.
      2- the mainwindow has the ownership of all Qt objects.
      3- i have used multiple sql queries localy in my functions but the database will be removed after doing jobs.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @MABahar
      Are you able to valgrind the application?

      M 1 Reply Last reply
      1
      • JonBJ JonB

        @MABahar
        Are you able to valgrind the application?

        M Offline
        M Offline
        MABahar
        wrote on last edited by
        #3

        @JonB Arm arch is using. i do monitoring using htop command

        jsulmJ 1 Reply Last reply
        0
        • M MABahar

          @JonB Arm arch is using. i do monitoring using htop command

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @MABahar As @JonB suggested use Valgrind to analyze memory usage of your app. Else we can only guess as there is not enough information...

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply
          2
          • jsulmJ jsulm

            @MABahar As @JonB suggested use Valgrind to analyze memory usage of your app. Else we can only guess as there is not enough information...

            M Offline
            M Offline
            MABahar
            wrote on last edited by
            #5

            @jsulm i think that Valgrind can not be used on ARM arch. is it wrong ?

            jsulmJ Pablo J. RoginaP 2 Replies Last reply
            0
            • M MABahar

              @jsulm i think that Valgrind can not be used on ARM arch. is it wrong ?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @MABahar According to https://www.valgrind.org/info/platforms.html it should

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • M MABahar

                @jsulm i think that Valgrind can not be used on ARM arch. is it wrong ?

                Pablo J. RoginaP Offline
                Pablo J. RoginaP Offline
                Pablo J. Rogina
                wrote on last edited by Pablo J. Rogina
                #7

                @MABahar said in slowly memory leakage durring linux-based process running:

                i think that Valgrind can not be used on ARM arch. is it wrong ?

                But even if it's not (I don't know) I guess that you could give it a try running your application under Linux for x86 for instance.
                That way if it's a "basic" or "common" leak (no OS dependent), you could still have some insights from that tool

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                1 Reply Last reply
                1

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved