High CPU and RAM usage by 'cbq-engine'

I am using couchbase 5.0.1

Couchbase internal processes like beam.smp, indexer and cbq-engine are taking a lot of CPU. Can you please tell me how to tune these processes so that they take less CPU

ss1

ss2