Hi all,
We are having problems with OpenRoads in MX SS4 running out of memory after repeated processing of large corridors. It seems that OpenRoads doesn't release all its memory usage on every corridor processing run so eventually we get to approx. 2500Mb of memory usage and it crashes with a "System out of Memory" message.
We are running Windows 8.1 64-bit with 32Gb of RAM. We have also got the "Lock Pages in Memory" setting enabled in Windows, but that doesn't seem to have changed anything. Is anyone else having similar issues?
You're hitting the 32-bit application memory limit. The limit for any 32-bit application is approximately 4 GB if programmed appropriately.
This is the reason for the anticipation for the Connect Edition of OpenRoads...64 bit application which allows much more memory to be used.
Jaime,
Did you figure out how to add the freelimit variable to the 32 bit version? I am unable to use a different software for a project but we have a basemap that keeps throwing the memory exception and cannot find instructions on adding the freelimit variable.
Mark Shamoun posted:
"I just tried adding the MS_MEMORY_FREELIMIT config variable (the one you may have been referring to) with 999Mb (max virtual memory free limit allowable) and it seems to actually be working"
That is a configuration variable that you can add to your user configuration file. It could possibly be incorporated at the project or site level, but I probably wouldn't do so because of possible variations in workstation computers.
If you go to the Workspace menu and select Configuration, you will get a dialog box listing the configuration variables. There is a button for "New" where you would add this variable, and enter the desired value. You will need to Save in the Configuration dialog before you close it, and you will need to exit and restart your program for the new value to take effect.
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2
Hi Chris,
it is recommended to do not extend old discussion(s), but to ask in a new post. It ensures more attention and also allows to ask in current context (newer versions released in the meantime, Windows updated...).
Chris Lawrence said:I am unable to use a different software for a project
Please follow the best practices and specify what product and version you use.
Chris Lawrence said:but we have a basemap that keeps throwing the memory exception
What exception exactly is reported? It is different whether it is reported by MicroStation itself (typically native code in V8i) or by NET runtime.
Chris Lawrence said:cannot find instructions
Did you search this web? There are several wiki pages about this topic, for example:
Chris Lawrence said:adding the freelimit variable
I do not see any problem with this variable mentioned by Marc, you can add it to MicroStation workspace configuration or directly as Windows variable. But be aware it should always be used with other settings (like locking pages).
And it helps a little only, when NET memory exception is reported, because NET uses own memory allocation mechanism, which cannot be changed (code has to be compiled specifically).
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
A very nice reply and some solid hyperlinks for more information on this issue. Thank you, Jan. You continue to be of great credit and service to the Community!
Got it, thanks Mary!