- Reference >
- Database Commands >
- Diagnostic Commands >
- buildInfo
buildInfo¶
On this page
Definition¶
Syntax¶
The command has the following syntax:
Usage¶
In mongosh, call buildInfo in the
following form:
The output document of buildInfo has the following
form:
Output¶
Supported¶
These fields are stable and should provide consistent behavior.
-
buildInfo.gitVersion¶ The commit identifier that identifies the state of the code used to build the
mongod.
-
buildInfo.versionArray¶ An array that conveys version information about the
mongodinstance. Seeversionfor a more readable version of this string.
-
buildInfo.version¶ A string that conveys version information about the
mongodinstance. If you need to present version information to a human, this field is preferable toversionArray.This string will take the format
<major>.<minor>.<patch>in the case of a release, but development builds may contain additional information.
-
buildInfo.storageEngines¶ A list of storage engines available to the
mongodserver.
-
buildInfo.javascriptEngine¶ A string that reports the JavaScript engine used in the
mongodinstance. By default, this ismozjsafter version 3.2, and previouslyV8.
-
buildInfo.bits¶ A number that reflects the target processor architecture of the
mongodbinary.
-
buildInfo.debug¶ A boolean.
truewhen built with debugging options.
-
buildInfo.maxBsonObjectSize¶ A number that reports the
Maximum BSON Document Size.
-
buildInfo.openssl¶ An embedded document describing the version of the TLS/SSL library that
mongodwas built with and is currently using.
-
buildInfo.modules¶ A list of add-on modules that
mongodwas built with. Possible values currently include “enterprise” and “rocksdb”.
Unstable¶
These fields are for internal use only, and you should not expect their behavior or existence to remain consistent on any level.
-
buildInfo.sysInfo¶ Deprecated since version 3.2.
buildInfo.sysInfono longer contains useful information.
-
buildInfo.allocator¶ The memory allocator that
mongoduses. By default this istcmalloc.
-
buildInfo.buildEnvironment¶ An embedded document containing various debugging information about the
mongodbuild environment.