Troubleshooting The Downtime We've Had Because Of Server Failure

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?
 
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:
Code:
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.
 
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:
Code:
for i in `find . -name "*.php"`; do grep -H setMemoryLimit $i; done;
 
Top Bottom