1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Troubleshooting The Downtime We've Had Because Of Server Failure

Discussion in 'Server Configuration and Hosting' started by TheBigK, Jul 4, 2013.

  1. TheBigK

    TheBigK Well-Known Member

    About 5 days ago, we had a server failure and I had my host admin troubleshoot it for us. They asked me following questions and I thought I'd better get the answers from experts here.

    1) What scripts on your website would need more then a memory_limit of 70M and be using ini_set to get it.

    2) How much memory do they require on average and how can they be tested to ensure they work properly.

    Can someone please help me find the answers to above questions?
  2. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    To answer question 1), you would have to look for "ini_set" in all php files in your directory structure to find if any of your addons is using this PHP function.
    If you have SSH access, just run this shell command from your xenforo root folder:
    for i in `find . -name "*.php"`; do grep -l ini_set $i; done;
    Eventually paste the output here if you do no find your answer and want someone to have a look.
  3. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    I've found that XenForo has a wrapper that uses ini_set('memory_limit', $limit). You'll also have to look for the setMemoryLimit function usage. Run this additional command to find it:
    for i in `find . -name "*.php"`; do grep -H setMemoryLimit $i; done;
    CyclingTribe likes this.
  4. TheBigK

    TheBigK Well-Known Member

    @ManOnDaMoon : Thanks! :) I'll have them take a look at this.

Share This Page