When tailing pm2.log I see this happening every 30 seconds or so (this is 
just an excerpt, one of the  worker processes out of the 10 I have running):
 
2023-08-17T10:16:20: PM2 log: [PM2][WORKER] Process 6 restarted because it 
exceeds --max-memory-restart value (current_memory=117948416 
max_memory_limit=8388608 [octets])
2023-08-17T10:16:20: PM2 log: App [dspace-ui:6] starting in -cluster mode-
2023-08-17T10:16:20: PM2 log: App [dspace-ui:6] online
2023-08-17T10:16:21: PM2 log: -reload- New worker listening
2023-08-17T10:16:21: PM2 log: Stopping app:dspace-ui id:_old_6
2023-08-17T10:16:21: PM2 log: App name:dspace-ui id:_old_6 disconnected
2023-08-17T10:16:21: PM2 log: App [dspace-ui:_old_6] exited with code [0] 
via signal [SIGINT]
2023-08-17T10:16:21: PM2 log: pid=82542 msg=process killed

Server has 16GB unused memory.  Here's my dspace-ui.json file:

"apps": [
        {
           "name": "dspace-ui",
           "cwd": "/opt/local/dspace-ui",
           "script": "dist/server/main.js",
           "instances": "max",
           "exec_mode": "cluster",
           "min_uptime": 30000,
           "out_file": "/dev/null",
           "env": {
              "NODE_ENV": "production"
           },
           "node_args": [
              "--max_old_space_size=6144"
           ]

Any suggestions on what might be wrong (I assume that much reloading is 
wrong...but I am very new to node.js and pm2...

-- 
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 dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/146adaaf-e8f5-4555-acb2-48918f023b2dn%40googlegroups.com.

Reply via email to