added memory-alloc for tomcat