Willy's Reflections - Visual Studio ALM Rangers

| Willy-Peter Schaub | Visual Studio ALM Rangers | In search of IT simplicity, quality and tranquility |

TFS Integration Tools – “out of memory exception” now what?

TFS Integration Tools – “out of memory exception” now what?

  • Comments 2

Discussions around the “out of memory” exception encountered during migrations have raised the question whether adding more RAM would solve the question. As with all other IT question the answer is a “depends”.

When you encounter the “out of memory” exception it is recommended to proceed as follows:

  1. Re-start the migration session and monitor the memory usage of the TfsMigrationShell process (or TfsIntegrationService process if used) as well as the available memory on the migration machine by using the Task Manager of Perfmon applications.
    outofmem
  2. If the machine is running low on memory and Commit Size / Private Bytes  is not close to 2GB, we have the following possible options:
    • If SQL Server is located on the same machine, move the SQL Server to another machine.
    • Add more physical memory.
      outofmemdecision
  3. If the machine is running low on memory and Commit Size / Private Bytes is close to 2GB we are approaching the 32-bit process limit and adding more memory will not help.  We are left with the following options:
    • Use multiple filter pairs (caution with narrow queries)
    • Run multiple migration sessions serially moving different parts of the data
    • For VC, consider using the SnapshotStartPoint feature to ignore part of the historical data from the source serve

NOTE:

  • When using Task Manager, use “Commit Size” … which indicates the amount of virtual memory that is reserved for use.
  • When using Perfmon, use “Private Bytes” … which indicates the size on bytes if the allocated (committed) virtual memory.
  • Why are we limited to only 2 GB....surely the TIP can be recompiled and released as a x64 application and be able to use up to 256 TB of memory....

  • At this stage it has been released as a 32-bit application which is where the 2GB limitation comes in. 64-bit support is planned.

Page 1 of 1 (2 items)
Leave a Comment
  • Please add 7 and 3 and type the answer here:
  • Post