[SERVER-28712] serverStatus collect extraInfo may be slow? Created: 10/Apr/17 Updated: 27/Oct/23 Resolved: 19/May/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Performance |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | deyukong | Assignee: | Mark Agarunov |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
In mongod's slow log. I got so many lines like below: there are so many lines like above. What is important is that time all grows after getting extra_info. Which I found is to run mallinfo() on linux after digging into the code. I doubt that mallinfo may be slow in some situations because all the slow logs I got is caused by the time-cost after extra_info. |
| Comments |
| Comment by deyukong [ 07/Dec/17 ] |
|
We have found the problem. If someone meets this situation, you should strace the monitor-agent to see if mongod's smaps is being read. |
| Comment by deyukong [ 20/May/17 ] |
|
Perhaps more consideration should be taken. ) can trigger slow serverStatus, followed by a huge amount of other slow queries. |
| Comment by Mark Agarunov [ 12/Apr/17 ] |
|
Hello wolf_kdy, Thank you for providing the files. Looking over the diagnostic data and logs, it appears that as there is more load placed on the server, as a result serverStatus takes longer to return and times out. I don't see anything that would indicate a bug, after the load on the server is increased, the performance seems to be relatively consistent. If you are not seeing a performance degradation, this appears to be working as expected. Thanks, |
| Comment by deyukong [ 12/Apr/17 ] |
|
@Mark Agarunov |
| Comment by Mark Agarunov [ 11/Apr/17 ] |
|
Hello wolf_kdy, Thank you for the report. To better investigate the behavior you've described, I'd like to request some additional information. Could you please provide the following:
Thanks, |