I am making an web application in which i m sending ajax requests to my api methods in every 2 seconds for getting updates.
i am using a no. of maps and lists to retrive data.and i am using tomcat web sever.what the main problem is that i m facing heap size problem in some hours
after starting my application.
Actually my methods returns maps and lists and Garbage Collector is not able to remove them from memory rapidly.
please give me solution if anyone had worked on such type of application.....i am waiting for a right solution.........