Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange Java behavior

Status
Not open for further replies.

pinkpanther56

Technical User
Jun 15, 2005
807
GB
I have a problem with Java creating temp files that can\'t be deleted and i\'m not sure if it\'s certain web sites that cause Java to do this or a flaw in Java. I\'m using ver 1.5.0_02.

When a user logs off sometimes a temp folder called \'hsperfdata\' which i\'m informed is a Java temp folder is left in their profile with one file inside. This file has a random name and no extension but the really odd thing is that the NTFS permissions are altered so the Administrator only has read permissions.

This happens at random on different PC\'s so i can\'t tie is to a pattern. It has happened after a coulpe of days on brand new fully patched XP SP2 boxes with the latest AV, i have also scanned them with ADAware and not found any evidence of spyware so i think i can rule that out.


The problem this is causing is the profile cannot be deleted at logoff, can anyone suggest what is causing this?

Thanks.
 
Hmmm interesting, so it is an intentional Java file.

I wonder why it sometimes doesn\'t clear itself could it be if Java crashes on exit or if someone crashed the station?

It\'s annoying that it creates special permissions so to get rid of it i have to take ownership and then delete it.
 
Its a tiny file, so I wouldn't worry about it.
If Java crashes, I wouldn't expect the file to be deleted, because the JVM process has crashed, and so wouldn't have the chance to clean up properly, I guess.

--------------------------------------------------
Free Database Connection Pooling Software
 
Oh yes ordinarily i wouldn\'t worry about it but as administrators are not added to the file then it cannot be deleted without manually taking ownership. Then next time the user logs on Windows seems to think the local profile is corrupt as half the profile is there and the logon either fails or logs them on with a TEMP profile.

We are using roaming profiles which is where i think the problem lies as it tries to recreate the local profile folder but can\'t remove this file.
 
Ah, now that would cause a problem. Ermmmm, all I can suggest is having some batch file run on machine startup that tries to remove it. I'm not a Win32 admin, so have no idea whether that would work or not ...

--------------------------------------------------
Free Database Connection Pooling Software
 
I use a Vbscript at station startup that deletes all profiles but it fails on these folders as system doesn\'t have permission to delete it. I\'ve altered this so it skips the trouble folders and continues deleting the rest which it wasn\'t doing before, i\'ll see how it goes.

Thanks for the input.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top