- Reference >
- Database Commands >
- Diagnostic Commands >
- buildInfo
buildInfo¶
-
buildInfo
¶ The
buildInfo
command is an administrative command which returns a build summary for the currentmongod
.buildInfo
has the following prototype form:In the
mongo
shell, callbuildInfo
in the following form:Example
The output document of
buildInfo
has the following form:Consider the following documentation of the output of
buildInfo
:-
buildInfo.
gitVersion
¶ The commit identifier that identifies the state of the code used to build the
mongod
.
-
buildInfo.
sysInfo
¶ A string that holds information about the operating system, hostname, kernel, date, and Boost version used to compile the
mongod
.
-
buildInfo.
allocator
¶ Changed in version 2.2.
The memory allocator that
mongod
uses. By default this istcmalloc
after version 2.2, andsystem
before 2.2.
-
buildInfo.
versionArray
¶ An array that conveys version information about the
mongod
instance. Seeversion
for a more readable version of this string.
-
buildInfo.
javascriptEngine
¶ Changed in version 2.4.
A string that reports the JavaScript engine used in the
mongod
instance. By default, this isV8
after version 2.4, andSpiderMonkey
before 2.4.
-
buildInfo.
debug
¶ A boolean.
true
when built with debugging options.
-
buildInfo.
maxBsonObjectSize
¶ A number that reports the
Maximum BSON Document Size
.
-