• I always had a question floating around in my head, the answer to which I always received vaguely.

    If my server has 8GB of RAM, but my WordPress site only uses 1024MB (which I specified in wp-config). What happens to the rest of the memory?

    Let’s say I have 100,000 visitors. The server can handle these visitors thanks to the 1024 MB that I indicated, or with the help of the rest of 7 GB that is? I want to understand where the remaining 7 GB are used and what they are used for in specific cases.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Each WordPress instance can use up to 1GB (which is a crazy large amount of memory to allow). As you add visitors, you may find additional instances of apache (or nginx) and PHP created that are all using memory.

    Thread Starter Web Developer

    (@edgar1999)

    Thanks for the answer, it’s interesting to know, but what happens if I put 2GB? Since WordPress only uses a maximum of 1GB? Will this 1 GB go to Apache services?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Why? You’re confusing things. Each PHP instance of WP uses only as much memory as it needs. There’s no reason at all to give the abiility to use 2GB to WP. Typically, sites are set in the range 128MB to 256MB. The operating system will allocate memory to things as needed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress Memory Limit in wp-config’ is closed to new replies.