On our Terminal server (Windows Server 2008 R2 Standard with 32Gb useable memory (got 60gb) ) we have getting trouble with temporary profiles.
We have local profiles on the server.
It started last week when the memory consumtion was very high and had less than 1024mb physical memory free. Then if we kicked out a old user or something it seems to have resolved the issue with the users profile (they logged out and in again)
We resolved the memory issues yesterday, but we are still having the issue with temporary profiles and at a lower number of users than when the memory pressure was too high.
We get the issue around 32-38 users (Last week around 42) and in the past we have had more users than that in the system.
And now we have physical memory free 3300-3700, and in cache about 8400.
We get Error 1508 from source "User Profile service"
Windows was unable to load the registry. This problem is often caused by insufficient memory or insufficient security rights. \DETAIL - The process cannot access the file because it is being used by another process. for C:\Users\mh\ntuser.dat
Followed by a 1502 that it can't read in the local profile, with info about Not enough system resources
Followed by events 1515,1511 with info about the user gets an temp profile..
And I'm not really sure if its related but we also got a few Warnings in the event log also "User Profile Services" that the registry file is used when they log off (User registry handles leaked) from winlogon.exe mostly but also svchost that are holding "...Internet Explorer\LinksBar" ..
Another thing we noticed is that if you log off and then log on again directly you often get temporary again, if they wait a while it seems to resolve the issue for the user. We even noticed that when a user logged of (having a temporary profile) and logged in again the temporary profile ALSO got an 1508 error "C:\Users\TEMP.***.000\ntuser.dat" so the user got another temporary profile!!!
A few things that we already have checked:
- Recreated user profile : No result
- The user profile reg seems to be about 100mb each
- Checked the user profiles with error so that they have a ntuser.dat file
- After a reboot of the server it seems to come back when it's about 36 user or more
At the moment we have 41 users on the system (one disconnected) and it seems that one of those are a temporary profile so it doesn't seem to only be about how many that are logged on..
Any ideas on what to try next?