I have a Java application that I am running on a computer (COMP-A). I have another computer (COMP-B) that I use to remote into COMP-A using Microsoft Remote Desktop in order to use that Java application. Both computers are running Windows 7. Whenever I am logged in, the application behaves normally using ~200 MB of memory and ~3% of my CPU. The problem is when I lock the screen. The CPU usage of said Java application immediately spikes up to ~20% and the memory leaks nonstop (I got it >1.8 GB, but stopped it at that point as to not crash the system). The System process also seems to increase in CPU usage when the screen is locked as well. Has anybody experienced something similar before? Did you find a solution?
When using COMP-A to look at the java application, locking the screen does not increase memory or CPU. Only difference is RDP. I will try to add logging as a poster had recommended, but if anybody knows of any setting in Windows 7 or RDP perhaps that might be conflicting with Java (AWT) applications, it would be appreciated.