Topic Last Modified: 2006-09-01
The Microsoft® Exchange Server Analyzer Tool has determined that the TEMP and TMP folders for the server may not be located for optimal disk performance. As a best practice, it is recommended that the TEMP and TMP folders be stored on a disk subsystem that is not shared by your system folder or the Exchange data files.
The Microsoft Exchange Information Store service uses the TEMP and TMP folders as temporary storage during various operations, such as message conversion, working with large attachments, and mailbox move operations. The TEMP and TMP environment variables are used to designate which folders in the file system (for example, which path) should be used by applications that require a temporary workspace. TEMP is typically used by applications, such as Microsoft Exchange, and TMP is typically used by development tools, such as Microsoft Visual C++®. The path for each variable is usually relative to the security context of the application or tool.
On a non-clustered Exchange server, the Exchange store uses the SYSTEM (for example, Local System) folder, which uses a default environment variable setting of %Systemroot%\Temp for both TEMP and TMP. Exchange Virtual Servers that are running in a Microsoft Windows® server cluster use the environment variable settings for the Cluster service account, which runs under the context of a specific user security principle. For user accounts, the default environment variable for TEMP and TMP is set to %Userprofile%\Temp.
This article explains how to move the TEMP and TMP directories in clustered and non-clustered environments. Before you perform the procedures in this article, consider the following recommendations:
- For optimal performance, it is recommended that you do not use
the disk containing the operating system for the TEMP and TMP
folders used by Exchange. In addition, you should ensure that these
environment variables are set to paths on a fast disk or disk
subsystem, such as a RAID-0+1 spindle set.
- It is recommended that you do not use the disk Exchange
transaction logs for the TEMP and TMP folders used.
-
Log on to the computer that is running Exchange Server with an account that has administrative rights.
-
Right-click My Computer, and then select Properties.
-
Select the Advanced tab.
-
Click Environment Variables.
-
In the System variables area, select TEMP and then click Edit.
-
In the Variable value field, enter the new path for the TEMP environment variable and then click OK.
-
In the System variables area, select TMP and then click Edit.
-
In the Variable value field, enter the new path for the TMP environment variable and then click OK.
-
Click OK to close the Environment Variables dialog box and then click OK to close the System Properties dialog box.
-
Reboot the server to apply all the changes.
-
Log on to a node in the cluster as the Cluster service account.
-
Right-click My Computer, and then select Properties.
-
Select Advanced.
-
Click Environment Variables.
-
In the User variables for <account name> area, select TEMP and then click Edit.
-
In the Variable value field, enter the new path for the TEMP environment variable and then click OK.
-
In the User variables for <account name> area, select TMP and then click Edit.
-
In the Variable value field, enter the new path for the TMP environment variable and then click OK.
-
Click OK to close the Environment Variables dialog box and then click OK to close the System Properties dialog box.
-
Restart the node to apply the change.
-
Repeat steps 1 through 10 for each node in the cluster.
Important: |
---|
You must give the Authenticated Users account the appropriate permissions to the new path for the TMP and TEMP folders. |
-
Start Windows Explorer, locate and then right-click the folder that the TEMP variable or the TMP variable points to, and then click Properties.
-
In the Temp Properties dialog box, click the Security tab, and then click Add.
-
In the Select Users, Computers, or Groups dialog box, add the Authenticated Users group to the object names list and click OK.
-
Click Advanced to access advanced security settings.
-
Select Authenticated Users in the Name list and then click Edit to display the Permission Entry dialog box.
-
Use the fields in the Permissions area to allow the following special permissions:
Traverse Folder / Execute File
Create Files / Write Data
Create Folders / Append Data
-
Click OK three times to apply the permissions and exit.
For More Information
- For more information about Exchange Server performance, see the
Exchange Server 2003 Performance and Scalability Guide
(http://go.microsoft.com/fwlink/?LinkId=47576).
- For more information about troubleshooting Exchange Server
performance issues, see Troubleshooting Microsoft Exchange
Server 2003 Performance (http://go.microsoft.com/fwlink/?LinkId=47588).