How do I troubleshoot a Windows 7 freeze or slowness? [duplicate]

Assuming you are using a Windows OS...

Things to check:

  1. PC has 10% at least of free disk space
  2. PC has at least 1 GB of RAM for Windows XP and 2 GB for Windows Vista
  3. If there are any hanging programs or drivers.
  4. Corrupt system files. If that is so, run sfc /scannow in cmd and let it replace any corrupt system files. It may ask for your Windows CD. Or, if it is seriously damaged then perform a Windows XP repair install or Windows Vista repair install
  5. A badly corrupted file system. This is from experience rather than knowledge. Run chkdsk /r in the command prompt.
  6. Due to the way Windows handles files, it will in inevitably get slow over time. Your MFT structure gets bigger and bigger over time. The only cure is a fresh install.
  7. Malware. Download and run HijackThis, and then post the log here. It'll give us a decent idea of what's running and what could be hogging all your memory/CPU.

Most system freezes (where you can't use hot-keys like CTRL+ALT+DEL) are caused by hanging drivers,
so you will have to either replace the device or update the driver. Troubleshooting can be done:

  1. Download Windows Performance Analyzer for your Windows version.
  2. Install the software on your system.
  3. Open a command prompt as administrator, and copy paste the next command:

    xperf -start perf!GeneralProfiles.InBuffer && timeout -1 && xperf -stop perf!GeneralProfiles.InBuffer myTrace.etl
    
  4. Press ENTER once to start the command, now you will have to wait till your system hangs.
    You can do whatever you want to. Please no heavy activity like gaming or private things...

  5. Right after your system stops hanging you go to the console and press ENTER.
  6. After waiting some time a log file myTrace.etl will be produced, compress this to a zip file.
  7. Put this compressed version of the file somewhere online (perhaps 2shared).
  8. Share the link here, I will do an attempt to find and show you the cause of your problem.
  9. OR troubleshoot the trace yourself using instructions found here, start with step 6 - 7.