Loses power shuts down and restarts

My MacBook Pro Loses power suddenly and sometimes restarts itself. I replaced all the RAM and it is still doing it. I cleaned the fans and inside. The battery seems to be charging fine. Not sure what it could be?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2944067:02crwdne2944067:0:

does have an overheating issues i had the same problem with my old MBP and i applied new thermal paste to the CPU and GPU. that solved my problem. and you may need to repair the permission from disk utility it may help.

good luck

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

Please be specific about your exact machine. There are know issues on some of these machines.

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0