In MongoDB serverStatus(), what is the meaning of “connection data handles currently active”?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
When running db.serverStatus() in the MongoDB shell (3.4, WiredTiger), the results contain the following data:
{
"connection data handles currently active" : 94862,
"connection sweep candidate became referenced" : 0,
"connection sweep dhandles closed" : 91885,
"connection sweep dhandles removed from hash list" : 648514,
"connection sweep time-of-death sets" : 1514067,
"connection sweeps" : 40077,
"session dhandles swept" : 110175,
"session sweep attempts" : 710643
}
What is the meaning of "connection data handles currently active"? Does it have an impact on the instance's performance?
mongodb mongodb-3.4 wiredtiger
bumped to the homepage by Community♦ 3 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
When running db.serverStatus() in the MongoDB shell (3.4, WiredTiger), the results contain the following data:
{
"connection data handles currently active" : 94862,
"connection sweep candidate became referenced" : 0,
"connection sweep dhandles closed" : 91885,
"connection sweep dhandles removed from hash list" : 648514,
"connection sweep time-of-death sets" : 1514067,
"connection sweeps" : 40077,
"session dhandles swept" : 110175,
"session sweep attempts" : 710643
}
What is the meaning of "connection data handles currently active"? Does it have an impact on the instance's performance?
mongodb mongodb-3.4 wiredtiger
bumped to the homepage by Community♦ 3 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Good question... Checking wiredTiger source code from GitHub I could found only one hit/*! data-handle: connection data handles currently active */ #define WT_STAT_CONN_DH_CONN_HANDLE_COUNT 1131no code lines what would explain how that value is count.
– JJussi
Sep 19 '17 at 11:09
add a comment |
When running db.serverStatus() in the MongoDB shell (3.4, WiredTiger), the results contain the following data:
{
"connection data handles currently active" : 94862,
"connection sweep candidate became referenced" : 0,
"connection sweep dhandles closed" : 91885,
"connection sweep dhandles removed from hash list" : 648514,
"connection sweep time-of-death sets" : 1514067,
"connection sweeps" : 40077,
"session dhandles swept" : 110175,
"session sweep attempts" : 710643
}
What is the meaning of "connection data handles currently active"? Does it have an impact on the instance's performance?
mongodb mongodb-3.4 wiredtiger
When running db.serverStatus() in the MongoDB shell (3.4, WiredTiger), the results contain the following data:
{
"connection data handles currently active" : 94862,
"connection sweep candidate became referenced" : 0,
"connection sweep dhandles closed" : 91885,
"connection sweep dhandles removed from hash list" : 648514,
"connection sweep time-of-death sets" : 1514067,
"connection sweeps" : 40077,
"session dhandles swept" : 110175,
"session sweep attempts" : 710643
}
What is the meaning of "connection data handles currently active"? Does it have an impact on the instance's performance?
mongodb mongodb-3.4 wiredtiger
mongodb mongodb-3.4 wiredtiger
asked Sep 19 '17 at 10:46
TzachTzach
1727
1727
bumped to the homepage by Community♦ 3 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 3 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Good question... Checking wiredTiger source code from GitHub I could found only one hit/*! data-handle: connection data handles currently active */ #define WT_STAT_CONN_DH_CONN_HANDLE_COUNT 1131no code lines what would explain how that value is count.
– JJussi
Sep 19 '17 at 11:09
add a comment |
Good question... Checking wiredTiger source code from GitHub I could found only one hit/*! data-handle: connection data handles currently active */ #define WT_STAT_CONN_DH_CONN_HANDLE_COUNT 1131no code lines what would explain how that value is count.
– JJussi
Sep 19 '17 at 11:09
Good question... Checking wiredTiger source code from GitHub I could found only one hit
/*! data-handle: connection data handles currently active */ #define WT_STAT_CONN_DH_CONN_HANDLE_COUNT 1131 no code lines what would explain how that value is count.– JJussi
Sep 19 '17 at 11:09
Good question... Checking wiredTiger source code from GitHub I could found only one hit
/*! data-handle: connection data handles currently active */ #define WT_STAT_CONN_DH_CONN_HANDLE_COUNT 1131 no code lines what would explain how that value is count.– JJussi
Sep 19 '17 at 11:09
add a comment |
1 Answer
1
active
oldest
votes
Although I can't find any evidence for that in the documentation, it is probably the open file-handles that Mongo holds against the file storage.
I did a test that supports this idea:
- Creating new mongodb instance, "connection data handles currently active" minimum value is 11 (sometimes it becomes 12,13 and then back to 11).
- db.coll.insert({"foo":"bar"}) - "connection data handles currently active" min value = 13.
I did the same with other operations that cause mongo to create new files on disk, such as index creation, and I have noticed the same behavior.
We can conclude that this value, "connection data handles currently active" is related to the number of file-handles that mongo holds.
As for the question if it has an impact on the instance's performance, in some cases it could be true according to the next discussion at Jira:
https://jira.mongodb.org/browse/SERVER-27700
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f186300%2fin-mongodb-serverstatus-what-is-the-meaning-of-connection-data-handles-curre%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Although I can't find any evidence for that in the documentation, it is probably the open file-handles that Mongo holds against the file storage.
I did a test that supports this idea:
- Creating new mongodb instance, "connection data handles currently active" minimum value is 11 (sometimes it becomes 12,13 and then back to 11).
- db.coll.insert({"foo":"bar"}) - "connection data handles currently active" min value = 13.
I did the same with other operations that cause mongo to create new files on disk, such as index creation, and I have noticed the same behavior.
We can conclude that this value, "connection data handles currently active" is related to the number of file-handles that mongo holds.
As for the question if it has an impact on the instance's performance, in some cases it could be true according to the next discussion at Jira:
https://jira.mongodb.org/browse/SERVER-27700
add a comment |
Although I can't find any evidence for that in the documentation, it is probably the open file-handles that Mongo holds against the file storage.
I did a test that supports this idea:
- Creating new mongodb instance, "connection data handles currently active" minimum value is 11 (sometimes it becomes 12,13 and then back to 11).
- db.coll.insert({"foo":"bar"}) - "connection data handles currently active" min value = 13.
I did the same with other operations that cause mongo to create new files on disk, such as index creation, and I have noticed the same behavior.
We can conclude that this value, "connection data handles currently active" is related to the number of file-handles that mongo holds.
As for the question if it has an impact on the instance's performance, in some cases it could be true according to the next discussion at Jira:
https://jira.mongodb.org/browse/SERVER-27700
add a comment |
Although I can't find any evidence for that in the documentation, it is probably the open file-handles that Mongo holds against the file storage.
I did a test that supports this idea:
- Creating new mongodb instance, "connection data handles currently active" minimum value is 11 (sometimes it becomes 12,13 and then back to 11).
- db.coll.insert({"foo":"bar"}) - "connection data handles currently active" min value = 13.
I did the same with other operations that cause mongo to create new files on disk, such as index creation, and I have noticed the same behavior.
We can conclude that this value, "connection data handles currently active" is related to the number of file-handles that mongo holds.
As for the question if it has an impact on the instance's performance, in some cases it could be true according to the next discussion at Jira:
https://jira.mongodb.org/browse/SERVER-27700
Although I can't find any evidence for that in the documentation, it is probably the open file-handles that Mongo holds against the file storage.
I did a test that supports this idea:
- Creating new mongodb instance, "connection data handles currently active" minimum value is 11 (sometimes it becomes 12,13 and then back to 11).
- db.coll.insert({"foo":"bar"}) - "connection data handles currently active" min value = 13.
I did the same with other operations that cause mongo to create new files on disk, such as index creation, and I have noticed the same behavior.
We can conclude that this value, "connection data handles currently active" is related to the number of file-handles that mongo holds.
As for the question if it has an impact on the instance's performance, in some cases it could be true according to the next discussion at Jira:
https://jira.mongodb.org/browse/SERVER-27700
edited Sep 19 '17 at 17:11
RDFozz
9,89731531
9,89731531
answered Sep 19 '17 at 16:26
Idan CohenIdan Cohen
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Database Administrators Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f186300%2fin-mongodb-serverstatus-what-is-the-meaning-of-connection-data-handles-curre%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Good question... Checking wiredTiger source code from GitHub I could found only one hit
/*! data-handle: connection data handles currently active */ #define WT_STAT_CONN_DH_CONN_HANDLE_COUNT 1131no code lines what would explain how that value is count.– JJussi
Sep 19 '17 at 11:09