On 10/09/2009, at 6:41 AM, Khan, Baseer wrote: > > When I searched for it shows me the memory needs to be increased > for tomcat , > > This is the output of the free command on the server > > >
I picked up the following jsp page for revealing memory state you could find useful. To use, put it in your webapps directory as `mem- status.jsp' and point your browser at it. It is as follows: 1 <%@ page import="java.lang.management.*" %> 2 <%@ page import="java.util.*" %> 3 <html> 4 <head> 5 <title>JVM Memory Monitor</title> 6 </head> 7 </html> 8 <table border="0" width="100%"> 9 <tr><td colspan="2" align="center"><h3>Memory MXBean</h3></ td></tr> 10 <tr><td 11 width="200">Heap Memory Usage</td><td> 12 <%= 13 ManagementFactory.getMemoryMXBean().getHeapMemoryUsage() 14 %> 15 </td></tr> 16 <tr><td>Non-Heap Memory 17 Usage</td><td> 18 <%= 19 ManagementFactory.getMemoryMXBean().getNonHeapMemoryUsage() 20 %> 21 </td></tr> 22 <tr><td colspan="2"> </td></tr> 23 <tr><td colspan="2" align="center"><h3>Memory Pool MXBeans</ h3></td></tr> 24 <% 25 Iterator iter = ManagementFactory.getMemoryPoolMXBeans ().iterator(); 26 while (iter.hasNext()) { 27 MemoryPoolMXBean item = (MemoryPoolMXBean) iter.next(); 28 %> 29 <tr><td colspan="2"> 30 <table border="0" width="100%" style="border: 1px #98AAB1 solid;"> 31 <tr><td colspan="2" align="center"><b><%= item.getName() %></ b></td></tr> 32 <tr><td width="200">Type</td><td><%= item.getType() %></td></tr> 33 <tr><td>Usage</td><td><%= item.getUsage() %></td></tr> 34 <tr><td>Peak Usage</td><td><%= item.getPeakUsage() %></td></tr> 35 <tr><td>Collection Usage</td><td><%= item.getCollectionUsage () %></td></tr> 36 </table> 37 </td></tr> 38 <tr><td colspan="2"> </td></tr> 39 <% 40 } 41 %> 42 </table> 43 <pre>HERE</pre> Best wishes, Van Ly vly at usyd dot edu dot au ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech