Re: [Dspace-tech] Java out of memory error : urgent plz

2009-09-10 Thread Robin Taylor
Hi Baseer,

If you have more memory available on the machine then allocate it to Tomcat. 
These are our settings, although we are running a number of installations of 
Dspace...

JAVA_OPTS="-Xms3072m -Xmx3072m -XX:PermSize=256m -XX:MaxPermSize=256m...

Cheers.



Robin Taylor
Main Library
University of Edinburgh
Tel. 0131 6513808  

> -Original Message-
> From: Khan, Baseer [mailto:baseer.k...@wichita.edu] 
> Sent: 09 September 2009 21:41
> To: dspace-tech@lists.sourceforge.net
> Subject: [Dspace-tech] Java out of memory error : urgent plz
> 
> Hello ,
> 
> We have recently run the Dspace statistics on the server , 
> since then the website is going on and off , 
> 
> It generally gives the java language out of memory error http 500 , 
> 
> 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 
> 
>  
> 
> free -m -t
> 
>  total   used   free shared
> buffers cached
> 
> Mem:   1004702302  0 18361
> 
> -/+ buffers/cache:322681
> 
> Swap: 1992124   1868
> 
> Total:2996826   2170
> 
>  
> 
>  
> 
> The java opts in the /etc/profile is 
> 
> JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"
> 
>  
> 
> So can anyone suggest me what is the best thing I need to do ,
> 
> Do I add additional RAM to the server or increase the memory stubs .
> 
> Please advise .
> 
>  
> 
> Thank you,
> 
> Baseer.
> 
>  
> 
>  
> 
>  
> 
>


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


--
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


Re: [Dspace-tech] Java out of memory error : urgent plz

2009-09-09 Thread Van Ly

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 
  4 
  5   JVM Memory Monitor
  6 
  7 

  8 
  9 Memory MXBean
 10 Heap Memory Usage
 12 <%=
 13 ManagementFactory.getMemoryMXBean().getHeapMemoryUsage()
 14 %>
 15 

 16 Non-Heap Memory
 17 Usage
 18 <%=
 19 ManagementFactory.getMemoryMXBean().getNonHeapMemoryUsage()
 20 %>
 21 
 22  

 23 Memory Pool MXBeans

 24 <%
 25 Iterator iter = ManagementFactory.getMemoryPoolMXBeans 
().iterator();
 26 while (iter.hasNext()) {
 27 MemoryPoolMXBean item = (MemoryPoolMXBean)  
iter.next();
 28 %>

 29 
 30 
 31 <%= item.getName() %>
 32 Type<%= item.getType() %>
 33 Usage<%= item.getUsage() %>
 34 Peak Usage<%= item.getPeakUsage() %>
 35 Collection Usage<%= item.getCollectionUsage 
() %>
 36 
 37 

 38  



 39 <%
 40 }
 41 %>

 42 

 43 HERE

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


[Dspace-tech] Java out of memory error : urgent plz

2009-09-09 Thread Khan, Baseer
Hello ,
We have recently run the Dspace statistics on the server , since then the 
website is going on and off ,
It generally gives the java language out of memory error http 500 ,
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

free -m -t
 total   used   free sharedbuffers cached
Mem:   1004702302  0 18361
-/+ buffers/cache:322681
Swap: 1992124   1868
Total:2996826   2170


The java opts in the /etc/profile is
JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"

So can anyone suggest me what is the best thing I need to do ,
Do I add additional RAM to the server or increase the memory stubs .
Please advise .

Thank you,
Baseer.



--
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