Category: Performance

Just random stuff - Nothing to see here - Move along...

kernel: php-fpm: segfault at x ip y sp z error 6 in libpcre.so.1.2.0

An issue with php70-php-fpm Perl PCRE causing some segfaults every once in a while. Current pcre/jit details from phpinfo: # php -r “phpinfo();” |egrep -i “pcre|jit” auto_globals_jit => On => On pcre PCRE (Perl Compatible Regular Expressions) Support => enabled PCRE Library Version => 8.32 2012-11-30 PCRE JIT Support => enabled pcre.backtrack_limit => 1000000 =>…
Read more

Nginx for SSL Termination to Varnish & Apache Backend with WordPress

System Architecture for Scaling Virtual Environment All traffic should have ssl certs installed for each domain at nginx level.  Nginx is configured as ssl proxy only.  Certs are provided by Let’s Encrypt unless otherwise needed for other purposes. (non-secure) Varnish (80) –> Apache (8080) –> Redis –> MariaDB (secure) Nginx (as ssl proxy) (443) –>…
Read more

Ramdisk Sync for Better Performance in I/O Intensive Environments

Setup Create a mountpoint for the disk : mkdir /mnt/ramdisk Secondly, add this line to /etc/fstab in to mount the drive at boot-time. tmpfs /mnt/ramdisk tmpfs defaults,size=2g,noexec,nosuid,uid=65534,gid=65534,mode=1755 0 0 Change the size option in the above line to easily accommodate the amount of the files you’ll have. Don’t worry, it doesn’t allocate all of that space…
Read more

I/O Wait Time Issues

Filesystem Wait I/O Problems

Wait I/O issues are caused by various issues with the environment and identifying first what  is the leading cause of the problem is the first step to isolating the primary problem.  You’ll probably identify other issues and uncover some major problems elsewhere as well. Where to Start!? Checking resources where typical background processes scheduled to run…
Read more

Load any external javascript file asynchronously!

Sticking <script></script> tags referring an external resource in the middle of your HTML code will hang the loading of your page while your browser gets the missing script. This is usually a problem with the loading of the AddToAny sharing script and a quantcast tag (which has since been removed). Check to make sure there are…
Read more