Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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 (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. #wordpress nerds, i'm beating my head against the wall.

#wordpress nerds, i'm beating my head against the wall.

Scheduled Pinned Locked Moved Uncategorized
wordpress
13 Posts 6 Posters 0 Views
  • 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.
  • tati@eldritch.cafeT tati@eldritch.cafe

    #wordpress nerds, i'm beating my head against the wall.

    i help an org with a hosted wordpress setup. one of our board members needed to give some big files to someone and putting them in wordpress seemed like a safe and easy way to do it. i wouldn't have had any reason to think there would be a problem either.

    some time later, a couple of people went to work in an area that's handled by a heavy pig of a plugin. the site fell over, out of memory and thrashing.

    i don't believe the files were being downloaded at that moment. but deleting them put the site back to normal. i don't see any evidence of disk quotas, but i don't know all the ways to check for that in ubuntu.

    why could big-ass files knock a site over, and why could deleting them fix it immediately ?

    kiki@thegayagenda.fansK This user is from outside of this forum
    kiki@thegayagenda.fansK This user is from outside of this forum
    kiki@thegayagenda.fans
    wrote last edited by
    #2

    @tati@eldritch.cafe All I can think of is that the files were taking up too much of Wordpress’ allocated memory. Deleting the files immediately freed up the memory and fixed the issue.

    1 Reply Last reply
    0
    • tati@eldritch.cafeT tati@eldritch.cafe

      #wordpress nerds, i'm beating my head against the wall.

      i help an org with a hosted wordpress setup. one of our board members needed to give some big files to someone and putting them in wordpress seemed like a safe and easy way to do it. i wouldn't have had any reason to think there would be a problem either.

      some time later, a couple of people went to work in an area that's handled by a heavy pig of a plugin. the site fell over, out of memory and thrashing.

      i don't believe the files were being downloaded at that moment. but deleting them put the site back to normal. i don't see any evidence of disk quotas, but i don't know all the ways to check for that in ubuntu.

      why could big-ass files knock a site over, and why could deleting them fix it immediately ?

      jibsaram@68k.socialJ This user is from outside of this forum
      jibsaram@68k.socialJ This user is from outside of this forum
      jibsaram@68k.social
      wrote last edited by
      #3
      @tati@eldritch.cafe hi! 👋 The first thought that comes to mind is if those files are accessed (ie. downloaded) via a WordPress proxy path rather than a direct link, WordPress may be trying to load them entirely in memory as they pass through, which depending on your setup might be able to make everything rather memory constrained. Could that be a possible reason?
      tati@eldritch.cafeT 1 Reply Last reply
      0
      • jibsaram@68k.socialJ jibsaram@68k.social
        @tati@eldritch.cafe hi! 👋 The first thought that comes to mind is if those files are accessed (ie. downloaded) via a WordPress proxy path rather than a direct link, WordPress may be trying to load them entirely in memory as they pass through, which depending on your setup might be able to make everything rather memory constrained. Could that be a possible reason?
        tati@eldritch.cafeT This user is from outside of this forum
        tati@eldritch.cafeT This user is from outside of this forum
        tati@eldritch.cafe
        wrote last edited by
        #4

        @jibsaram hi ! i don't think so ? i assume they gave a direct url, but it's definitely worth asking, and it would explain memory pressure. as far as setup, this thing feels underprovisioned. i didn't notice that until i put a periodic monitor on it, but it has less total memory than the size of any one of those files. the plugin i call the 'pig' is sometimes slow to load and i now think it's because of swapping. i didn't notice other heavy plugins, but now i definitely need to check for anything intercepting downloads. thank you for the ideas !

        1 Reply Last reply
        0
        • tati@eldritch.cafeT tati@eldritch.cafe

          #wordpress nerds, i'm beating my head against the wall.

          i help an org with a hosted wordpress setup. one of our board members needed to give some big files to someone and putting them in wordpress seemed like a safe and easy way to do it. i wouldn't have had any reason to think there would be a problem either.

          some time later, a couple of people went to work in an area that's handled by a heavy pig of a plugin. the site fell over, out of memory and thrashing.

          i don't believe the files were being downloaded at that moment. but deleting them put the site back to normal. i don't see any evidence of disk quotas, but i don't know all the ways to check for that in ubuntu.

          why could big-ass files knock a site over, and why could deleting them fix it immediately ?

          ryse@mastodon.socialR This user is from outside of this forum
          ryse@mastodon.socialR This user is from outside of this forum
          ryse@mastodon.social
          wrote last edited by
          #5

          @tati Maybe upload, monitor, and then delete those files a couple more times to see if you can consistently reproduce this memory issue to rule out a spurious correlation. That's what I would do just to make sure it was in fact the files.

          If you have CLI access to the Ubuntu server, you can watch memory utilization in real-time with a tool called `htop`, check disk space utilization with `df -h`, and you might even check Apache/Nginx web server logs for errors around the time the site crashed.

          tati@eldritch.cafeT 1 Reply Last reply
          0
          • ryse@mastodon.socialR ryse@mastodon.social

            @tati Maybe upload, monitor, and then delete those files a couple more times to see if you can consistently reproduce this memory issue to rule out a spurious correlation. That's what I would do just to make sure it was in fact the files.

            If you have CLI access to the Ubuntu server, you can watch memory utilization in real-time with a tool called `htop`, check disk space utilization with `df -h`, and you might even check Apache/Nginx web server logs for errors around the time the site crashed.

            tati@eldritch.cafeT This user is from outside of this forum
            tati@eldritch.cafeT This user is from outside of this forum
            tati@eldritch.cafe
            wrote last edited by
            #6

            @ryse thank you. it is a managed environment so du was more useful than df, that's how we saw that there were huge files out there. we reflexively burned them when we saw them as they were the most recent change, and it worked, but obviously i'm still trying to figure out why. i'm told the uploads went fine which is why nobody suspected a problem.

            unfortunately our staging environment is provisioned differently from prod, and i wouldn't want to put prod in this spot again without having all-hands-on-deck outage prep. but since staging is smaller, we ought to see the problem more easily. that's something i'll try, thanks for helping me think straight. after something like this it's easy to go tasmanian devil and whack everything

            ryse@mastodon.socialR 1 Reply Last reply
            0
            • tati@eldritch.cafeT tati@eldritch.cafe

              @ryse thank you. it is a managed environment so du was more useful than df, that's how we saw that there were huge files out there. we reflexively burned them when we saw them as they were the most recent change, and it worked, but obviously i'm still trying to figure out why. i'm told the uploads went fine which is why nobody suspected a problem.

              unfortunately our staging environment is provisioned differently from prod, and i wouldn't want to put prod in this spot again without having all-hands-on-deck outage prep. but since staging is smaller, we ought to see the problem more easily. that's something i'll try, thanks for helping me think straight. after something like this it's easy to go tasmanian devil and whack everything

              ryse@mastodon.socialR This user is from outside of this forum
              ryse@mastodon.socialR This user is from outside of this forum
              ryse@mastodon.social
              wrote last edited by
              #7

              @tati Ah, gotcha. There are also WordPress plugins that can provide resource information and limitations right in WordPress (search: resource monitor). Maybe one of those would be helpful in staging as you do more testing. Good luck in your pursuit, and I hope you find the culprit. If all else fails, unleash the Tasmanian devil. 🌪️ 😂

              1 Reply Last reply
              0
              • tati@eldritch.cafeT tati@eldritch.cafe

                #wordpress nerds, i'm beating my head against the wall.

                i help an org with a hosted wordpress setup. one of our board members needed to give some big files to someone and putting them in wordpress seemed like a safe and easy way to do it. i wouldn't have had any reason to think there would be a problem either.

                some time later, a couple of people went to work in an area that's handled by a heavy pig of a plugin. the site fell over, out of memory and thrashing.

                i don't believe the files were being downloaded at that moment. but deleting them put the site back to normal. i don't see any evidence of disk quotas, but i don't know all the ways to check for that in ubuntu.

                why could big-ass files knock a site over, and why could deleting them fix it immediately ?

                iwein@mas.toI This user is from outside of this forum
                iwein@mas.toI This user is from outside of this forum
                iwein@mas.to
                wrote last edited by
                #8

                @tati caching is my guess. I'm not the expert you asked for, so I have no idea which settings of which plugin to suspect 😅

                But until you get better responses I'd look at the caching settings.

                The reason deleting fixes it may be that file not found is handled properly, and oom is not. By the plugin that's loading the file in memory... whichever that may be.
                From the sound of it, disk is not the problem.

                tati@eldritch.cafeT 1 Reply Last reply
                0
                • iwein@mas.toI iwein@mas.to

                  @tati caching is my guess. I'm not the expert you asked for, so I have no idea which settings of which plugin to suspect 😅

                  But until you get better responses I'd look at the caching settings.

                  The reason deleting fixes it may be that file not found is handled properly, and oom is not. By the plugin that's loading the file in memory... whichever that may be.
                  From the sound of it, disk is not the problem.

                  tati@eldritch.cafeT This user is from outside of this forum
                  tati@eldritch.cafeT This user is from outside of this forum
                  tati@eldritch.cafe
                  wrote last edited by
                  #9

                  @iwein thank you ! indeed there's nothing obvious yet. there's just a lot of stuff that doesn't look quite big enough. even if we don't establish repeatable root cause, 'all this stuff is too tight' is definitely actionable

                  iwein@mas.toI 1 Reply Last reply
                  0
                  • tati@eldritch.cafeT tati@eldritch.cafe

                    @iwein thank you ! indeed there's nothing obvious yet. there's just a lot of stuff that doesn't look quite big enough. even if we don't establish repeatable root cause, 'all this stuff is too tight' is definitely actionable

                    iwein@mas.toI This user is from outside of this forum
                    iwein@mas.toI This user is from outside of this forum
                    iwein@mas.to
                    wrote last edited by
                    #10

                    @tati users should not use the web server for file sharing, is a reasonable rule too imho. I mean 🤯

                    Anyway, that's probably the most help I'm going to be, so I'll stop talking now 🙇‍♀️

                    tati@eldritch.cafeT 1 Reply Last reply
                    0
                    • iwein@mas.toI iwein@mas.to

                      @tati users should not use the web server for file sharing, is a reasonable rule too imho. I mean 🤯

                      Anyway, that's probably the most help I'm going to be, so I'll stop talking now 🙇‍♀️

                      tati@eldritch.cafeT This user is from outside of this forum
                      tati@eldritch.cafeT This user is from outside of this forum
                      tati@eldritch.cafe
                      wrote last edited by
                      #11

                      @iwein i did get that message across 🙂

                      1 Reply Last reply
                      0
                      • tati@eldritch.cafeT tati@eldritch.cafe

                        #wordpress nerds, i'm beating my head against the wall.

                        i help an org with a hosted wordpress setup. one of our board members needed to give some big files to someone and putting them in wordpress seemed like a safe and easy way to do it. i wouldn't have had any reason to think there would be a problem either.

                        some time later, a couple of people went to work in an area that's handled by a heavy pig of a plugin. the site fell over, out of memory and thrashing.

                        i don't believe the files were being downloaded at that moment. but deleting them put the site back to normal. i don't see any evidence of disk quotas, but i don't know all the ways to check for that in ubuntu.

                        why could big-ass files knock a site over, and why could deleting them fix it immediately ?

                        threadi@mastodon.socialT This user is from outside of this forum
                        threadi@mastodon.socialT This user is from outside of this forum
                        threadi@mastodon.social
                        wrote last edited by
                        #12

                        @tati That does sound very strange. Where exactly were the files located? In /wp-content/uploads/? Simply deleting them there could backfire, since WordPress creates database entries for all files; deleting the files doesn’t remove these entries - it just leaves empty shells with no content.

                        threadi@mastodon.socialT 1 Reply Last reply
                        0
                        • threadi@mastodon.socialT threadi@mastodon.social

                          @tati That does sound very strange. Where exactly were the files located? In /wp-content/uploads/? Simply deleting them there could backfire, since WordPress creates database entries for all files; deleting the files doesn’t remove these entries - it just leaves empty shells with no content.

                          threadi@mastodon.socialT This user is from outside of this forum
                          threadi@mastodon.socialT This user is from outside of this forum
                          threadi@mastodon.social
                          wrote last edited by
                          #13

                          @tati I would only see a memory issue if the files were being served via PHP. However, WordPress always links to files directly, without such a detour. Unless, of course, you’re using a plugin that handles this, e.g. a download counter. I’m therefore strongly suspecting that either a plugin you’re using or hosting limits are to blame. WordPress itself can handle files of any size (I know this because I’ve tested exactly these scenarios many times w/ my plugin External Files in Media Library).

                          1 Reply Last reply
                          0
                          • R relay@relay.infosec.exchange shared this topic
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups