Do you have lots of application running in background?
Actually those cases must easily spotted through those processes that taking the ram and cpu cause these are ways to determine it.
If you restart your computer does happen always or after to take windows update or just happen randomly?