Hello Ghozer
I see that this post originated in 2010… I wonder why some of you are still hanging out here with such an old post, next time consider a new post but anyway, I guess this goes out to whom it concerns in this post. I apologize in advance for not knowing who to direct the answer to, there are simply too many piggyback riders here. In the future consider your on exclusive posts to get more personalized responses. As such I will leave general guidelines only. Sorry.
Firstly , the symptoms you report are indeed intermittent in nature as they appear to follow no pattern.
Just to repeat, here is what you reported, once or twice a week your iMac 2010 (i5) allegedly freezes forcing you hold the power button and power back up as a resolution. Additionally you reported the machine as 'scorching hot'. Lastly, you report the machine exhibiting the freeze after a period of inactivity.
Couple of things here, what does the freeze look like? Does the time displayed in the upper right continue to show the time? Sorry the post is long and I've not taken complete notes but if I am not mistaken you object to seeing a spinning beach ball or state that this is not what you are reporting but does the spinning beach ball ever exhibit itself and when and for which apps?
In regards to the heat issue, is it so hot that you can not maintain keeping your hand in contact with that part of the computer for nay length of time past a few seconds? If the machine gets so hot that you can not comfortably leave your hand it's not necessarily an issue but that depends on reports you make here about the apps running on your mac. Activity monitor can also help you determine how much load each app places on the CPU, the more CPU use, disc burning (doubt burning discs is the issue you are having), the more HD use, the more heat. A runaway application (an app that has essentially 'lost it's marbles' can be hogging the CPU, causing heat issues) — note that article's basis is to demonstrate how it can drain a battery on a portable but should provide you insight.
Heat can in general be a normal thing (unless it actually literally burns your hand) and the mac does have very silent fans that are managed by the System Management Controller which is measures heat via sensors and in turn increases or lowers RPM speed on fans attached to each component that can have a bearing on heat. Unless the SMC has incorrect, aka corrupted settings, it's thresholds that govern fan RMPs based on temperature readings are not at their defaults you can see heat issues. Despite this, the mac does have safety mechanisms to shutdown the machine if too much heat is sensed. It will shutdown of it's own accord should these maximum thresholds by violated. You can reset the SMC to return otherwise corrupt settings to normal. This should be done to rule out this possibility. If issues persist it could be other hardware still. I'll outline what I think shortly. Absolutely make sure that your environment is not hot to begin with.
On to freezes next. If you get a chance please come back and describe in more detail the freezes. The term freeze might mean different things to different people, try to add detail if possible.
Freezes and hardware and software. When troubleshooting you need to consider hardware AND software as mutually exclusive. Your hardware is static, it will remain the same as it did out of the box unless you deliberately make changes. Those changes can mean RAM you add after the purchase; RAM not included in the order with Apple. Please do remove all 3rd party RAM from your system to exclude that possibility as the root cause of your woes. Other hardware changes you can make, include any and all devices attached to the computer's ports, remove any and all hardware connected to the mac. Bring the hardware configuration back to how it arrived to you. Do this in an effort to isolate the issue. Report back with all hardware changes you've made; RAM, printers, USB devices, Firewire devices, etc. Remove them.
Software is similar to hardware, you can plug more software into your mac but it's endlessly more flexible. Your mac is a chameleon, it can even turn into a Windows machine or a Linux box so software is extremely flexible. Hardware, without any exclusion of the 3rd party components, must be healthy or you can easily see issues, those issues that you report in your first post on this thread. Consider software, what have you installed since purchasing your mac?
To be blunt as absolutely helpful I can be, get hardware to how it came to you out of the box first because it is the easiest but I am not sure how disruptive it will be but an Apple Authourised Service Provider (AASP) will not troubleshoot your mac with your added RAM (if any) nor your peripherals and cables — only the mac itself because that is what they service.
You can only get one of two results if you follow this hardware isolation advice, the issue will either disappear or not. If not, then begin adding hardware back one at a time until you find the culprit and report back at that stage noting what you found, it might supporting software that is faulty, examine cables in use if any, RAM has neither. If the issue persists after isolating hardware then consider the other layer of a computer, software. Very important, don't return complexity by adding hardware back yet until you isolate software as well.
Troubleshooting is about reducing complexity to isolate an issue to a component.
In terms of software do not hesitate to create a new partition on your hard drive, install a fresh clean install of Mac OS X and run all the software updates and now test by booting into that partition. Your hardware and software are now as they were out of the box. If the issue takes 1 week to show its ugly face then test for at least one week.
After the week, as in my example begin to install the software that you absolutely need first and nothing else, forget any other crazy do-dad that you believe helps optimize your mac etc. Your mac is a screamer by virtue of its specs and brilliant lean mean OS.
Slowly start to add more software.
In terms of restoring your personal files I can help you with that later. If you agree with this you can save yourself a lot of frustration and further cries to the discussions forum, I know that it can be painful but you will find the cause.
If you take your machine to an AASP and they find no trouble, there will be no parts for them to repair your mac with and you may have to pay them a diagnostics fee, with AppleCare, in warranty or not. Warranties and AppleCare protects you against hardware not software/hardware diagnostics unless your machine has a confirmed hardware issue.
You ran Disk Utility and it found nothing wrong, good start. You ran some third party tools and those found nothing, good.
I sincerely hope that you consider some of these steps but more importantly they help you resolve this issue.
Don't hesitate to come back and post any and all additional information or queries that you might have.
Best Regards
PS forgive the long post and any grammar errors.