Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
MicroStation
  • Product Communities
MicroStation
MicroStation Wiki MicroStation Memory Management
    • Sign In

    • +MicroStation Wiki
    • -Administration Wiki
      • Adding "Display Style List" to custom Toolbox
      • +Administration - Legacy Content
      • Answers for the Levelly Challenged
      • Batch Convert Utility
      • Bentley Tablet Driver And CalComp DrawingBoard
      • Bypassing Port Problems In Windows 2000 And Windows XP
      • Cannot find survey ft option in Design File Settings > Units
      • Configuration Variable Processing
      • Configuration Variables In MicroStation V8
      • Creating Tool Icons
      • Customize item missing from Workspace menu
      • Customize Toolbox - Tool opens new Toolbox
      • DGN file association in Windows 10 (MicroStation Does not appear in list)
      • DGN Index Service - How to set up
      • DGN Index Service Setup ended prematurely – error 1603
      • Enabling Lock Pages In Memory Under Windows 7 and Vista
      • Error - Cannot locate a default SHX font. Please install msdefault.shx
      • Error - Unable to load/create dialog item of type 'IconCmd', id
      • Error 1402. Could not open key
      • Error 1603 during install
      • Error 1610 during install
      • Error 1625 during install
      • Error message when starting MicroStation, "ucf not found"
      • File Associations
      • File Correction and Audit Tools
      • Getting Started With The Standards Checker
      • Haven't Upgraded To The MicroStation V8 Format Yet
      • How to Copy User Preferences and User Configuration Files to a new or different PC
      • How to quickly add a number of folders to Microstation's reference files search paths
      • How To Reset User Preferences and Delete MicroStation's Temporary Files
      • Installing MicroStation V8 XM Edition silently
      • Installing MicroStation V8i (SELECTseries 3) Without an Internet Connection
      • Installing MicroStation V8i silently
      • Is there any easy way to determine key-ins or variable names?
      • Key-in command to define different pattern setting options
      • Keyin to encrypt dgn files
      • MicroStation - Creating a Custom Colour Book
      • MicroStation Command Line Options And Switches
      • MicroStation Failed to Start
      • MicroStation file access issues with shared network drives
      • MicroStation Memory Management
      • +MicroStation V8i Variables
      • MicroStation Virtualization FAQ
      • Migrating Customizations to MS V8i
      • Migrating Customizations to MS XM
      • MSDebug File
      • MSXML Issue
      • Networking Workspaces
      • Networking Workspaces the easy way
      • New Variables
      • Overriding And Resynchronizing Level Attributes
      • Restore MicroStation to Factory defaults
      • Script error during MicroStation Installation
      • Serving Up Efficiency
      • Sharing Your Workspace
      • System Fault 5 MDL abort in DITEMS
      • The Power Of The Workspace
      • To also see hidden Config-Variables
      • Unable to connect to an Oracle Database
      • Understanding File Locations And Reference Attachments In MicroStation
      • Updating To MicroStation V8 Format
      • Upgrading From 08.09.02.52 To 08.09.02.77
      • Windows Explorer ProgramData folder
      • Workmodes DGN/DWG
      • Workspaces on the Network
    • +Annotations Wiki
    • +Bentley View Wiki
    • +MicroStation PowerDraft
    • +Printing and Plotting
    • +Programming Wiki
    • +Visualization Wiki

     
     Questions about this article, topic, or product? Click here. 

    MicroStation Memory Management

       
      Applies To 
       
      Product(s): MicroStation
      Version(s): V8i, V8
      Environment:  Windows 7-10
      Area:  N/A
      Subarea:  N/A
      Original Author: Keith Bentley, Bentley Software Group
       

    MicroStation V8 XM Edition and later is designed to use all of the available memory on your computer. This can be very helpful when working on large models, particularly compared to previous versions of MicroStation (which is limited to 2GB, regardless of how much memory is available).

    The topic of memory management can be quite confusing, owing to the inherently complex memory issues of a multitasking operating system like Windows, and foreign concepts like "virtual memory". The rest of this article describes some details for the technically inclined. But for the vast majority of users who simply want advice on how to configure their system to work on very large data sets, the simple answer is: buy a 64-bit computer, install Windows x64 (preferably an x64 version of Windows 7 or later), and buy lots of memory. If you don't care to subject yourself to the technical details, you can simply take that advice and skip everything below other than the sentence in bold letters.

    MicroStation V8/V8i is a 32-bit application, and is therefore limited to addressing "only" 4GB of memory. Programs running under Windows don't directly access the physical memory on your computer, so the 4GB value is referred to as "virtual memory". To complicate matters, under the 32-bit versions of Windows, the operating systems consumes 2GB of the 4GB of virtual address space. That means that under Windows32, applications like MicroStation really only have 2GB of virtual address space to use. Under Windows 64, the operating system does not consume any of an 32-bit program's address space, which is why Windows x64 is preferable to Windows32 for large models.

    So if MicroStation is limited to either 2GB or 4GB of virtual address space, how does it use more than 4GB of physical memory? The answer is that MicroStation V8/V8i internally manages its virtual address space and "reuses" it when necessary. When MicroStation detects that it is running low on memory, it attempts to "swap" the memory used to hold model data either to disk or to unused physical memory on the system, if it is available. Either will work, but obviously swapping to disk is much slower than swapping to system memory. That is why installing more memory can almost always help improve performance in memory constrained cases. This technique works equally well on both Windows32 and Windows64, although obviously you need a 64-bit computer to install more than 4GB of physical memory.

    However, to use the additional system memory directly, the user running MicroStation must be granted a "privilege" from Windows, since by default programs are not trusted to do this (don't worry, MicroStation knows what it's doing). This privilege can be enabled through "Windows Control Panel > Administrative Tools > Local Security Policy > Local Policies > User Rights Assignment > Lock Pages In Memory" (note that for Windows 7, you may need to go to "Windows Control Panel > System and Security" to get to "Administrative Tools"). Grant this permission to anyone who will use MicroStation on large models. See this special note for Enabling Lock Pages In Memory Under Windows 7 and Vista.

    (Note: the quickest route to the Local Security Policy dialog is: Windows key + R to open the Run dialog > then enter SECPOL.MSC into the Run field.)

    You can determine how much memory MicroStation is using to hold your models by looking at the Memory Details section under Help > About MicroStation. It will tell you how much memory is used by element data and whether or not you are swapping and if so, whether to disk, memory (referred to as "Paged"), or both.

    • memory
    • CONNECT Edition
    • memory MicroStation
    • 64bit
    • MicroStation
    • Share
    • History
    • More
    • Cancel
    • Keith Bentley Created by Bentley Colleague Keith Bentley
    • When: Tue, May 20 2008 5:09 PM
    • Klaudia Piekielniak Last revision by Bentley Colleague Klaudia Piekielniak
    • When: Tue, Oct 20 2020 9:56 AM
    • Revisions: 20
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies