Hi Martin,

Sorry to hear about your tomcat performance woes.

What is working for me to set some properties for tomcat, is to alter
/opt/apache-tomcat-6.0.35/bin/catalina.sh

And at about line 87 (right after the comments, and before anything else
gets set, I add:
JAVA_OPTS="-Xms512m -Xmx1024m -XX:MaxPermSize=512m"

I'm not sure about the details of why I chose to set JAVA_OPTS, instead of
CATALINA_OPTS, but this does show up in ps aux | grep tomcat.
peterdietz      5494   0.0  5.8  4521128 484720 s011  U     3:18PM
0:58.23
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/java
-Djava.util.logging.config.file=/opt/apache-tomcat-6.0.35/conf/logging.properties
-Xms512m -Xmx1024m -XX:MaxPermSize=512m
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.endorsed.dirs=/opt/apache-tomcat-6.0.35/endorsed -classpath
/opt/apache-tomcat-6.0.35/bin/bootstrap.jar
-Dcatalina.base=/opt/apache-tomcat-6.0.35
-Dcatalina.home=/opt/apache-tomcat-6.0.35
-Djava.io.tmpdir=/opt/apache-tomcat-6.0.35/temp
org.apache.catalina.startup.Bootstrap start

I'm running this on development on OSX, and I locally installed tomcat6 to
/opt/.


-----
Regarding some of your other issues, I've somewhat noticed some
bad-behavior with Tomcat when I push its limits. I wanted to be able to
have my University's local instance of DSpace with webapps (XMLUI, JSPUI,
SOLR), and to also run a clean version of DSpace checked out from DSpace's
trunk/master. That usually works fine, but when I also try to run the
dspace rest-api, or another dspace webapp like webmvc, things tend to bog
down. Upon restarting the server it lags for quite a while as its trying to
deploy all of these webapps.

I don't know if this advice would be useful at all (i.e. untested). But you
could consider having separate installations of tomcat, and putting certain
webapps in each one. i.e. /opt/tomcat-university has
/dspace-myuniversity/webapps/xmlui, and have the run on port 8080, and
/opt/tomcat-master has /dspace-master/webapps/xmlui run on port 8888. That
might use more overall memory, but problems should hopefully be isolated to
particular be webapps/sites. (Then your image repository won't take down
your document repository).


Peter Dietz



On Mon, Mar 19, 2012 at 1:32 PM, Martin Musacchio <[email protected]>wrote:

> As of now I also tried adding the memory parameters of CATALINA_OPTS
> to the root .profile file and the tomcat user .profile but after a
> "source" command for reloading and a tomcat restart, I then run
>
> ps aux | grep tomcat
>
> and see the same as before; not my parameters.
>
> Note that if I do
>
> echo $CATALINA_OPTS, I can see it properly set. But somehow tomcat is
> not picking it up...
>
> Any help please?
>
>
>
> --
>
> -------------------------------------------------------------------------------
>                            Martín Musacchio
>                     Centro de Telemática - UNL
>       Pje. Martinez 2652 - S3002AAB Santa Fe - Argentina
>            tel +54(342)455-4245 - FAX +54(342)457-1240
>
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to