The stat agent crashes as soon as I logout. If I don't use /admin in RDP, then its ok. If i use /admin (which is not easy to control because so many people use it and sys admins use it too), it crashes immediately after logout.
In the run.conf.bat, search for the first occurrence of JAVA_OPTS=.
It will have
set "JAVA_OPTS= -Xms256M -Xmx512M -XX:MaxPermSize=256M"
It should be
set "JAVA_OPTS=%JAVA_OPTS% -Xms256M -Xmx512M -XX:MaxPermSize=256M"
So what is happening is the the -XRS option is being overlaid. Attached is the modified run.conf.txt. This file will work for Stat 5.6.0, 5.6.1 or 5.6.2. Make sure to rename the file to run.bat.conf and place it in app\bin directory. Afterward, shutdown the stat agent. Delete the tmp and work folder from app\server\default before restarting the stat agent.