Page History
...
Environment="JAVA_OPTS=-Djava.awt.headless=true -Xmx8G -Xms2G -Dfile.encoding=UTF-8"
Update:
We had some success with running more than one instance of the frontend using PM2 Cluster Mode. It made our response times significantly better. But we are still far from an acceptable performance. This is our new PM2 configuration file:
Code Block | ||
---|---|---|
| ||
{
"apps": [
{
"name": "dspace-ui",
"cwd": "/srv/dspace-ui-deploy",
"script": "dist/server/main.js",
"instances" : 4,
"exec_mode" : "cluster",
"node_args": "--max_old_space_size=4096",
"env": {
"NODE_ENV": "production",
"DSPACE_REST_SSL": "true",
"DSPACE_REST_HOST": "api-depositonce.tu-berlin.de",
"DSPACE_REST_PORT": "443",
"DSPACE_REST_NAMESPACE": "/server"
}
}
]
} |
Optimization Strategies
Node.js configuration for multi-threading
...
Overview
Content Tools