Why do I get the error "Exception thrown from Unknown: Class = newException, Code = 1(0x00000001) Msg = Memory allocation failed"?



Why do I get the error "Exception thrown from Unknown: Class = newException, Code = 1(0x00000001) Msg = Memory allocation failed"?


  • Product Name: StarTeam
  • Product Version:2005 - 08
  • Product Component: Server
  • Platform/OS Version: Windows

This is caused when the amount of memory available to the StarTeamServer process exceeds 2GB. By default 32-bit Windows Operating Systems can only allocate 2GB of RAM to any one process regardless of the amount of memory available on the machine. There is however a way to increase this to 3GB by making configuration changes on certain Windows systems by using 4GB RAM Tuning.

For more information please refer to,

A description of the 4 GB RAM Tuning feature and the Physical Address Extension parameter

If you continue to experience the error after making this change then you may want to consider the following:

  1. Disable Trace operations in the server admin tool under the Diagnostics tab (if enabled)
  2. Try using MPX to take the load of the server (see installation guide for more information)
  3. If component caching is enabled in your StarTeam-server-configs.xml file and is set to set 2, try changing it to 1. This most memory intensive is ChangeRequestCaching. If CR performance is acceptable then set it to 0.
  4. Enable IDSCachePurge to ensure caching is purged & recycled (contact Tech Support for more information)
  5. Make sure you are using supported database driver as mentioned in the ST Installation Guide.
  6. Ensure database tuning scripts are run as indicated in the ST Installation guide.
  7. Ensure drives that contain hives have adequate space and defragment regularly
  8. Ensure both Min/MaxConcurrentThreads in the starteam-server-configs.xml are set to the same number between 32 - 64 (for >300 user environments or between 16-32 for smaller user environments).
  9. Reduce the frequency of 3rd party tools running against the server. (i.e. Test Director Sync, Data Mart, Cruise Control etc). Also make sure you have the latest version of these.
  10. If you have the hardware split the server into two different servers. This can half the number of project, users and system resources and therefore improve performance greatly.
  11. If you don"t have spare hardware then at least create different configurations on the same box and split the projects up between these. This means each configuration has its own StarTeamServer process which can each have up to 3GB RAM available (If 4GB RAM Tuning is enabled or 2GB if not).

Old KB# 27341
Comment List