- Reference >
- Database Commands >
- Diagnostic Commands >
- buildInfo
buildInfo¶
-
buildInfo¶ The
buildInfocommand is an administrative command which returns a build summary for the currentmongod.buildInfohas the following prototype form:In the
mongoshell, callbuildInfoin the following form:Example
The output document of
buildInfohas 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
mongoduses. By default this istcmallocafter version 2.2, andsystembefore 2.2.
-
buildInfo.versionArray¶ An array that conveys version information about the
mongodinstance. Seeversionfor a more readable version of this string.
-
buildInfo.javascriptEngine¶ Changed in version 2.4.
A string that reports the JavaScript engine used in the
mongodinstance. By default, this isV8after version 2.4, andSpiderMonkeybefore 2.4.
-
buildInfo.debug¶ A boolean.
truewhen built with debugging options.
-
buildInfo.maxBsonObjectSize¶ A number that reports the
Maximum BSON Document Size.
-