Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Expect "max_memory_restart" #22

Closed
landolphin opened this issue Mar 28, 2018 · 3 comments
Closed

Error: Expect "max_memory_restart" #22

landolphin opened this issue Mar 28, 2018 · 3 comments

Comments

@landolphin
Copy link

$ node startup worker 3000 Error: Expect "max_memory_restart" to be a typeof [object String] / [object Numb er], but now is [object Object] at Object.Common.verifyConfs (D:\nodejs\ss\antcolony\node_modules\_pm2@2.10. 1@pm2\lib\Common.js:624:14) at module.exports.API._startScript (D:\nodejs\ss\antcolony\node_modules\_pm2 @2.10.1@pm2\lib\API.js:692:25) at module.exports.API.start (D:\nodejs\ss\antcolony\node_modules\_pm2@2.10.1 @pm2\lib\API.js:325:10) at D:\nodejs\ss\antcolony\startup:20:13 at D:\nodejs\ss\antcolony\node_modules\_pm2@2.10.1@pm2\lib\API.js:169:14 at D:\nodejs\ss\antcolony\node_modules\_pm2@2.10.1@pm2\lib\Client.js:54:16 at Timeout._onTimeout (D:\nodejs\ss\antcolony\node_modules\_pm2@2.10.1@pm2\l ib\Client.js:360:19) at ontimeout (timers.js:466:11) at tryOnTimeout (timers.js:304:5) at Timer.listOnTimeout (timers.js:267:5)

请问这是什么错误哈?

@keenwon
Copy link
Owner

keenwon commented Mar 28, 2018

使用 pm2@0.10.7 试试

@keenwon keenwon closed this as completed Apr 5, 2018
@tineroll
Copy link

tineroll commented May 15, 2018

pm2 版本的问题windows 下有此问题,换 linux 就好了。
也可以注释掉 startup 里面的 maxMemoryRestart: config.memoryLimit 解决。

@lock
Copy link

lock bot commented Dec 28, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants