Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT applications occupy CPU resources have been very high
Qt 6.11 is out! See what's new in the release blog

QT applications occupy CPU resources have been very high

Scheduled Pinned Locked Moved Unsolved General and Desktop
16 Posts 6 Posters 3.4k Views 3 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.
  • C Offline
    C Offline
    Charlie_Hdz
    wrote on last edited by
    #2

    I don't remember having problems with resources in Qt Implementation.

    Did you developed the "Qt application" or where did you get it?

    BTW, being based in C++, Qt is intended to not take too much resources... Compared with Java and similars.

    Kind Regards,

    Carlos

    Kind Regards,
    Enrique Hernandez
    gearstech.com.mx
    chernandez@gearstech.com.mx

    1 Reply Last reply
    1
    • R Roy.Wang

      In the Linuxs system ,Start a simple QT application without doing anything.CPU resources occupy almost 0 .
      However, after the system sleep wakeup, the QT application CPU resources occupy a high, has been maintained at around 25%, can not go down !

      As shown in the following figure

      0_1506427798694_cputest.png

      DvrUI is the QT application.
      Don't let it CPU up so high ,How to deal with such problems?.

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

      @Roy.Wang What is VideoPro? It is consuming 183% of your memory!
      The high CPU usage of your app could be caused by your app constantly swapping memory RAM <-> disk, because all your RAM is occupied by VideoPro!

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

      J.HilkJ R 2 Replies Last reply
      3
      • jsulmJ jsulm

        @Roy.Wang What is VideoPro? It is consuming 183% of your memory!
        The high CPU usage of your app could be caused by your app constantly swapping memory RAM <-> disk, because all your RAM is occupied by VideoPro!

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #4

        @jsulm It consumes more memory than it's allowed to, sounds like something done in java
        :D


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        jsulmJ 1 Reply Last reply
        0
        • J.HilkJ J.Hilk

          @jsulm It consumes more memory than it's allowed to, sounds like something done in java
          :D

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

          @J.Hilk Well, I guess it is 183% of physical memory :-)

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

          1 Reply Last reply
          0
          • mrdebugM Offline
            mrdebugM Offline
            mrdebug
            wrote on last edited by
            #6

            dvrui maybe it is a gui program that display a video stream.
            Really is there someone that writes a daemon software for embedded devices in Java?

            Need programmers to hire?
            www.labcsp.com
            www.denisgottardello.it
            GMT+1
            Skype: mrdebug

            1 Reply Last reply
            0
            • R Roy.Wang

              In the Linuxs system ,Start a simple QT application without doing anything.CPU resources occupy almost 0 .
              However, after the system sleep wakeup, the QT application CPU resources occupy a high, has been maintained at around 25%, can not go down !

              As shown in the following figure

              0_1506427798694_cputest.png

              DvrUI is the QT application.
              Don't let it CPU up so high ,How to deal with such problems?.

              A Offline
              A Offline
              ambershark
              wrote on last edited by
              #7

              @Roy.Wang Does any other Qt application exhibit this same behavior? That would probably be more application based rather than a Qt thing.

              I'm betting dvrui uses some type of hardware (just guessing based on it's name). So when the pc sleeps and shuts down that hardware, then comes back up, the application isn't deal with that loss and reacquire properly.

              Totally guessing though. That's why you should test with any other Qt application to find out if it's dvrui or Qt.

              My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

              R 1 Reply Last reply
              0
              • A ambershark

                @Roy.Wang Does any other Qt application exhibit this same behavior? That would probably be more application based rather than a Qt thing.

                I'm betting dvrui uses some type of hardware (just guessing based on it's name). So when the pc sleeps and shuts down that hardware, then comes back up, the application isn't deal with that loss and reacquire properly.

                Totally guessing though. That's why you should test with any other Qt application to find out if it's dvrui or Qt.

                R Offline
                R Offline
                Roy.Wang
                wrote on last edited by
                #8

                @ambershark

                DvrUI is a simple QT application without doing anything.

                This happens in all QT applications

                A 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Roy.Wang What is VideoPro? It is consuming 183% of your memory!
                  The high CPU usage of your app could be caused by your app constantly swapping memory RAM <-> disk, because all your RAM is occupied by VideoPro!

                  R Offline
                  R Offline
                  Roy.Wang
                  wrote on last edited by
                  #9

                  @jsulm VideoPro is a video program, I do not start it, DvrUI sleep back, will also have to occupy such a high CPU resources

                  DvrUI is a simple QT application without doing anything.No interfaces are called.

                  This happens in all QT applications

                  jsulmJ 1 Reply Last reply
                  0
                  • R Roy.Wang

                    @jsulm VideoPro is a video program, I do not start it, DvrUI sleep back, will also have to occupy such a high CPU resources

                    DvrUI is a simple QT application without doing anything.No interfaces are called.

                    This happens in all QT applications

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

                    @Roy.Wang Is it the same if VideoPro is not running?
                    "I do not start it" - it is running as you can see in your screen-shot.

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

                    R 2 Replies Last reply
                    0
                    • jsulmJ jsulm

                      @Roy.Wang Is it the same if VideoPro is not running?
                      "I do not start it" - it is running as you can see in your screen-shot.

                      R Offline
                      R Offline
                      Roy.Wang
                      wrote on last edited by
                      #11

                      @jsulm Yes

                      1 Reply Last reply
                      0
                      • jsulmJ jsulm

                        @Roy.Wang Is it the same if VideoPro is not running?
                        "I do not start it" - it is running as you can see in your screen-shot.

                        R Offline
                        R Offline
                        Roy.Wang
                        wrote on last edited by
                        #12

                        @jsulm it is the same if VideoPro is not running,
                        The DvrUI app, CPU resources occupy a high (25%).

                        jsulmJ 1 Reply Last reply
                        0
                        • R Roy.Wang

                          @jsulm it is the same if VideoPro is not running,
                          The DvrUI app, CPU resources occupy a high (25%).

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

                          @Roy.Wang What is the device where you have this issue?

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

                          R 1 Reply Last reply
                          0
                          • jsulmJ jsulm

                            @Roy.Wang What is the device where you have this issue?

                            R Offline
                            R Offline
                            Roy.Wang
                            wrote on last edited by
                            #14

                            @jsulm a linux system device

                            J.HilkJ 1 Reply Last reply
                            0
                            • R Roy.Wang

                              @jsulm a linux system device

                              J.HilkJ Offline
                              J.HilkJ Offline
                              J.Hilk
                              Moderators
                              wrote on last edited by mrjj
                              #15

                              @Roy.Wang Thats as detailed of an Answer as "A blue one" is to the question "What car do you drive?"


                              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                              Q: What's that?
                              A: It's blue light.
                              Q: What does it do?
                              A: It turns blue.

                              1 Reply Last reply
                              2
                              • R Roy.Wang

                                @ambershark

                                DvrUI is a simple QT application without doing anything.

                                This happens in all QT applications

                                A Offline
                                A Offline
                                ambershark
                                wrote on last edited by
                                #16

                                @Roy.Wang said in QT applications occupy CPU resources have been very high:

                                @ambershark

                                DvrUI is a simple QT application without doing anything.

                                This happens in all QT applications

                                What other Qt applications have displayed that behavior? Are you sure it's all of them, or just the dvr related ones that you have tried?

                                Also can you run an strace and see what they are doing that is using the high amount of cpu? That should help in tracking it down.

                                Qt obviously isn't designed to do that and it seems specific to your machine, so maybe strace can give us an idea of what is causing the cpu to spin like that.

                                My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                                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