All Versions
- DSpace 7.x (Current Release)
- DSpace 8.x (Unreleased)
- DSpace 6.x (EOL)
- DSpace 5.x (EOL)
- More Versions...
...
Info |
---|
The software DSpace relies on does not come out of the box optimized for large repositories. Here are some tips to make it all run faster. |
By default, DSpace includes a number of web applications which all interact with the underlying DSpace data model. The DSpace web applications include: XMLUI, JSPUI, OAI, RDF, REST, SOLR, SWORD, and SWORDv2. The only required web application is SOLR as it is utilized by several of the other web applications (XMLUI, JSPUI and OAI). See the Installing DSpace documentation for more information about each of these web applications.
Any of the other web applications can be removed from your Tomcat, if you have no plans to utilize that functionality. The fewer web applications you are running, the less memory you will require, as each of these applications will be allocated memory when started up by Tomcat.
...
...
Note |
---|
On an Ubuntu machine (10.04) at least, the file |
psi-probe is a webapp that can be deployed in DSpace and be used to watch memory usage of the other webapps deployed in the same instance of Tomcat (in our case, the DSpace webappsserver webapp).
Unzip probe.war into [dspace]/webapps/
Code Block |
---|
cd [dspace]/webapps/ unzip ~/probe-3.1.0.zip unzip probe.war -d probe |
Add a Context element in Tomcat's configuration, and make it privileged (so that it can monitor the other webapps):
EITHER in $CATALINA_HOME/conf/server.xml
Code Block | ||
---|---|---|
| ||
<Context docBase="[dspace]/webapps/probe" privileged="true" path="/probe" /> |
OR in $CATALINA_HOME
/conf/Catalina/localhost/probe.xml
Code Block | ||
---|---|---|
| ||
<Context docBase="[dspace]/webapps/probe" privileged="true" /> |
Edit $CATALINA_HOME/conf/tomcat-users.xml
to add a user for logging into psi-probe (see more in https://github.com/psi-probe/psi-probe/wiki/InstallationApacheTomcat)
Code Block |
---|
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <user username="admin" password="t0psecret" roles="manager" /> </tomcat-users> |
...
Note |
---|
Please note that you can obviously set both Java's Heap space and PermGen Space together similar to: |
On many linux distros PostgreSQL comes out of the box with an incredibly conservative configuration - it uses only 8Mb of memory! To put some more fire in its belly edit the shared_buffers
parameter in postgresql.conf
. The memory usage is 8KB multiplied by this value. The advice in the Postgres docs is not to increase it above 1/3 of the memory on your machine.
...