1. Home
  2. Diamonds
  3. Errors
  4. Calculation
  5. Error: System.OutOfMemory Exception at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(..)

Error: System.OutOfMemory Exception at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(..)

Contents

During the elastic analysis, you get the error:

[NL]: Uitzondering ‘System.OutOfMemoryException’

[FR]: Exception‘System.OutOfMemoryException’

[ES]: Excepción ‘System.OutOfMemoryException’

Diamonds consists of multiple components: Diamonds.exe (the interface of Diamonds) and BuildsoftServer.exe (the calculation core) are two of them.

  • Diamonds.exe is always a 32-bit process.
    Meaning that, in theory, it can take a maximum of 3 GB of RAM memory. In practice (if you’d consult the Task Manager), its more in the range of 2,6GB maximum. When you exceed this 2,6GB, you get a System.OutOfMemory-error.
  • BuildsoftServer.exe can be 32 of 64 bit process, depending on our operating system.
    Meanging that, in theory (for a 64 bit system), it can take a maximum of 8 GB of RAM memory. When you exceed this limit, you get a System.OutOfMemory-error.

Diamonds.exe and BuildsoftServer.exe exchange data and results with each other. Since the available memory to Diamonds.exe is lower than for BuildsoftServer.exe, you need to make sure that the data and results are efficiently as possible.

Note: the maximum amount of RAM a process (32 or 64-bit) can request, is determined by Windows. Not by Buildsoft.

Solution

The following advises relate to a System.OutOfMemoryException-error during saving or during calculating.

  • Use a 64-bit operating system.
  • If you don’t have much RAM (< 16GB), close RAM-consuming programs.
    Using Taks Manager, you can track which programs take up a lot of memory. For example: a few tab pages of Google Chrome can use up to 2 GB of RAM!
  • Don’t model details (like lines <10cm, small holes for technical shafts, …). This makes the model ‘heavy’ and affects the mesh.
  • Limit the number of ‘Undo’ steps.
    Go to Options > Preferences > tab page ‘File‘. Set the “Maximum number of ‘undo/redo’ operations” to 5 or 10.
  • Turn off the automatic back-up.
    Go to Options > Preferences > tab page ‘File‘. Uncheck the option “Save a temperary back up file automatically”.
    Instead, save the model yourself every 30 min. Make sure not to over do the saving command either, because saving causes a temporarely increase of the used RAM-memory.
  • Turn off the automatic save.
    Go to Options > Preferences > tab page ‘File‘. Uncheck the option “Save file automatically”.
  • Remove unused load groups from the model. Empty load groups take up memory space while not contributing to the the results.
  • Reduce the number of combinations:
    • link load groups
    • merge load groups
    • only create the combinations you really need.
      Don’t need SLS FC? Don’t create those combinations.
      Don’t need the load groups seperately? Don’t create those combinations.
  • Choose a good mesh size (default is not always good) and verify the mesh size.
If that doens’t solve it: make multiple models all containing the same geometry, but a different set of combinations.

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!
CONTACT SUPPORT