buildInfo
buildInfo
- The
buildInfo
command is an administrative command whichreturns a build summary for the currentmongod
.buildInfo
has the followingprototype form:
- { buildInfo: 1 }
In the mongo
shell, call buildInfo
in thefollowing form:
- db.runCommand( { buildInfo: 1 } )
Example
The output document of buildInfo
has the followingform:
- {
- "version" : "<string>",
- "gitVersion" : "<string>",
- "sysInfo" : "<string>",
- "loaderFlags" : "<string>",
- "compilerFlags" : "<string>",
- "allocator" : "<string>",
- "versionArray" : [ <num>, <num>, <...> ],
- "javascriptEngine" : "<string>",
- "bits" : <num>,
- "debug" : <boolean>,
- "maxBsonObjectSize" : <num>,
- "ok" : <num>
- }
Output
buildInfo
- The document returned by the
buildInfo
command.
Supported
These fields are stable and should provide consistent behavior.
buildInfo.
gitVersion
- The commit identifier that identifies the state of the code usedto build the
mongod
.
buildInfo.
versionArray
- An array that conveys version information about the
mongod
instance. Seeversion
for amore readable version of this string.
document buildInfo.
version
- A string that conveys version information about the
mongod
instance. If you need to present version information toa human, this field is preferable toversionArray
.
This string will take the format <major>.<minor>.<patch>
in the case ofa release, but development builds may contain additional information.
New in version 3.2.
A list of storage engines available to themongod
server.
Changed in version 3.2.
A string that reports the JavaScript engine used in themongod
instance. By default, this is mozjs
afterversion 3.2, and previously V8
.
buildInfo.
bits
- A number that reflects the target processor architecture of the
mongod
binary.
buildInfo.
maxBsonObjectSize
- A number that reports the
Maximum BSON Document Size
.
buildInfo.
openssl
- An embedded document describing the version of TLS/SSL library that
mongod
was built with and is currently using.
buildInfo.
modules
- A list of add-on modules that
mongod
was built with. Possiblevalues currently include “enterprise” and “rocksdb”.
Unstable
These fields are for internal use only, and you should not expect their behavioror existence to remain consistent on any level.
Deprecated since version 3.2.
buildInfo.sysInfo
no longer contains useful information.
buildInfo.
allocator
- The memory allocator that
mongod
uses. By defaultthis istcmalloc
.
buildInfo.
buildEnvironment
- An embedded document containing various debugging information about the
mongod
build environment.