Can't you just disable the real-time shields? I recall the memory usage drops a lot as you disable them.. Or, not tried it but what happens if you stop the avast services?
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***
hMailServer build LIVE on my servers: 5.4-B2014050402
Latest test builds: http://www.hmailserver.com/forum/viewtopic.php?f=10&t=21420