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 ?

Happy Splunking!
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!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...