That is all well and good, but here is my similar, but different problem.
I got the new 27" iMac and maxed it out, except for ram and SSD (went for 2T, so still pretty max). I replaced the minimum Apple ram with the recommended OWC 128g ram (32X4). I did this before I even set up my new iMac. Since then I have been plagued with random freezes, shut-downs, and restarts. Sometimes I get the "your computer was shutdown because of a problem" notice, sometimes not. Here's some of what I have down so far: 1) eliminated a lot of old files and software, 3) virus scans, several times (malwarbytes, recommended to me by apple, found 4 small viruses, but nothing since in the last few weeks), 4) did a complete reinstall of mac OS X, 5) removed OWC ram, and used the apple ram for a few days (this seemed to work, but of course everything was a bit slower), 6) contacted OWC and got my ram replaced, as defective, and 7) installed the 128g of replacement ram from OWC. Now, I have not had any more freezes, but all the other restart issues have returned. I have had 3 separate phone conferences with apple phone techs about these issues (established a service ticket). The last one today to tell them how replacing ram only eliminated freezing (so far, anyway), but now it either restarts or is completely shut down and hard to restart every morning. I have also done other things, too numerous to mention, but these are the major steps I have taken.
NOW APPLE SAYS that they have had service tickets involving 3rd party ram issues, but their engineers won't even look at a computer if the ram issue is from a 3rd party. This last was from a "senior advisor" who came to the phone when I told the tech who answered all that I have already done. My only recourses are....buy expensive apple ram and hope it works, reinstall OS X, but don't reinstall my data, start clean and see if it happens (that eliminates a lot of data and ram use, so I am skeptical that will prove anything), hire a private computer service to analyze and troubleshoot, or buy ram from another company than OWC and hope it works (if I can get a refund from OWC at this point...it has been a couple months).
Sorry for the long post, but I can't find anything online anywhere that speaks to my particular issues.
Thanks for any suggestions.