Hi Alfred, It could be you're seeing the effect of busy waiting from Erlang VM schedulers. Erlang VM would spawn a scheduler for each CPU core, and then after any of those schedulers run out of work, they would still spin in a busy loop for a bit waiting for more work. Sometimes that is not desirable, especially in containerized environments so then it's recommended to disable busy waiting by setting +sbwt to none in the vm.args file. Give that a try and see if it helps. More info about it can be found at https://adoptingerlang.org/docs/production/kubernetes/
Another reason could be that there are some background index building or compaction jobs running.. Check out the output of _active_tasks to see if that's the case. Cheers, -Nick On Sun, Aug 14, 2022 at 11:38 AM Al Z. <az4j...@gmail.com> wrote: > > Hello. > I have the latest CouchDB 3.2.2 on Ubuntu 22.04 > > Even when there are no active clients talking to couchdb, the CPU is always > above 15%. > Not sure why. > couchdb's beam.smp is currently the busiest process on the server. > > [image: image.png] > > > # ps aux | grep couchdb > couchdb 979 13.4 0.1 4647432 100284 ? Ssl 15:03 2:10 > /opt/couchdb/bin/../erts-12.2.1/bin/beam.smp -K true -A 16 -Bd -- -root > /opt/couchdb/bin/.. -progname couchdb -- -home /opt/couchdb -- -boot > /opt/couchdb/bin/../releases/3.2.2/couchdb -name couchdb@localhost > -setcookie SOME_SECRET_COOKIE -kernel inet_dist_use_interface {127,0,0,1} > -kernel error_logger silent -sasl sasl_error_logger false -noshell -noinput > -smp enable -ssl session_lifetime 300 -- -config > /opt/couchdb/bin/../releases/3.2.2/sys.config -- > couchdb 1111 0.0 0.0 7136 220 ? S 15:03 0:00 > /opt/couchdb/bin/../erts-12.2.1/bin/epmd -daemon > couchdb 1163 0.0 0.0 2780 972 ? Ss 15:03 0:00 > erl_child_setup 65536 > couchdb 2727 0.0 0.0 3736 1192 ? Ss 15:04 0:00 > inet_gethost 4 > couchdb 2728 0.0 0.0 3736 108 ? S 15:04 0:00 > inet_gethost 4 > root 2982 0.0 0.0 6612 2220 pts/1 S+ 15:30 0:00 grep > --color=auto couchdb > > > Any hint will be appreciated. > > Thank you very much. > > Alfred.