[SERVER-11437] High CPU, low memory usage on Windows 2008 R2 Primary in replica set Created: 29/Oct/13  Updated: 11/Jul/16  Resolved: 04/Nov/13

Status: Closed
Project: Core Server
Component/s: Performance
Affects Version/s: 2.4.4
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: joseph rodriguez Assignee: Unassigned
Resolution: Done Votes: 0
Labels: c#, cpu
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows Server 2008 R2 Virtual Server. Replica Set - Primary, Secondary, and Arbitor - each on own server


Participants:

 Description   

We are experiencing high CPU, above 90% on the primary server of a replica set. The server is only hosting MongoDb. We have 3 servers, primary, secondary, and an arbiter in our production environment. There are a few databases. The total data size in all databases is very small. Our mongodb instance is datastore for a .NET web application. We are using the C3 driver, version 1.8.1. Connection string: mongodb://TMPTBCACHE01P,TMPTBCACHE02P/?replicaSet=TMPWW;readpreference=primaryPreferred



 Comments   
Comment by Ranjay Krishna [ 04/Nov/13 ]

Great. Thanks for letting us know how you fixed it. If there are any more issues related to this, please feel free to post here.

Comment by joseph rodriguez [ 04/Nov/13 ]

Determined the issue was simply doing way too many reads. Reduced the reads and CPU is below 20%.
Thanks

Comment by joseph rodriguez [ 29/Oct/13 ]

Let me know if more information is needed and if you would like to see the logs for the primary server.

Generated at Thu Feb 08 03:25:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.