Its probably
1. You have a RAM smaller than 2GB
2. Your JAVA is not updated well
When Windows XP has full memory, it will freeze and restart itself to avoid the blue screen of death. If you have edited your computer settings to Safe Run, it will do that.