Deployment Architecture

Why is there high Mongod CPU usage on the search head?

omprakash9998
Path Finder

Hi,

On my search head, Mongod is consuming most of my CPU usage:

**115786 splunk    20   0   40.4g  10.6g  10.5g S  93.8 68.3   7416:45 mongod**
 81093 splunk    20   0  262404  96308  13996 S   6.2  0.6   0:03.92 splunkd
     1 root      20   0  193856   4640   2876 S   0.0  0.0   3:31.64 systemd

Is this ok? If not please help me how to resolve this.

Thanks,
Om

vr2312
Contributor

There is a possibility that a default splunk app/add-on is using the KV Store resources that is spiking up the CPU usage. You might want to check on it manually and disable the operation to help it from crashing or high utilization.

0 Karma

omprakash9998
Path Finder

The below cmd is using lots of CPU. Please hrelp me resolve this issue.

***`mongod --dbpath=/opt/splunk/var/lib/splunk/kvstore/mongo --storageEngine=mmapv1 --port=8191 --timeStampFormat=iso8601-utc --smallfiles --oplogSize=400 --keyFile=/opt/splunk/var/lib/splunk/kvstore/mongo/splunk.key --setParameter=enableLocalhostAuthBypass=0 --setParameter=oplogFetcherSteadyStateMaxFetcherRestarts=0 --replSet=C05774DE-5404-499E-B70B-2313F5C3E303 --bind_ip=0.0.0.0 --sslMode=requireSSL --sslAllowInvalidHostnames --sslPEMKeyFile=/opt/splunk/etc/auth/server.pem --sslPEMKeyPassword=xxxxxxxx --sslDisabledProtocols=noTLS1_0,noTLS1_1 --sslCipherConfig=`***
0 Karma

bazanha
Engager

Is there a way to know which APP is using KV and stressing MongoDB?
I have this problem.
MongoDB is consuming more than 60% of the CPU.
Please, someone help me ???

0 Karma

omprakash9998
Path Finder

How do we look for the app/add-on manually that are using KV store resources.

Thanks,
Om

0 Karma

renjith_nair
Legend

Do you have a lot of KVSTORE look ups and operations ?

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

omprakash9998
Path Finder

No. we do not have lots of KV Store lookups. Its a basic splunk install . we run only few apps like Windows Infrastructe and a Cisco App

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...