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. Support
  3. Cloudron performance issues

Cloudron performance issues

Scheduled Pinned Locked Moved Solved Support
graphsperformance
20 Posts 5 Posters 2.9k 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.
  • S Offline
    S Offline
    shrey
    wrote on last edited by girish
    #1

    Current configuration of things:

    1. Cloudron DO Server: 16GB RAM / 8 Intel CPU / Ubuntu 22.04

    Issue:

    • Certain apps keep running out of memory. Currently, it's metabase:

    b936edbf-36b3-407c-b1ff-896e710f818a-image.png

    e8bcde14-d1fc-4989-89a4-def15d562792-image.png

    a92cc898-ab26-48da-b702-925f187d5c96-image.png

    55ccc58c-f253-4cd3-ba44-aab0eb2d8b21-image.png

    • Droplet 15-minute load Average, keeps shooting up, every day
    • All this, while the Cloudron graphs don't seem to reflect these anomalies (as seen above)

    Droplet graphs shown below:

    49fc6faa-beec-4642-a85c-6c42232ad7ce-image.png

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

      The Cloudron graphs are not showing short-time hikes as such, they are an average over time. Looking at the DO graphs, it seems that your system overall simply runs out of memory on a spiked memory requirement (in this case metabase). The actual memory limit set in Cloudron is only the upper limit, but if you overcommit the physical memory availalbe to the system, then this limit is not very useful.

      S 1 Reply Last reply
      0
      • nebulonN nebulon

        The Cloudron graphs are not showing short-time hikes as such, they are an average over time. Looking at the DO graphs, it seems that your system overall simply runs out of memory on a spiked memory requirement (in this case metabase). The actual memory limit set in Cloudron is only the upper limit, but if you overcommit the physical memory availalbe to the system, then this limit is not very useful.

        S Offline
        S Offline
        shrey
        wrote on last edited by shrey
        #3

        @nebulon Thanks for the detailed response.

        Based on the "System info" graphs:

        1. The System memory never reaches 16 GB, but the DO resources are maxing out. Is the difference being consumed by the Cloudron 'OS', and if yes, then it should be reflected in the System info graphs, right?
        2. It's not possible to tell what makes up the memory usage, as only 2 apps (which consume more than 1 GB each) are shown. How do find out who's using all the memory, without having to open up each of the apps individually?
        timconsidineT 1 Reply Last reply
        1
        • S shrey

          @nebulon Thanks for the detailed response.

          Based on the "System info" graphs:

          1. The System memory never reaches 16 GB, but the DO resources are maxing out. Is the difference being consumed by the Cloudron 'OS', and if yes, then it should be reflected in the System info graphs, right?
          2. It's not possible to tell what makes up the memory usage, as only 2 apps (which consume more than 1 GB each) are shown. How do find out who's using all the memory, without having to open up each of the apps individually?
          timconsidineT Offline
          timconsidineT Offline
          timconsidine
          App Dev
          wrote on last edited by
          #4

          @shrey maybe something like grafana and prometheus will be better for detailed monitoring ?

          S 1 Reply Last reply
          0
          • timconsidineT timconsidine

            @shrey maybe something like grafana and prometheus will be better for detailed monitoring ?

            S Offline
            S Offline
            shrey
            wrote on last edited by
            #5

            @timconsidine Is there an existing Cloudron API that could be used to fetch and feed the required data to, eg. Grafana?

            timconsidineT 1 Reply Last reply
            0
            • S shrey

              @timconsidine Is there an existing Cloudron API that could be used to fetch and feed the required data to, eg. Grafana?

              timconsidineT Offline
              timconsidineT Offline
              timconsidine
              App Dev
              wrote on last edited by
              #6

              @shrey Grafana and Prometheus are both available on Cloudron, but I haven't set them up to monitor Cloudron apps. Sorry. But I think others here. Maybe some guidance in the Grafana and Prometheus sections. But I haven't checked.

              1 Reply Last reply
              0
              • nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #7

                I think @BrutalBirdie has various setups in this direction with great graph support.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  shrey
                  wrote on last edited by
                  #8

                  @nebulon is there any API to access the data in the graphs in each of the individual apps?

                  S 1 Reply Last reply
                  0
                  • BrutalBirdieB Offline
                    BrutalBirdieB Offline
                    BrutalBirdie
                    Partner
                    wrote on last edited by
                    #9

                    The graphs I got are from my Zabbix monitoring. So I can't be of help directly.

                    Like my work? Consider donating a drink. Cheers!

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      plusone-nick
                      wrote on last edited by
                      #10

                      Have had similar pain points as OP

                      What happened to the previous analytics? It used to display individual resources for apps in the graph - was way better than now.

                      +1 for a dedicated API designed for monitoring apps in Cloudron

                      ✌💙+1

                      1 Reply Last reply
                      1
                      • S shrey

                        @nebulon is there any API to access the data in the graphs in each of the individual apps?

                        S Offline
                        S Offline
                        shrey
                        wrote on last edited by
                        #11

                        Hi @nebulon, kindly provide some or the other workaround for this issue, for the time-being.

                        timconsidineT 1 Reply Last reply
                        0
                        • S shrey

                          Hi @nebulon, kindly provide some or the other workaround for this issue, for the time-being.

                          timconsidineT Offline
                          timconsidineT Offline
                          timconsidine
                          App Dev
                          wrote on last edited by
                          #12

                          @shrey have you looked at "traditional" linux tools like top ?
                          I'm not sure it's Cloudron's realm to provide detailed app monitoring

                          S 1 Reply Last reply
                          0
                          • timconsidineT timconsidine

                            @shrey have you looked at "traditional" linux tools like top ?
                            I'm not sure it's Cloudron's realm to provide detailed app monitoring

                            S Offline
                            S Offline
                            shrey
                            wrote on last edited by
                            #13

                            Hi @timconsidine

                            1. Never came across "top" before, will check it out.

                            @timconsidine said in Cloudron performance issues:

                            I'm not sure it's Cloudron's realm to provide detailed app monitoring

                            A bit surprised at this.
                            Cloudron currently does provide this:
                            18e48207-4dee-4c08-af30-bf235af401ef-image.png

                            So, why would the possibility of providing monitoring for all the apps, and not just the heavy-consumer ones be 'out of Cloudron's realm' ?

                            And enough mechanism (to create the above graphs) already seems to be present, so i'm a bit astounded to be told that even a workaround's not really feasible.

                            1 Reply Last reply
                            0
                            • nebulonN Offline
                              nebulonN Offline
                              nebulon
                              Staff
                              wrote on last edited by
                              #14

                              The reason we only show the apps with high resource usage is, since usually most apps would then just show a line on the bottom of the graph without real usefulness. The blue line is the cumulative whole system resource usage, so all things together.

                              We usually aim for some tradeoff between exposing technical detail and usability. As mentioned you have to fallback to native linux tooling for more profiling, but all in all I am not sure you look for the right things in the first place. To come back to the original issue, mattermost ran out of memory, this can either be due to the set memory-limit (which is most likely not the case since yours is at 6Gb) or the system itsel ran out of memory, which seems more likely looking at the usage. Note also that linux kills (and Cloudron will restart) processes as soon as memory runs out, so this very point in time may or may not be visible in a graph, but also its of little value in my opinion.

                              Further note that not just apps use up memory but also database services (see the services view) and system components itself.

                              S 1 Reply Last reply
                              1
                              • nebulonN nebulon

                                The reason we only show the apps with high resource usage is, since usually most apps would then just show a line on the bottom of the graph without real usefulness. The blue line is the cumulative whole system resource usage, so all things together.

                                We usually aim for some tradeoff between exposing technical detail and usability. As mentioned you have to fallback to native linux tooling for more profiling, but all in all I am not sure you look for the right things in the first place. To come back to the original issue, mattermost ran out of memory, this can either be due to the set memory-limit (which is most likely not the case since yours is at 6Gb) or the system itsel ran out of memory, which seems more likely looking at the usage. Note also that linux kills (and Cloudron will restart) processes as soon as memory runs out, so this very point in time may or may not be visible in a graph, but also its of little value in my opinion.

                                Further note that not just apps use up memory but also database services (see the services view) and system components itself.

                                S Offline
                                S Offline
                                shrey
                                wrote on last edited by
                                #15

                                @nebulon said in Cloudron performance issues:

                                most apps would then just show a line on the bottom of the graph without real usefulness.

                                not in the case of a stacked line graph.

                                @nebulon said in Cloudron performance issues:

                                Further note that not just apps use up memory but also database services (see the services view) and system components itself.

                                So, the question remains: what's a reliable way of knowing, on a continuous basis, which of the apps/services/system components is consuming.

                                If it's indeed 'native linux tooling, is there any recommended/existing way of implementing it, that could be shared here?

                                Because, currently, the situation is somewhat of an opaque black box.

                                @nebulon said in Cloudron performance issues:

                                see the services view

                                Btw, this just gives a real-time estimate (that too, only visual) of the memory usage.

                                1 Reply Last reply
                                0
                                • nebulonN Offline
                                  nebulonN Offline
                                  nebulon
                                  Staff
                                  wrote on last edited by
                                  #16

                                  We had experimented with a stacked line graph, but similar to showing lines at the bottom it was very noisy, and the question remains, what is the actual use-case here. If no other app is consuming a lot of memory then it is the cumulative memory usage keeping your system occupied.

                                  For point-in-time consumption, assuming that processes do not jump drastically all the time, top or htop are good tools to hunt down things.

                                  Also note that apps have their own graphs in the app configure view.

                                  I do understand the urge to see detailed resource consumption, but that is a bit of a product on its own and not at the center of Cloudron's vision. Tools like zabbix are the way to go then, but they require more knowledge about how to set up and often make more sense as a monitoring product on separate servers together with uptime monitoring.

                                  Do you generally have an issue that apps kept getting restarted out of memory or did this thread diverge to feature requests for Cloudrons sysadmin monitoring capabilities?

                                  S 1 Reply Last reply
                                  3
                                  • nebulonN nebulon

                                    We had experimented with a stacked line graph, but similar to showing lines at the bottom it was very noisy, and the question remains, what is the actual use-case here. If no other app is consuming a lot of memory then it is the cumulative memory usage keeping your system occupied.

                                    For point-in-time consumption, assuming that processes do not jump drastically all the time, top or htop are good tools to hunt down things.

                                    Also note that apps have their own graphs in the app configure view.

                                    I do understand the urge to see detailed resource consumption, but that is a bit of a product on its own and not at the center of Cloudron's vision. Tools like zabbix are the way to go then, but they require more knowledge about how to set up and often make more sense as a monitoring product on separate servers together with uptime monitoring.

                                    Do you generally have an issue that apps kept getting restarted out of memory or did this thread diverge to feature requests for Cloudrons sysadmin monitoring capabilities?

                                    S Offline
                                    S Offline
                                    shrey
                                    wrote on last edited by shrey
                                    #17

                                    @nebulon Thanks for all the details.

                                    For point-in-time consumption, assuming that processes do not jump drastically all the time, top or htop are good tools to hunt down things.

                                    Will check them out.

                                    Do you generally have an issue that apps kept getting restarted out of memory or did this thread diverge to feature requests for Cloudrons sysadmin monitoring capabilities?

                                    Not generally, but when i do, it would be really helpful to know which of my 50+ apps probably caused it. Based on my current resource allocation structure, even a spike of e.g. 250MB to 900MB could be responsible for a crash, and yet, not be visible in the Graphs (in the current scenario).

                                    So, to answer your question, no, i don't usually run into this sort of issue, but based on this particular incident (which happened multiple times in the past few days), i realised that a better visibility into Cloudron's existing monitoring systems is highly desirable.

                                    timconsidineT 1 Reply Last reply
                                    1
                                    • S shrey

                                      @nebulon Thanks for all the details.

                                      For point-in-time consumption, assuming that processes do not jump drastically all the time, top or htop are good tools to hunt down things.

                                      Will check them out.

                                      Do you generally have an issue that apps kept getting restarted out of memory or did this thread diverge to feature requests for Cloudrons sysadmin monitoring capabilities?

                                      Not generally, but when i do, it would be really helpful to know which of my 50+ apps probably caused it. Based on my current resource allocation structure, even a spike of e.g. 250MB to 900MB could be responsible for a crash, and yet, not be visible in the Graphs (in the current scenario).

                                      So, to answer your question, no, i don't usually run into this sort of issue, but based on this particular incident (which happened multiple times in the past few days), i realised that a better visibility into Cloudron's existing monitoring systems is highly desirable.

                                      timconsidineT Offline
                                      timconsidineT Offline
                                      timconsidine
                                      App Dev
                                      wrote on last edited by timconsidine
                                      #18

                                      @shrey said in Cloudron performance issues:

                                      even a spike of e.g. 250MB to 900MB could be responsible for a crash

                                      In my experience, even the best monitoring in all the world is not going to resolve that situation.
                                      It is indicative of a server working close to its limits.
                                      If all is going well for you, then that's good.
                                      If that were my situation, I would be considering a server upgrade.
                                      I appreciate that could be costly on DO, but last time I looked, Hetzner have good offerings (especially in their Auction section).

                                      S 1 Reply Last reply
                                      0
                                      • timconsidineT timconsidine

                                        @shrey said in Cloudron performance issues:

                                        even a spike of e.g. 250MB to 900MB could be responsible for a crash

                                        In my experience, even the best monitoring in all the world is not going to resolve that situation.
                                        It is indicative of a server working close to its limits.
                                        If all is going well for you, then that's good.
                                        If that were my situation, I would be considering a server upgrade.
                                        I appreciate that could be costly on DO, but last time I looked, Hetzner have good offerings (especially in their Auction section).

                                        S Offline
                                        S Offline
                                        shrey
                                        wrote on last edited by
                                        #19

                                        @timconsidine said in Cloudron performance issues:

                                        If that were my situation, I would be considering a server upgrade.
                                        I appreciate that could be costly on DO, but last time I looked, Hetzner have good offerings (especially in their Auction section).

                                        Thanks.
                                        Indeed, DO gets costly very quickly, but i believe Hetzner doesn't have any datacenters in my region, unfortunately.

                                        1 Reply Last reply
                                        0
                                        • timconsidineT Offline
                                          timconsidineT Offline
                                          timconsidine
                                          App Dev
                                          wrote on last edited by
                                          #20

                                          Understood. I am in UK but use Hetzner in DE, and don't have any performance issues.

                                          1 Reply Last reply
                                          0
                                          • girishG girish marked this topic as a question on
                                          • girishG girish has marked this topic as solved on
                                          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