I am having approximately 150 web applications in my tomcat web-apps directory can these be the one of the reason for increase in memory usage. i have installed tomcat as a service.
But also I am using only one web application rest of them(149) are just the back up of the one, is these causes memory issues
yeah i have used the Hash map for the purpose of reading,writing the data. i have placed the hash map in "<% %>" scriplet along with code that will iterate over the collection. i think due to multiple request to the jsp page data race occurring in the jsp. i have tried synchronization is there any other way to avoid the data race problem.
In my jsp page I am having a Hash Map collection, when multiple request made to the jsp page the operation of Hash map is unpredictable. but when i replaced the Hash Map with string array every thing is working fine(execution in a synchronized manner). may i know the reason why execution of hash map during multiple request is unpredictable? is there any possibility of synchronizing the hash map