Original post by: Country Computer Service ,
You may want to create a memtestx86 usb stick for Mac and check your ram to begin with. I've seen Windows and Macs both crash after memory starts filling up to a point. https://www.memtest86.com/download.htm Next, I would run a Apple Hardware test: Power on the mac then immediately press and hold the D key on your keyboard. Keep holding the D key until you see the Apple Hardware Test icon. Follow through the steps. Another option, if the above tests work, is create a USB installer for OS/X -- once created power on holding the Option key and boot from the USB installer. In the case, for example, say El Capitan, you should get to a dialog that will let you run disk utility -- it may be that the copy of disk utility on the hard drive is corrupt.