Also to note, you cannot use higher maxMem values unless you use a custom memory allocator - like the one I posted - as the default mallocs only allow up to 2GB of RAM usage.