Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Invoice Ninja
  3. CPU avg 25% with just one Active invoice

CPU avg 25% with just one Active invoice

Scheduled Pinned Locked Moved Invoice Ninja
performance
8 Posts 4 Posters 82 Views 4 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.
  • T Offline
    T Offline
    techy
    wrote last edited by
    #1

    I'm curious if anyone has any insights as to why my invoice ninja would be using an average of 25% CPU for hours, sometimes days, with only one active invoice and practically no user/client activity. It seems to me it should be idle. Thanks for any insight. Thanks
    I'm using the current version 5.11.80

    1 Reply Last reply
    1
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote last edited by
      #2

      Do you see any obvious processes showing up in top / htop via SSH which could give any hint here?

      1 Reply Last reply
      1
      • T Offline
        T Offline
        techy
        wrote last edited by techy
        #3

        I'll have to learn how to look back at the logs. For years everything was fine and stable so I didn't get into the tech much.

        For the past month the whole system has been going crazy every few days. The CPU would go to 137% for over an hour and nothing was accessible. The cloudron-support --troubleshoot would slowly show everything was ok, with an added 'fgets: Connection reset by peer'. Everything would eventually come back to life.

        I keep hoping an update from an app or Ubuntu would fix it. Next time it happens I'll check top/htop live.

        Now updated to 5.11.82

        jamesJ 1 Reply Last reply
        2
        • T techy

          I'll have to learn how to look back at the logs. For years everything was fine and stable so I didn't get into the tech much.

          For the past month the whole system has been going crazy every few days. The CPU would go to 137% for over an hour and nothing was accessible. The cloudron-support --troubleshoot would slowly show everything was ok, with an added 'fgets: Connection reset by peer'. Everything would eventually come back to life.

          I keep hoping an update from an app or Ubuntu would fix it. Next time it happens I'll check top/htop live.

          Now updated to 5.11.82

          jamesJ Offline
          jamesJ Offline
          james
          Staff
          wrote last edited by
          #4

          Hello @techy

          This might not be the case for you, just a cautious tale that high CPU usage / load can also be caused by something completely different.

          Recently I had a VPS system that had a ridiculous high load without doing anything special.
          And it was suddenly, from one day to another.
          Thanks to excessive monitoring I could see that the IOWAIT was suddenly extremely high.
          It turned out, the underlaying RAID from the provider had multiple failing disks and that is why my VM was having such trouble with the Disk.

          T 1 Reply Last reply
          3
          • humptydumptyH Offline
            humptydumptyH Offline
            humptydumpty
            wrote last edited by
            #5

            IN never registers any usage spikes for me even when there's traffic/usage. The 30 day graph is consistently low. The RAM is under 300 MB idle with spikes of 550MB and CPU is 0.2%. The app's been pretty solid if you don't account for the occasional PDF issues. @james might be on to something.

            image.png

            T 1 Reply Last reply
            2
            • jamesJ james

              Hello @techy

              This might not be the case for you, just a cautious tale that high CPU usage / load can also be caused by something completely different.

              Recently I had a VPS system that had a ridiculous high load without doing anything special.
              And it was suddenly, from one day to another.
              Thanks to excessive monitoring I could see that the IOWAIT was suddenly extremely high.
              It turned out, the underlaying RAID from the provider had multiple failing disks and that is why my VM was having such trouble with the Disk.

              T Offline
              T Offline
              techy
              wrote last edited by
              #6

              @james Thanks for the suggestion. I setup a support ticket with Linode and they responded back that everything looked good hardware wise. They gave me the following suggested commands to check the system:

              Check for steal percentages by reviewing the %steal values from the following command:
              iostat 1 10

              Check for processes stuck in a 'D' state :
              for x in seq 1 1 30; do ps -eo state,pid,cmd | grep "^D"; echo "-"; sleep 2; done

              Investigate processes using the most CPU time:
              top -bn 1 | head -15

              Additionally, you can run this command during the excessive CPU usage:
              ps fax o uid,%cpu,%mem,time,comm | awk '0+$0 == 999 {print}

              Everything checked out normal. I'll keep an eye on it.

              1 Reply Last reply
              1
              • humptydumptyH humptydumpty

                IN never registers any usage spikes for me even when there's traffic/usage. The 30 day graph is consistently low. The RAM is under 300 MB idle with spikes of 550MB and CPU is 0.2%. The app's been pretty solid if you don't account for the occasional PDF issues. @james might be on to something.

                image.png

                T Offline
                T Offline
                techy
                wrote last edited by
                #7

                @humptydumpty Thanks for the insight. Yeah, it has been pretty stable over the years. And the pdf issue is an easy enough fix when it happens.

                I wonder if my payment provider Stripe could be querring my data and causing this. Any ideas on how to check that?

                Thanks

                humptydumptyH 1 Reply Last reply
                1
                • T techy

                  @humptydumpty Thanks for the insight. Yeah, it has been pretty stable over the years. And the pdf issue is an easy enough fix when it happens.

                  I wonder if my payment provider Stripe could be querring my data and causing this. Any ideas on how to check that?

                  Thanks

                  humptydumptyH Offline
                  humptydumptyH Offline
                  humptydumpty
                  wrote last edited by
                  #8

                  @techy I use Stripe too, but no clue how to check for that.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search