我与下面的空闲内存Raspberry Pi 3 B运行的node.js:如何调整树莓派的node.js内存使用情况?
free -m
total used free shared buffers cached
Mem: 973 230 742 6 14 135
-/+ buffers/cache: 80 892
Swap: 99 0 99
如何配置节点(V7)不使用所有可用的内存?为了延长SD卡的使用寿命,我想阻止它进行交换。
我知道--max_old_space_size
:
node --v8-options | grep -A 5 max_old
--max_old_space_size (max size of the old space (in Mbytes))
type: int default: 0
我知道一些答案的是专用的,但是有一些什么一般提示限制node.js的内存消耗,以防止交换?还有任何其他技巧来挤出更多的免费ram出pi的,将不胜感激。
我已经设置了内存分割,以便GPU分配至少16兆内存。
正是我在找的东西,谢谢! – rynop