The setup guide is at my blog : Samiux's Blog. I am not allowed to post the link here
Another method is to add the following line into /lib/systemd/system/hiawatha.service :
Environment="LD_PRELOAD=/usr/local/lib/libjemalloc.so"
or
Environment="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so"