Ghost ends up using all 1GB memory of my VPS

How do you set up jemalloc as memory allocator?

I’ve only just started using Ghost and will be using lots of images, I’m already finding that memory is getting full quickly all the time with only a handful uploaded. I’ve added a swap file. I had to start the site again from scratch after the droplet crashed and I could not reboot.

many thanks :)