Hello,
there are only a few services running by default on an ESXi host. You can stop and configure them to not start at system boot, e.g. in the legacy C# client under Configuration/Software/Security Profile/Services/Properties ...
I could stop all of the Running services except Syslog, but I doubt that you will be able to save a lot of RAM by that:
4 GB RAM is just not enough to make good use of ESXi ...
Andreas
Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de