Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1806
  • Last Modified:

clearing large java cache from user profiles

We are running two Windows 2003 R2 sp2 servers as Terminal Servers for a call center.   We are not using Terminal Server Profiles, but rather the regular profile settings in the Users Active Directory attributes.  There are around 200 profiles.   The company has a pretty easy Internet Use policy while people are between calls (picture people sitting around something like a firehouse waiting for the fire alarm to go off).   As a result in each users profile in Application Data\Sun\Java\Deployment\cache\  there are subfolders that are building up in size.   It is clearly a result of large amounts of web browsing.
All of this leads to ever increasing log on times.

Changing the settings in the Java Control panel just seems to effect the user logged on so doing anything as administrator doesn't help.   Does any one have a strategy for clearing this cache on logoff?  Or, perhaps limiting the size of these subfolders?
0
Dgreenbaum
Asked:
Dgreenbaum
  • 2
  • 2
1 Solution
 
Joseph DalyCommented:
Well you could write a simple batch file to delete this directory and all subfolder in it by using the rmdir cmd.

rmdir {directory} /S /Q

I would take a read of the rmdir help file with /? because the /S command deletes the starting directory as well. So you may need to make the batch file a few lines.
0
 
Malli BoppeCommented:
I would say create a script to delete the cache files every night.
0
 
DgreenbaumAuthor Commented:
Thanks, I'll look into these suggestions.
0
 
DgreenbaumAuthor Commented:
I'll look into writing a script that can go into a profiles folder and delete a subfolder in the Application Data folder in each of the users profile folders.   Any ideas on this type of scripting?
0
 
Malli BoppeCommented:
You might want to look at this tool.If want any more help let me know I cn provide you teh script.
http://technet.microsoft.com/en-us/library/cc753551.aspx 
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now