INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Strange Java behavior

Strange Java behavior

(OP)
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.

RE: Strange Java behavior

(OP)
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.

RE: Strange Java behavior

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
http://www.primrose.org.uk

RE: Strange Java behavior

(OP)
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.

RE: Strange Java behavior

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
http://www.primrose.org.uk

RE: Strange Java behavior

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources