简体   繁体   English

通过NodeJS / IO.JS使用大内存

[英]Using large memory with NodeJS / IO.JS

I'm looking at using NodeJS or IO.JS for a server app that requires a lot of RAM, 4-8GB, possibly more. 我正在考虑将NodeJS或IO.JS用于需要大量RAM(4-8GB甚至更多)的服务器应用程序。

Considering the most up-to-date version of V8 and IO.JS (current is 3.3.0): 考虑V8和IO.JS的最新版本(当前为3.3.0):

  • is it realistic to implement using the latest IO.JS? 使用最新的IO.JS实现是否现实?
  • is the platform generally suitable for such an app? 该平台通常适合此类应用程序吗?
  • what is the recommended approach to managing and accessing such memory from within a NodeJS process? 从NodeJS流程中管理和访问此类内存的推荐方法是什么?
  • any specific problems to be expected? 有什么具体问题可以预期吗?

Please, any cons and pros using NodeJS for such an app are welcome! 请欢迎使用NodeJS进行此类应用程序的利弊!

A big con would be that 64-bit Node.js applications have a memory limit of 1.4 GB. 一个很大的缺点是64位Node.js应用程序的内存限制为1.4 GB。 Node isn't good for large monolithic servers, it's more suited for scaling out by spawning additional processes. Node不适用于大型单片服务器,它更适合通过产生其他进程进行扩展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM