Mongo warning: log line attempted (36kB) over max size (10kB)











up vote
0
down vote

favorite












I have used mongodb running with codeigiter.
However, when I checked the log, I discovered the error content.




I COMMAND [conn80191] warning: log line attempted (36kB) over max
size (10kB), printing beginning and end ... command news.post command:
count { count: "post", query: { active: 1, id: { $in: [ 0, 258195,
258201] } }, $db: "news" } planSummary: IXSCAN { id: 1 }
keysExamined:8361 docsExamined:4329 numYields:84 reslen:44 locks:{
Global: { acquireCount: { r: 170 } }, Database: { acquireCount: { r:
85 } }, Collection: { acquireCount: { r: 85 } } } protocol:op_query
1447ms




Lots of requests,
We wish everyone help.
Thanks!










share|improve this question









New contributor




Phan Hồng Văn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Server log messages are not really a topic for Stack Overflow. You can ask about configuring those on dba.stackexchange.com instead. From a "coding" perspective the message is essentially triggered by excessively long query statements. A likely cause of which is commonly putting 1000's of arguments within $in, which you really should not do
    – Neil Lunn
    Nov 18 at 22:08










  • Further to the error message, the max line size MongoDB will log is 10kB. You have a slow query (>100ms) which is by default logged by MongoDB. However the whole log line which includes your query is 36kB, which is more than 3x the maximum log line. Note that a ~10kB query is already big, so a ~36kB query is excessively big and will not be performant (hence the query being slow). You might want to revisit your queries to make sure you don't have such a big query.
    – Kevin Adistambha
    yesterday















up vote
0
down vote

favorite












I have used mongodb running with codeigiter.
However, when I checked the log, I discovered the error content.




I COMMAND [conn80191] warning: log line attempted (36kB) over max
size (10kB), printing beginning and end ... command news.post command:
count { count: "post", query: { active: 1, id: { $in: [ 0, 258195,
258201] } }, $db: "news" } planSummary: IXSCAN { id: 1 }
keysExamined:8361 docsExamined:4329 numYields:84 reslen:44 locks:{
Global: { acquireCount: { r: 170 } }, Database: { acquireCount: { r:
85 } }, Collection: { acquireCount: { r: 85 } } } protocol:op_query
1447ms




Lots of requests,
We wish everyone help.
Thanks!










share|improve this question









New contributor




Phan Hồng Văn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Server log messages are not really a topic for Stack Overflow. You can ask about configuring those on dba.stackexchange.com instead. From a "coding" perspective the message is essentially triggered by excessively long query statements. A likely cause of which is commonly putting 1000's of arguments within $in, which you really should not do
    – Neil Lunn
    Nov 18 at 22:08










  • Further to the error message, the max line size MongoDB will log is 10kB. You have a slow query (>100ms) which is by default logged by MongoDB. However the whole log line which includes your query is 36kB, which is more than 3x the maximum log line. Note that a ~10kB query is already big, so a ~36kB query is excessively big and will not be performant (hence the query being slow). You might want to revisit your queries to make sure you don't have such a big query.
    – Kevin Adistambha
    yesterday













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have used mongodb running with codeigiter.
However, when I checked the log, I discovered the error content.




I COMMAND [conn80191] warning: log line attempted (36kB) over max
size (10kB), printing beginning and end ... command news.post command:
count { count: "post", query: { active: 1, id: { $in: [ 0, 258195,
258201] } }, $db: "news" } planSummary: IXSCAN { id: 1 }
keysExamined:8361 docsExamined:4329 numYields:84 reslen:44 locks:{
Global: { acquireCount: { r: 170 } }, Database: { acquireCount: { r:
85 } }, Collection: { acquireCount: { r: 85 } } } protocol:op_query
1447ms




Lots of requests,
We wish everyone help.
Thanks!










share|improve this question









New contributor




Phan Hồng Văn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have used mongodb running with codeigiter.
However, when I checked the log, I discovered the error content.




I COMMAND [conn80191] warning: log line attempted (36kB) over max
size (10kB), printing beginning and end ... command news.post command:
count { count: "post", query: { active: 1, id: { $in: [ 0, 258195,
258201] } }, $db: "news" } planSummary: IXSCAN { id: 1 }
keysExamined:8361 docsExamined:4329 numYields:84 reslen:44 locks:{
Global: { acquireCount: { r: 170 } }, Database: { acquireCount: { r:
85 } }, Collection: { acquireCount: { r: 85 } } } protocol:op_query
1447ms




Lots of requests,
We wish everyone help.
Thanks!







mongodb






share|improve this question









New contributor




Phan Hồng Văn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Phan Hồng Văn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 17 at 10:49









Sagar Zala

2,30741235




2,30741235






New contributor




Phan Hồng Văn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 17 at 10:42









Phan Hồng Văn

1




1




New contributor




Phan Hồng Văn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Phan Hồng Văn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Phan Hồng Văn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Server log messages are not really a topic for Stack Overflow. You can ask about configuring those on dba.stackexchange.com instead. From a "coding" perspective the message is essentially triggered by excessively long query statements. A likely cause of which is commonly putting 1000's of arguments within $in, which you really should not do
    – Neil Lunn
    Nov 18 at 22:08










  • Further to the error message, the max line size MongoDB will log is 10kB. You have a slow query (>100ms) which is by default logged by MongoDB. However the whole log line which includes your query is 36kB, which is more than 3x the maximum log line. Note that a ~10kB query is already big, so a ~36kB query is excessively big and will not be performant (hence the query being slow). You might want to revisit your queries to make sure you don't have such a big query.
    – Kevin Adistambha
    yesterday


















  • Server log messages are not really a topic for Stack Overflow. You can ask about configuring those on dba.stackexchange.com instead. From a "coding" perspective the message is essentially triggered by excessively long query statements. A likely cause of which is commonly putting 1000's of arguments within $in, which you really should not do
    – Neil Lunn
    Nov 18 at 22:08










  • Further to the error message, the max line size MongoDB will log is 10kB. You have a slow query (>100ms) which is by default logged by MongoDB. However the whole log line which includes your query is 36kB, which is more than 3x the maximum log line. Note that a ~10kB query is already big, so a ~36kB query is excessively big and will not be performant (hence the query being slow). You might want to revisit your queries to make sure you don't have such a big query.
    – Kevin Adistambha
    yesterday
















Server log messages are not really a topic for Stack Overflow. You can ask about configuring those on dba.stackexchange.com instead. From a "coding" perspective the message is essentially triggered by excessively long query statements. A likely cause of which is commonly putting 1000's of arguments within $in, which you really should not do
– Neil Lunn
Nov 18 at 22:08




Server log messages are not really a topic for Stack Overflow. You can ask about configuring those on dba.stackexchange.com instead. From a "coding" perspective the message is essentially triggered by excessively long query statements. A likely cause of which is commonly putting 1000's of arguments within $in, which you really should not do
– Neil Lunn
Nov 18 at 22:08












Further to the error message, the max line size MongoDB will log is 10kB. You have a slow query (>100ms) which is by default logged by MongoDB. However the whole log line which includes your query is 36kB, which is more than 3x the maximum log line. Note that a ~10kB query is already big, so a ~36kB query is excessively big and will not be performant (hence the query being slow). You might want to revisit your queries to make sure you don't have such a big query.
– Kevin Adistambha
yesterday




Further to the error message, the max line size MongoDB will log is 10kB. You have a slow query (>100ms) which is by default logged by MongoDB. However the whole log line which includes your query is 36kB, which is more than 3x the maximum log line. Note that a ~10kB query is already big, so a ~36kB query is excessively big and will not be performant (hence the query being slow). You might want to revisit your queries to make sure you don't have such a big query.
– Kevin Adistambha
yesterday

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});


}
});






Phan Hồng Văn is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53350436%2fmongo-warning-log-line-attempted-36kb-over-max-size-10kb%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Phan Hồng Văn is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Phan Hồng Văn is a new contributor. Be nice, and check out our Code of Conduct.













Phan Hồng Văn is a new contributor. Be nice, and check out our Code of Conduct.












Phan Hồng Văn is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53350436%2fmongo-warning-log-line-attempted-36kb-over-max-size-10kb%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

RAC Tourist Trophy