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 [email protected] 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 [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

