File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ This guide shows how the service can be customised for some common scenarios.
1717
1818The service comes configured for the ` pi ` user. To change which user it runs as,
1919edit the service definition ` /lib/systemd/system/nodered.service ` and change the
20- ` User ` , ` Group ` and ` WorkingDirectory ` lines as appropriate:
20+ ` User ` , ` Group ` and ` WorkingDirectory ` lines as appropriate. You can also set the
21+ amount of memory space to use in MB.
2122
2223``` yaml
2324[Service]
@@ -26,8 +27,8 @@ Type=simple
2627User=<your_user>
2728Group=<your_user>
2829WorkingDirectory=/home/<your_user>
29- Nice=5
30- Environment="PI_NODE_OPTIONS =--max_old_space_size=256"
30+
31+ Environment="NODE_OPTIONS =--max_old_space_size=256"
3132...
3233```
3334
@@ -52,7 +53,7 @@ another `Environment=...` line. For example:
5253``` yaml
5354...
5455Nice=5
55- Environment="NODE_OPTIONS=--max-old-space-size=128 "
56+ Environment="NODE_OPTIONS=--max-old-space-size=256 "
5657Environment="HTTP_PROXY=my-proxy-server-address"
5758...
5859```
You can’t perform that action at this time.
0 commit comments