[Dspace-tech] Question about tomcat 6 or 7

2011-05-26 Thread George S Kozak
Hi...

I am running DSpace 1.7.1 with apache-tomcat-5.5.26 and jdk1.6.0_07.  
Everything works fine except to the Solr Stats.   If I do a 
http://localhost:8080/solr/statistics/admin, I get an error display and 
clicking on the View Statistics button results in an error like
Error using query type: 3 AND  id:431

So, I tried switching to apache-tomcat-6.0.32.  I was able now to execute the 
http://localhost:8080/solr/statistics/admin, but if I try to view a Collection 
or an Item, I get a
java.lang.OutOfMemoryError: PermGen space Error

I tried apache-tomcat-7.0.14, and I got the same error.

I was using JAVA_OPTS=-server -Xms1024m -Xmx2048m -Xmn64m 
-Dfile.encoding=UTF-8 -XX:+UseParallelGC -verbose:gc 
-Xloggc:/dspace/dspace/log/gc.log
I also tried CATALINA_OPTS=-Xms256m -Xmx1028m -XX:MaxPermSize=256m
But neither of those helped.  I know a lot has been written about memory leaks 
and what can be done, but I think I'm doing teh right stuff, but nothhing seems 
to be working.
ANy idea would be appreciated.

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CULIT)
501 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Question about tomcat 6 or 7 - follow up!

2011-05-26 Thread George S Kozak
Hi...
As is always the case...after I sent out an email in final desperation, I find 
the solution!.  I had left out some of my JAVA_OPTS parameters to handle the 
java OutofMemory problem.  Sorry to bother everyone.

Here is what fixed things:
JAVA_OPTS=-server -Xms1024m -Xmx2048m -Xmn64m -Dfile.encoding=UTF-8 
-XX:+UseParallelGC -verbose:gc -Xloggc:/dspace/dspace/log/gc.log 
-XX:+HeapDumpOnOutOfMemoryError -XX:PermSize=1024m -XX:MaxPermSize=1024m 
-XX:-UseGCOverheadLimit
George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CULIT)
501 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924


From: George S Kozak [g...@cornell.edu]
Sent: Thursday, May 26, 2011 1:20 PM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Question about tomcat 6 or 7

Hi...

I am running DSpace 1.7.1 with apache-tomcat-5.5.26 and jdk1.6.0_07.  
Everything works fine except to the Solr Stats.   If I do a 
http://localhost:8080/solr/statistics/admin, I get an error display and 
clicking on the View Statistics button results in an error like
Error using query type: 3 AND  id:431

So, I tried switching to apache-tomcat-6.0.32.  I was able now to execute the 
http://localhost:8080/solr/statistics/admin, but if I try to view a Collection 
or an Item, I get a
java.lang.OutOfMemoryError: PermGen space Error

I tried apache-tomcat-7.0.14, and I got the same error.

I was using JAVA_OPTS=-server -Xms1024m -Xmx2048m -Xmn64m 
-Dfile.encoding=UTF-8 -XX:+UseParallelGC -verbose:gc 
-Xloggc:/dspace/dspace/log/gc.log
I also tried CATALINA_OPTS=-Xms256m -Xmx1028m -XX:MaxPermSize=256m
But neither of those helped.  I know a lot has been written about memory leaks 
and what can be done, but I think I'm doing teh right stuff, but nothhing seems 
to be working.
ANy idea would be appreciated.

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CULIT)
501 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Question about tomcat 6 or 7

2011-05-26 Thread Mark H. Wood
On Thu, May 26, 2011 at 01:20:27PM -0400, George S Kozak wrote:
 I am running DSpace 1.7.1 with apache-tomcat-5.5.26 and jdk1.6.0_07.  
 Everything works fine except to the Solr Stats.   If I do a 
 http://localhost:8080/solr/statistics/admin, I get an error display and 
 clicking on the View Statistics button results in an error like
 Error using query type: 3 AND  id:431
 
 So, I tried switching to apache-tomcat-6.0.32.  I was able now to execute the 
 http://localhost:8080/solr/statistics/admin, but if I try to view a 
 Collection or an Item, I get a
 java.lang.OutOfMemoryError: PermGen space Error
 
 I tried apache-tomcat-7.0.14, and I got the same error.
 
 I was using JAVA_OPTS=-server -Xms1024m -Xmx2048m -Xmn64m 
 -Dfile.encoding=UTF-8 -XX:+UseParallelGC -verbose:gc 
 -Xloggc:/dspace/dspace/log/gc.log
 I also tried CATALINA_OPTS=-Xms256m -Xmx1028m -XX:MaxPermSize=256m
 But neither of those helped.  I know a lot has been written about memory 
 leaks and what can be done, but I think I'm doing teh right stuff, but 
 nothhing seems to be working.

It probably depends on your OS.  On Gentoo I use something like this
(in /etc/conf.d/tomcat-6):

JAVA_OPTS=-Xmx1024M -Xms128M
JAVA_OPTS=$JAVA_OPTS -Dfile.encoding=UTF-8
JAVA_OPTS=$JAVA_OPTS -XX:PermSize=192M
JAVA_OPTS=$JAVA_OPTS -XX:MaxPermSize=512M

Adjust the actual numbers to suit your site.  Using a monitoring app
like LambdaProbe can help you dial them in.

Your JAVA_OPTS aren't addressing PermGen so they didn't help with
that.  Your CATALINA_OPTS do but I don't know what your OS does with
(or to) that when it starts up Tomcat.  (Tomcat startup tends to be an
incredible Rube Goldberg construction for some reason.)

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Asking whether markets are efficient is like asking whether people are smart.


pgp2RQQmFGLM2.pgp
Description: PGP signature
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech