Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
outlinetrue
stylenone

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.

Table of Contents
outlinetrue
stylenone

Give Tomcat More Memory

Give Tomcat More Java Heap Memory

...

Similar to Tomcat, you may also need to give the DSpace Java-based command-line tools more Java Heap memory. If you are seeing java.lang.OutOfMemoryError: Java heap space errors, when running a command-line tool, this is a sure sign that it isn't being provided with enough Heap Memory.

...

Code Block
    JAVA_OPTS=-Xmx512m -Xms512m

This is especially useful for big batch jobs.

Give the Command Line Tools More Java PermGen Space Memory

Similar to Tomcat, you may also need to give the DSpace Java-based command-line tools more PermGen Space. If you are seeing java.lang.OutOfMemoryError: PermGen space errors, when running a command-line tool, this is a sure sign that it isn't being provided with enough PermGen Space.

By default, Java only provides 64MB of maximum PermGen space.

Wiki Markup
If you'd like to provide *more* PermGen Space to command-line tools, you can do so via the {{JAVA_OPTS}} environment variable (which is used by the {{\[dspace\]/bin/dspace}} script).  Again, it's the same syntax as above:

Code Block
    JAVA_OPTS=-XX:MaxPermSize=128MB

This is especially useful for big batch jobs.

...

JHU Analysis of Ingest DB Activity

JhuIngestDbAnalysis - OUTDATED!