Tips to help you manage model size and other issues dealing with memory.
Memory Usage Block (Utilities Library) Temporarily add the Memory Usage block to your model and copy the information it reports to Excel or some other location. Then run the model as you normally would. When the model run(s) are finished, compare the Memory Usage block's information to what was originally reported. It is the first step to making models more manageable. |
History Blocks![]() Finally, using a temporary History block is good for debugging. This is the one that dangles off of an item output. It's good to use this one because every so often you can delete them all with a simple right-click selection on an item output connector. |
Contents of Activity Item and Queue Item![]() |
Database Table/Log Tables If a database table shows up in the Memory Usage block list, check out how many records the table contains. Tables that contain a log of items or events that constantly grow can be pesky at times when it comes to consuming memory. The log tables are useful for debugging and analysis; however, when doing really long runs for multiple replications, they can become huge. It is suggested to add a flag as a user input that has the capability to turn off capturing the detailed log table in situations where the table isn’t necessary. The flag is useful when you are performing a large number of replications for a study, and you are really only interested in the high-level results and not a detailed log. |
RealTimer Block (Utilities library) This block provides a lot of information about the blocks, including the difference in memory usage at the end of the run compared to the beginning. |
.BAK File![]() |