The current RAM usage is 25GB. You need to upgrade your memory to 32GB RAM or use ZRAM to compress.
Read this guide, it will help you setup your Witness server.
https://steeming.com/witness-update/@yehey/howto-setup-witness-node-by-yehey-updated-tutorial-guide
Good luck.
I have Zram.