Hi Martin,

re: 3GB memory
That might be ok, its unfortunate that Java apps are memory expensive. Our
production system hosts one instance of DSpace, and that is running well on
2.5GB.
My development computer has 8GB, and have several instances, but has
virtually no load. I've heard of some places that have dozens upon dozens
of JSPUI instances. But I know very little about the infrastructure
required to pull that off.


re:Multiple Tomcats..

I wouldn't attempt to install tomcat multiple times from the debian
repository. That won't work. maybe you could get tomcat6, and tomcat7
installed simultaneously, but thats not the intention.


The process is more-or-less to download the tomcat zip from tomcat's
website, unpack it, and create multiple copies of that folder. I like to
install this kind of thing to /opt.

Then you'd end up with:
/opt/apache-tomcat-6.0.35-client1
/opt/apache-tomcat-6.0.35-client2
...

You have to modify each of those to run on different ports. tomcat-client1
= 8080, tomcat-client2 = 8081, ...
And if you proxy apache's port 80 to tomcat, you'll have to setup rules for
that to go to these different tomcats.

For starting / stopping your tomcats, you won't do /etc/init.d/tomcat6
start, but instead /opt/tomcat-client1/bin/startup.sh

I found an FAQ from Atlasssian about them recommending you not to put
multiple Atlassian applications into a single tomcat instance.
http://confluence.atlassian.com/display/JIRA044/Deploying+Multiple+Atlassian+Applications+in+a+Single+Tomcat+Container


I'm not at all saying that you can't put a single DSpace instance (jspui +
xmlui + solr + sword) into a single instance of tomcat. Just that if you've
got multiple instances of DSpace (client1-jspui, client2-jspui, ...), and
you are running into tomcat performance issues, that multiple tomcat
instances might be a way to go.


Peter Dietz



On Tue, Mar 20, 2012 at 11:42 AM, Martin Musacchio <[email protected]>wrote:

> Hi Peter, thanks for your reply.
>
> Actually I could never make those parameters work in the catalina.sh
> file. I tried a lot. Finally today after days of trying I managed to
> do some trickery to make them work inside the /etc/init.d/tomcat
> script from the OS (Debian). I know it's not elegant and I'll have to
> take note of it for future tomcat upgrades but that's the only way I
> got it to work. I used JAVA_OPTS as well. Are these parameters too
> much for the mere 3 GB or RAM in this server? (there's a memory
> upgrade coming soon)
>
> -Xms512m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=1024m
>
> I'm thinking in the worst case both max heap and max perm will go high
> enough to reach 2 GB leaving 1 extra GB for the other services of the
> server.
>
> Also, is it too much load to have, say, 8 dspace jspui apps? Currently
> we have 4 working, and in the next year will probably reach to 6.
>
>
>
> About the multiple tomcat installs... that sounds very interesting.
> How could I manage to do that? If I install from debian repository, I
> wouldn't be able to install twice unless I use a different  version,
> right?
>
>
>
>
>
> --
>
> -------------------------------------------------------------------------------
>                            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