How can we determine memory used by our application

Discussions

Web tier: servlets, JSP, Web frameworks: How can we determine memory used by our application

  1. How can we determine memory used by our application (1 messages)

    Hello All, i have a struts base application in which lot of views created at runtime when any data want by jsp page this is done by using a view classes, now if i need to know how much memory is been used by that perticular application, at any time i want to do it by a separate servlet or jsp page how can i overcome this problem

    with best regards...
    and Thanks in advance....
    Raheel
  2. Hi Raheel,

    I think the best way is to try one of the profiling tools available out there like OptimizeIt, JProfiler or some open source alternative. Do a search on profiling tools on Google and you'll probably come up with alternatives. These tools will give you a good insight into object creation, how much memory different methods use etc.

    Regards,
    Fredrik