Skip to content

Instantly share code, notes, and snippets.

@Sacristan
Last active May 18, 2016 07:42
Show Gist options
  • Select an option

  • Save Sacristan/26d0a5176a92c9d2e0bb1d44b04b64a5 to your computer and use it in GitHub Desktop.

Select an option

Save Sacristan/26d0a5176a92c9d2e0bb1d44b04b64a5 to your computer and use it in GitHub Desktop.

Edit MySQL config:

sudo rvim /etc/mysql/my.cnf

80% RAM to innodb_buffer_pool_size -> https://www.percona.com/blog/2015/06/02/80-ram-tune-innodb_buffer_pool_size/

Search for XMLRPC POST logs

grep xmlrpc.php /var/log/apache2/access.log

find / -xdev -type f -print0 | xargs -0 grep -H "ini_set('memory_limit'"

GET memory usage -> http://php.net/manual/en/function.memory-get-usage.php PHP memory limit -> http://stackoverflow.com/questions/10738990/ini-set-ini-get-memory-limit-restoring-memory-php

SET PHP memory limit Wordpress http://ideaboxthemes.com/increase-php-memory-limit-wordpress/ sudo rvim /etc/php5/apache2/php.ini memory_limit = 128M memory_limit = -1 (unlimited)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment