Hello,
I'm having a problem with the logon process of RemotApp. That is, the logon process takes a long time, while the start up of my application only takes about 2-3 seconds. I found it seems that the system idles for about 20 seconds each time when user logon with RemoteApp.
Then I use a tool, Processmonitor from SysIntarnals, to find out while the logon process takes that long. After a while, I get this picture:
Time of Day Process Name Operation Result Detail
49:49.8 rdpinit.exe Process Start SUCCESS
49:49.8 rdpinit.exe Thread Create SUCCESS Thread ID: 908
49:50.0 rdpinit.exe Thread Create SUCCESS Thread ID: 764
49:50.1 rdpinit.exe Thread Create SUCCESS Thread ID: 3864
49:50.1 rdpinit.exe Thread Create SUCCESS Thread ID: 3932
49:50.1 rdpinit.exe Thread Create SUCCESS Thread ID: 4792
49:50.8 rdpinit.exe Thread Create SUCCESS Thread ID: 4908
49:50.8 rdpinit.exe Process Create SUCCESS PID: 4424, "C:\Windows\system32\rdpshell.exe" 301182617
49:50.9 rdpshell.exe Process Start SUCCESS
49:50.9 rdpshell.exe Thread Create SUCCESS Thread ID: 3976
49:50.9 rdpshell.exe Thread Exit SUCCESS Thread ID: 3976, User Time:
0.0000000, Kernel Time: 0.0000000
49:50.9 rdpshell.exe Process Exit SUCCESS Exit Status: -1073740756
49:50.9 rdpinit.exe Thread Create SUCCESS Thread ID: 3676
49:50.9 rdpinit.exe Thread Create SUCCESS Thread ID: 4288
50:10.9 rdpinit.exe Process Create SUCCESS PID: 3268, "C:\Windows\system32\rdpshell.exe" 301182617
50:10.9 rdpshell.exe Process Start SUCCESS
50:10.9 rdpshell.exe Thread Create SUCCESS Thread ID: 4032
50:11.0 rdpinit.exe Thread Exit SUCCESS Thread ID: 4792,
User Time: 0.0780005, Kernel Time: 0.3900025
50:11.0 rdpshell.exe Thread Create SUCCESS Thread ID: 4564
50:11.1 rdpshell.exe Thread Create SUCCESS Thread ID: 5088
50:11.1 rdpshell.exe Thread Create SUCCESS Thread ID: 4508
50:11.1 rdpshell.exe Thread Create SUCCESS Thread ID: 5108
50:11.1 rdpshell.exe Thread Create SUCCESS Thread ID: 4944
50:11.1 rdpshell.exe Thread Create SUCCESS Thread ID: 1716
50:11.1 rdpshell.exe Thread Create SUCCESS Thread ID: 2880
50:11.2 rdpinit.exe Thread Create SUCCESS Thread ID: 5044
50:11.3 rdpinit.exe Process Create SUCCESS PID: 4044, "C:\Windows\system32\calc.exe"
50:11.3 rdpinit.exe Thread Exit SUCCESS Thread ID: 5044,
User Time: 0.0000000, Kernel Time: 0.0780005
50:11.9 rdpshell.exe Thread Create SUCCESS Thread ID: 4796
In the picture, we can see that at 49:50.8 (sec), rdpinit.exe created a process rdpshell.exe. But the sub process exited quickly (please see the bold line). Then, after 20 seconds (at 50:10.9 sec), rdpinit.exe create the rdpshell.exe process again. This time the sub process was started properly, and soon after this, my application and the client GUI was started sequentially.
So, I believe the first die of rdpshell.exe is the reason of logon delay. After rdpinit.exe found the die of rdpshell.exe, it restart that process after 20 seconds.
Finally, I think if I can prevent the first die of rdpshell.exe or config the restart interval to a very short time (etc. 2-3 sec), I can solve this problem. Can any one help?