Running API on test machines

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
softpromike
Posts: 2
Joined: Tue Mar 03, 2009 12:49 am

Running API on test machines

Post by softpromike » Tue Mar 03, 2009 12:54 am

Hello,

We have purchased a number of licenses for our development team and are now working to automate the process of detecting memory leaks. We are currently referencing the SciTech.NetMemProfiler.Core dll to capture and compare snapshots. This works wonderfully.

One question, the test seems to crash when run on a test machine and I think it has something to do with not installing the MemProfiler application on the test machine (we would really like to keep the test mcahines as clean as possible). Are there additional assemblies we need to push to the test machines or is there some way to enable these to run in a test envirnoment?

Thank You

Andreas Suurkuusk
Posts: 1029
Joined: Wed Mar 02, 2005 7:53 pm

Post by Andreas Suurkuusk » Tue Mar 03, 2009 9:01 pm

It's normally not possible to run .NET Memory Profiler, or use the SciTech.NetMemProfiler.Core assembly, without installing the profiler. There are for instance certain registry settings that need to be initialized.

However, to help you perform a minimal deployment on a test machine, I prepared a way of running the profiler without installing it.
  1. Download the http://memprofiler.com/MemProfilerNoInstall3_1_321.zip file and extract its contents to a suitable folder (e.g. C:\MemProfiler).
  2. Run the "Init.bat" file. This will register the ProfilerCallback class in the registry and try to install two files in the GAC using gacutil.
  3. If gacutil is not available, you need to manually install the two files in the GAC (by dragging them to C:\Windows\Assembly). The files are: SciTech.NetMemProfiler.InstrumentationHelper2.dll and SciTech.NetMemProfiler.InstrumentationHelper1.dll (only needed for .NET 1.x support).
  4. Set the registry string value "HKEY_LOCAL_MACHINE\SOFTWARE\SciTech\MemProfiler3\BaseProfilerPath" to the path of the folder where the files were extracted (e.g. "C:\MemProfiler").
  5. Start the profiler (NetMemProfiler.exe) and enter your registration key (even if you only intend to use the SciTech.NetMemProfiler.Core assembly, the license needs to be registered).
It is not an XCOPY deployment, but this is the "cleanest" install that is possible with the current version of the profiler.

If you have any problems or questions, please contact us again.
Best regards,

Andreas Suurkuusk
SciTech Software AB

softpromike
Posts: 2
Joined: Tue Mar 03, 2009 12:49 am

Thank you Andreas

Post by softpromike » Tue Mar 03, 2009 9:15 pm

I will give that a shot and let you know how it goes. Is there anyway to register without launching the UI, maybe through a command line setting or setting the registry manually?

We are just trying to automate the process.

Thanks Again,

Mike

Andreas Suurkuusk
Posts: 1029
Joined: Wed Mar 02, 2005 7:53 pm

Post by Andreas Suurkuusk » Wed Mar 04, 2009 7:09 am

It is possible to register automatically by setting a registry value. If you send an e-mail to support@scitech.se with your registration information, I will provide you with information on how to add the information to the registry.
Best regards,

Andreas Suurkuusk
SciTech Software AB

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests