w reads a file - usually wtmpx. Those are not real processes, ie., if ps does not see them they became defunct and removed. Clearly, they were removed from the process table, but not cleaned up in the utmpx/wtmpx file.
A reboot will remove them, but I don't see what that gains on a production box, other than user complaints.
Sorry about the lack of tags. I haven't posted in a long time and didn't catch the hint.
We're in the process of closing out the applications on this server and when I'm capturing the user stats every 15 minutes I was just getting annoyed at being over by two no matter the time of day so I thought I'd clean them if it was easy to do. Not worth a reboot though. I can just keep explaining that the 2 users on at 2AM every day are not really there.
As it happens, another group has some maintenance scheduled for Sunday and I'll be shutting down the server for the duration so it will probably all be cleared up after the reboot. Thanks for all the information though.