-
Notifications
You must be signed in to change notification settings - Fork 612
Memory and Java
Since a lot of people ask questions about BIMserver and configuring it's Heap Size, this page hopes to clarify some details.
Java, unlike most native software, needs to know the maximum amount of memory it can use upfront. You have to specify this maximum amount of memory (Heap Size) to the Java Virtual Machine (JVM) using the -Xmx argument. Here’s how to do it:
For 4GB of memory:
-Xmx4g
For 16GB of memory:
-Xmx16g
Java will not necessarily use all the memory that is given, -Xmx
specifies just a maximum amount it can use.
The amount should cover the BIMserver requirements, but not exceed the available resources.
BIMserver needs at least 1GB. Depending on usage and plugins, BIMserver might require up to 100GB. See Memory usage.
The available and usable amount of memory is also limited by various factors, namely your machine's physical resources, the operating system and the JVM bitness.
-
You cannot allocate more memory than the physical (or virtual) memory of your machine. It has to be less then that because other software (including the OS) will also use memory. Depending on what OS/software is installed, keep at least 1GB free for the other software.
-
Your computer and operating system can have a 32-bit or 64-bit architecture. With 32-bit OS, the maximum physical memory that can be addressed is limited to 4GB. With 64-bit there are no relevant limitations for memory allocation.
-
The JVM cannot use the full physical and addressable memory due to the reasons under 1. A 32-bit JVM on a 32-bit OS usually can use up to approximately 1300MB of memory, which is not much! Thus, if you are on 64-bit OS, ensure you are using a 64-bit JVM to avoid memory limitations. Using a 32-bit JVM on a 64-bit OS is not recommended for running a BIMserver.
Get Started
- Quick Guide
- Requirements Version 1.2
- Requirements Version 1.3
- Requirements Version 1.4
- Requirements Version 1.4 > 2015-09-12
- Requirements Version 1.5
- Download
- JAR Starter
- Setup
Deployment
- Ubuntu installation 1.3
- Windows installation
- Security
- Memory Usage
- More memory
- Performance statistics
- Large databases
Developers
- Service Interfaces
- Common functions
- Data Model
- Low Level Calls
- Endpoints
Clients
BIMServer Developers
- Plugins in 1.5
- Plugin Development
- Eclipse
- Eclipse Modeling Framework
- Embedding
- Terminology
- Database/Versioning
- IFC STEP Encoding
- Communication
- Global changes in 1.5
- Writing a service
- Services/Notifications
- BIMserver 1.5 Developers
- Extended data
- Extended data schema
- Object IDM
New developments
- New remote service interface
- Plugins new
- Deprecated
- New query language
- Visual query language
- Reorganizing BIMserver JavaScript API
General