add config to web.xml to clean memory