Page History
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
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. |
...
Note | ||
---|---|---|
| ||
At the time of writing, DSpace recommends you should give Tomcat >= 512MB of PermGen Heap Space to ensure optimal DSpace operation. Most larger sized or highly active DSpace installations however tend to allocate more like 1024MB to 2048MB of Java Heap Memory. |
...
Tomcat is especially memory hungry, and will benefit from being given lots of RAM. To set the amount of memory available to Tomcat, use either the JAVA_OPTS
or CATALINA_OPTS
environment variable, e.g:
Code Block |
---|
CATALINA_OPTS=-Xmx512m -Xms512m
|
OR
Code Block |
---|
JAVA_OPTS=-Xmx512m -Xms512m
|
...
To increase the amount of PermGen memory available to Tomcat (default=64MB), use either the JAVA_OPTS
or CATALINA_OPTS
environment variable, e.g:
Code Block |
---|
CATALINA_OPTS=-XX:MaxPermSize=128m
|
OR
Code Block |
---|
JAVA_OPTS=-XX:MaxPermSize=128m
|
...
Note |
---|
On an Ubuntu machine (10.04) at least, the file |
...
By default, DSpace only provides 256MB of maximum heap memory to its command-line tools.
If you'd like to provide *more* memory to command-line tools, you can do so via the {{ Wiki Markup 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=-Xmx512m -Xms512m
|
This is especially useful for big batch jobs, which may require additional memory.
Note |
---|
You can also edit the {{\also edit the |
Give the Command Line Tools More Java PermGen Space Memory
...
By default, Java only provides 64MB of maximum PermGen space.unmigrated-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=128m
|
...