Making ejabberd utilize multiple cores.

My current ejabberd setup doesn't seem to be using all of my cores. Sometimes it will grind up to 100% on one core while the others barely do anything.

Is there a simple switch to make it utilize them all or is this just a perception thing?

Im using Quad Core Xeons.

Possibly I overlooked

Possibly I overlooked something, and i know erlang must be compiled allowing smp support, but does ejabberd utilize this by default or do flags need to be enabled when starting ejabberd.

looks like -smp is what i

looks like -smp is what i was looking for.

Yes. Also configurable in ejabberdctl.cfg

dS_Jeffrey wrote:

looks like -smp is what i was looking for.

Yes. And if you use the ejabberdctl command line script included in ejabberd 2.0.0, you can configure Erlang's SMP in ejabberdctl.cfg

# SMP: SMP support ([enable|auto|disable])
#
# Explanation in Erlang/OTP documentation:
# enable: starts the Erlang runtime system with SMP support enabled. 
#   This may fail if no runtime system with SMP support is available.
# auto: starts the Erlang runtime system with SMP support enabled if it
#   is available and more than one logical processor are detected.
# disable: starts a runtime system without SMP support.
#
# Default: auto
#
#SMP=auto
Syndicate content