Memory Settings

59 views
Skip to first unread message

Henry Atsu Agbodza

unread,
Jul 17, 2024, 9:39:13 AM7/17/24
to DSpace Technical Support
Dear all,
my DSpace 7.6.1 is very slow. I want advice on the best settings to improve performance.


i have 14GB of memory on my DSpace 7.6.1 Server (Front-end and back-end).

I have this setting in my /etc/environment/ :
JAVA_OPTS="-Djava.awt.headless=true -Xmx10283m -Xms4024m -XX:MaxPermSize=4024m -XX:+UseParallelGC -Dfile.encoding=UTF-8"

My Database is on a different server while the assetstore is also on a different server.

My dspace-ui.json has the following setting
{
    "apps": [
        {
           "name": "dspace-ui",
           "cwd": "/home/dspace/dspace-angular-dspace-7.6.1/",
           "script": "dist/server/main.js",
           "env": {
              "NODE_ENV": "production",
   "DSPACE_REST_SSL": "true",
   "DSPACE_REST_HOST": "X.X.X.X",
   "DSPACE_REST_PORT": "443",
   "DSPACE_REST_NAMESPACE": "/server"
           }
        }
    ]
}  


Please advise on tomcat, node.js, Cache settings, Java Heap Memory,  Java PermGen Memory settings using 14GB of memory will be much appreciated.

Should i place the tomcat setting in /etc/environment or in /etc/default/tomcat9 
Thank you. 

--
Psalm 119:28 My Soul is weary with sorrow ; strengthen me according to your Word.
Sincerely Yours,

Henry Atsu Agbodza
Commonwealth Fellow
Library Systems and Research Support, 
Academic Computing Unit,
University of Ghana Computing Systems (UGCS)
Room G3, Ground Floor - East Wing, 
Balme Library
Legon
Tel.: +233 (0) 207 027360
IP Phone: 2442

UG Repository

DSpace Technical Support

unread,
Jul 17, 2024, 12:46:39 PM7/17/24
to DSpace Technical Support
Hi Henry,

We have recommendations for better performance available in the documentation at: https://wiki.lyrasis.org/display/DSDOC7x/Performance+Tuning+DSpace

Specifically, you may want to look at the Frontend performance suggestions, as it looks like you may *not* be using "cluster mode" for PM2.  That, in itself, might provide a good performance boost to the User Interface.

If these suggestions don't help, you might want to see if you can narrow down whether the backend is performing slowly or the frontend is performing slowly.   Sometimes the easiest way to determine that is to use your browser's DevTools to watch the requests that the frontend (running in your browser) is sending to the backend, and see if any specific request to the backend is really slow. 

You also should verify there are no errors being thrown in your browser's DevTools or in the backend logs. See our Troubleshooting guide for help on finding errors: https://wiki.lyrasis.org/display/DSPACE/Troubleshoot+an+error#Troubleshootanerror-DSpace7.x(orabove)   If there are errors being thrown behind the scenes, they can result in slow behavior as well.

Finally, you may consider upgrading to 7.6.2 (which is a minor upgrade from 7.6.1) as it provides some performance improvements to the user interface that were discovered in some ongoing investigations about how to provide even better performance for the User Interface (see https://github.com/DSpace/dspace-angular/issues/3110 for these ongoing investigations)

Tim
Reply all
Reply to author
Forward
0 new messages