Drupal Requires Raising opcache.memory_consumption Setting

After installing a Drupal module this afternoon I got a 500 on my site so I tried Drush ws in the command line.  From the command line I got the following error. 

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory
PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 32768 bytes) in /var/www/vendor/psy/psysh/src/functions.php on line 279

After Googling around a bit and reading some previous support requests on drupal.org I found that the issue might actually be with settings in the opcache.ini. One post recommended raising the opcache.memory_consumption value to 5000. I tried raising it to 1024 and so far this works like a charm for me. 

Hope this post helps get to an answer with less reading.