Hi! I don't know what system you're using, but look for the pm2 startup file. For me it's a file pm2-dspace.service in /etc/systemd/system. In this file: Type=forking change to Type=cluster
After this change, restart the pm2 service and start dspace UI. The application should run in cluster mode. Regards, Mariusz poniedziałek, 5 grudnia 2022 o 12:14:01 UTC+1 [email protected] napisał(a): > Hi All DSpace Colleagues, > > Our DSpace site is responding slowly, when opening collection it takes > time to load, when logging in the same occur. CPU on the server was one > point thought it might be causing the issue as a results it was increased > and the following steps happened to let node.js use additional CPU, but it > looks like it is not happening. Node.js is using one CPU ignoring > additional CPU added. > > > From what we can observe at the moment node.js is only using 1 cpu. > We've tried to follow the steps in the doc below > > > https://wiki.lyrasis.org/display/DSDOC7x/Performance+Tuning+DSpace#PerformanceTuningDSpace-PerformanceTuningtheFrontend(UI) > > Below is the command we ran for it to run in cluster mode run in cluster > mode but it still fails > > # Start the "dspace-ui" app & cluster it across all available CPUs > pm2 start dspace-ui.json -i max > > > Below is the output it is still running in fork mode > > dspace@wiredspace:~/install/dspace-ui-deploy$ pm2 ls > > ┌─────┬──────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ > │ id │ name │ namespace │ version │ mode │ pid │ uptime > │ ↺ │ status │ cpu │ mem │ user │ watching │ > > ├─────┼──────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ > │ 0 │ dspace-ui │ default │ N/A │ fork │ 636083 │ 114s > │ 0 │ online │ 0% │ 256.6mb │ dspace │ disabled │ > > └─────┴──────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘ > > Regards, > Lewatle > -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/b90968ec-beed-4020-b22d-614bdacf7453n%40googlegroups.com.
