Is it third party RAM? First thing I would do is shut it down and uplug all external devices then the powercord. Wait about 10 seconds and plug the powercord back in and external devices and boot back up.
It is most likely the RAM or an external device that could be causing this. I had the same problem and it was 3rd party RAM. Is that RAM 2 x 512? They need to be matched pairs.