add config option to specifiy ktserver memory