php-cgi.exe Application Error on Windows Event Viewer

I have Magento 1.9 website with PHP 5.6.31 running on Windows IIS. Intermittently the website would have server 500 error, and more than 20 PHP CGI/FastCGI background processes running. The website will recover if its application pool restarted. I found there was Application Error in Event Viewer when the server 500 error first happened.
Faulting application name: php-cgi.exe, version: 5.6.31.0, time stamp: 0x595dca20
Faulting module name: php_wincache.dll, version: 1.3.7.12, time stamp: 0x58234af4
Exception code: 0xc0000005
Fault offset: 0x00015147
Faulting process id: 0x29d8
Faulting application start time: 0x01d432075ec736f9
Faulting application path: C:\Program Files (x86)\PHP\v5.6\php-cgi.exe
Faulting module path: C:\Program Files (x86)\PHP\v5.6\ext\php_wincache.dll
Report Id: 022fa75d-9dfd-11e8-80cb-000d3aa18ac6
Faulting package full name: 
Faulting package-relative application ID: 

Open in new window


Could it be the Application Error is the issue that caused server 500 error? How to fix this issue?
LVL 1
Boon Chye PhangAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jose Gabriel Ortega CastroEE Solution Guide/Topic Advisor and CEO Faru Bonon ITCommented:
Review the event viewer and check for the errors when disconnections happen.
You can use this script for it:
https://gallery.technet.microsoft.com/office/Get-event-logs-errors-and-6871f163
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Magento

From novice to tech pro — start learning today.