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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    LAMP / Grav : App smallest footprint ?

    Discuss
    4
    7
    225
    Loading More Posts
    • 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.
    • timconsidine
      timconsidine App Dev last edited by

      I have couple domains which need a small static files website.
      I have done this with LAMP which shows in Cloudron AppStore as requiring min 256Mb RAM.
      But interestingly Grav shows the same but has advantage of website design & page management built in.

      Is there a way of comparing the load on my Cloudron instance of an app, and specifically is a LAMP deployment lighter, same or heavier than Grav ?

      Just wanting to avoid bogging down my Cloudron instance with small low-priority app deployments.

      nebulon murgero 2 Replies Last reply Reply Quote 0
      • nebulon
        nebulon Staff @timconsidine last edited by nebulon

        @timconsidine the number shown there is the default maximum memory limit set for an app. 256MB is the lowest we publish app packages, however this does not at all mean they will also consume that much. In fact this is only the limit when the system will restart them, since they appear to use up too much.

        Generally it is very hard to predict memory consumption, as it varies greatly based on user patterns of the apps, so you can install the options and then after some time check the actual memory consumption of each one for your use-case.

        As a heads up, for static websites there is also the surfer app, which is very lightweight as well.

        Edit: I've moved this topic do the discuss section of the forum since it may be useful for others as well and is not specific to any one app.

        timconsidine 1 Reply Last reply Reply Quote 1
        • murgero
          murgero App Dev @timconsidine last edited by

          @timconsidine Speaking specifically to PHP based apps, LAMP is probably heavier CPU wise depending on how the grav app is setup.

          If you are only going to be using Grav, I'd setup the specific app for it, unless you plan to do development or using a different version of Grav.

          Also, depending on your hosting, it really shouldn't make that much of a performance difference if you run 1 Grav app or 5.

          As for comparing resources used, you can install both Grav and LAMP apps and run them for awhile and check the system charts for RAM and CPU usage. (You can do this on the cloudron server via terminal as well using htop / docker commands)

          --
          https://urgero.org
          ~ Professional Nerd. Freelance Programmer. ~
          Matrix: @murgero:urgero.org

          timconsidine 1 Reply Last reply Reply Quote 1
          • timconsidine
            timconsidine App Dev @nebulon last edited by

            @nebulon thank you
            Understood
            Yeah I forgot about surfer, will check it out

            1 Reply Last reply Reply Quote 0
            • timconsidine
              timconsidine App Dev @murgero last edited by

              @murgero thank you
              Yes, I guess somewhere in my dusty brain spaces I was worried about PHP as not the most efficient, especially when it's just static files. Although no PHP running in them, I was not clear what "app overhead" there might be affecting them.

              I will do a trial Grav from Cloudron store

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @timconsidine last edited by

                @timconsidine If the idea is static sites, using Surfer + Static HTML+CSS+JS might yield better performance. You do lose the convenience of the UI Grav gives you though.

                timconsidine 1 Reply Last reply Reply Quote 3
                • timconsidine
                  timconsidine App Dev @Guest last edited by timconsidine

                  @atrilahiji thank you, yes.
                  I moved a LAMP with a basic landing page setup to Surfer.
                  Certainly seems like it should be a lighter setup.

                  Surfer seems good for static (html/css/js) sites which are static (rarely changing).

                  Grav seems good for sites which might need more content changes. Will try to monitor what resources Grav consumes.

                  Generally I am a fan of Hugo as SSG but Grav looks a slicker quicker-to-maintain option.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB