Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Huge temp files in SPS 2003

  Asked By: Alisha    Date: Jul 07    Category: Sharepoint    Views: 2339

I'm having some hardware issues with one of my production boxes that I
believe is attributed to insufficient memory. However, as I started parsing
the file system, I found the following directory that has 31 GB of files.
Does anyone know if the contents of this directory can simply be deleted?


I'm not even sure of the purpose of this directory, and all the files have
the *.tmp *extension. The naming convention leads me to believe it is a one
use type thing, but before deleting it, I would like to know its purpose and
what, if anything might break if I get rid of the contents.



9 Answers Found

Answer #1    Answered By: Addison Peck     Answered On: Jul 07

That directory gets used when STSADM or SMigrate are used to backup and restore
sites. You can safely delete everything in there, so long as you aren't in the
process of installing anything. Any files  in there that are not safe to delete
should be locked and you shouldn't be able to delete anyway. I have a nightly
process that runs on all my WFEs that moves around some log files, stuff like
that. I've added a line that empties out this directory every night and I've
never seen anything bad happen because of that.

Answer #2    Answered By: Lalit Bhattacharya     Answered On: Jul 07

Also, if this is your indexer, it's used by it as well when it streams
files down for indexing.

Keep in mind that these files  will be orphaned here for two reasons

1) A time out occurs while indexing a large file. There is a fix
for that here: http://support.microsoft.com/kb/894534

2) A search daemon crashes while indexing a file, in this case the
reference to the file from the process is lost, and the file is just
orphaned there.

a. The search daemons will not record a file as being successfully
indexed until the entire process is complete, and it signals
MSSearch.exe of the completion. Therefore, if the daemon crashes, a new
daemon might be fired up to try to re-index the file.

Answer #3    Answered By: Gwendolyn Acosta     Answered On: Jul 07

What I did was write a batch file that deletes all the temp  files in
that directory every night. The files  will get recreated each day
but at least it will help keep them smaller.

Answer #4    Answered By: Kyle Hernandez     Answered On: Jul 07

I had the same problem last year and ended up having a server go down
because of it. Turned out that it was created by admins who had been
using FP to modify content as well as perform site backups and
restores. No idea why the temp  file never cleared itself but what I
did was contact all my admins to make sure that they had nothing
pending in FrontPage and then I deleted the whole kit and kaboodle.
Now I take a look at that folder every few weeks but the problem has
never repeated itself since, or better said, I catch it before it
ever gets too far.

Answer #5    Answered By: Kedar Phule     Answered On: Jul 07

One of the admins decided to just go ahead and DELETE the contents before
knowing what was in it (not so happy about that, but that's another issue ;)
) so this has cleared up some of the issues. I have asked to get a script
installed to delete these files  every day so hopefully this won't be an
issue anymore.

Answer #6    Answered By: Chanel Gaines     Answered On: Jul 07


The windows temp  directory should never be on the OS drive.

Several SharePoint processes use this directory.

One that comes to mind is the Content Deployment which will fail if
there is not enough room in the temp directory.

I would recommend another spindle, not just another partition.

Answer #7    Answered By: Timmy Whitney     Answered On: Jul 07

How do you move the windows temp  directory from c:\windows\temp to
another spindle ?

Answer #8    Answered By: Harihar Sonnad     Answered On: Jul 07

This can be done by navigating to: Control Panel -> System -> Advanced ->
Environmental Variables

Look for the TEMP and TMP location variables and make applicable changes.

Answer #9    Answered By: Deven Gajjar     Answered On: Jul 07

Add a hard drive.

Change system temp  directory in System Properties > Advanced tab
>Environmental Variables button.

Didn't find what you were looking for? Find more on Huge temp files in SPS 2003 Or get search suggestion and latest updates.