Change path where temporary memory dump is saved

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.

Moderator: SciTech Software

Change path where temporary memory dump is saved

Postby Smjert » Wed Dec 16, 2009 6:41 pm

Is possible?
Since C:\ is a very tiny disk and the memory profiler has to create a 4gb file.
Smjert
 
Posts: 1
Joined: Wed Dec 16, 2009 6:38 pm

Postby Andreas Suurkuusk » Thu Dec 17, 2009 10:09 pm

The temporary memory dump file is saved in a temporary folder, which is retrieved using the GetTempPath function. According to the documentation:

The GetTempPath function checks for the existence of environment variables in the following order and uses the first path found:

- The path specified by the TMP environment variable.
- The path specified by the TEMP environment variable.
- The path specified by the USERPROFILE environment variable.
- The Windows directory.


So, you should be able to change the path of the temporary memory dump by setting the TMP or TEMP environment variable.
Best regards,

Andreas Suurkuusk
SciTech Software AB
Andreas Suurkuusk
 
Posts: 980
Joined: Wed Mar 02, 2005 7:53 pm
Location: Sweden


Return to Using .NET Memory Profiler

Who is online

Users browsing this forum: No registered users and 1 guest

SciTech Software logo

© Copyright 2001-2016. SciTech Software AB
All rights reserved.


SciTech Software AB
Kartvägen 21
SE-175 46 Järfälla
Sweden


E-mail: mail@scitech.se

Telephone: +46-706868081

cron