Hi,
I'm using MediaWiki 1.34 on an Apache server.
My website has been generating a lot of 500 internal server errors and my web host thinks this may be due to Media Wiki high memory usage. Here's what they told me and I would be grateful for any suggestions from people with more knowledge than I have.
"Please note that all shared servers are running with Cloud Linux. This software allows us to isolate our customer’s usage on the server and provide more stability for our shared customers. With Cloud Linux, each account has following server resource limit:
2% CPU and MEMORY,
0.4% for MySQL or 5000 Total Connections
20% for Top Processes.
When those values are reached by an account the website's loading time will decrease due to those limitations and errors will appear i.e. 500 internal server error.
I have checked your cPanel>CPU and Concurrent Connection Usage>Snapshots, select the latest date/time, and found the following processes have been run by your account:
-------------------------------------------------------
PID CMD CPU MEM
-------------------------------------------------------
1557937 /opt/cpanel/ea-php72/root/usr/bin/php-cgi /home/xxxxx/public_html/wiki/load.php N/A 15
1557945 /opt/cpanel/ea-php72/root/usr/bin/php-cgi /home/xxxxx/public_html/wiki/load.php N/A 11
1557946 /opt/cpanel/ea-php72/root/usr/bin/php-cgi /home/xxxxx/public_html/wiki/load.php N/A 11
2244977 /opt/cpanel/ea-php72/root/usr/bin/php-cgi /home/xxxxx/public_html/wiki/load.php 0% 3
2251525 /opt/cpanel/ea-php72/root/usr/bin/php-cgi /home/xxxxx/public_html/wiki/load.php 0% 3
3299917 /opt/cpanel/ea-php72/root/usr/bin/php-cgi /home/xxxxx/public_html/wiki/load.php 0% 3
3688868 /opt/cpanel/ea-php72/root/usr/bin/php-cgi /home/xxxxx/public_html/wiki/load.php 0% 3
-------------------------------------------------------
This indicates the 500 internal server error was caused by high memory usage from MediaWiki installation under /public_html/wiki/ directory. You may need to consult MediaWiki support desk to see if they have a patch or update script to fix the high usage."