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

AmazonLinuxでバックグラウンドにて実行していると3時間ほどでプロセスが停止してしまう #48

Closed
satoru-kikuchi opened this issue Jan 6, 2018 · 4 comments

Comments

@satoru-kikuchi
Copy link

AmazonLinuxでnohup node startしてバックグラウンドで実行しているのですが、
大体3時間ほど経過するとプロセスがダウンしてしまいます。
(Slackに標準出力を全て送信しているのですが、途切れてしまいます)

config.jsonやnode自体の設定などで対応可能でしょうか?
すいませんがご回答お願いいたします。

@Connie-Wild
Copy link
Contributor

Connie-Wild commented Jan 6, 2018

1.いつgitからクローンした物を使っていますか?(最新はJan 6, 2018です
2.nodeは8.x系列のバージョンを使っていますか?
3.プロセスは「ps aux」で見た中で消えてるのですか?
 プロセスが生きていてSlackの出力が止まっているだけなら、Slack WebHookの制限がかかっているだけです。
4.自分もAWS上でバックグラウンドで動かしていますが、一度もプロセスが落ちたことはありません。

@Connie-Wild
Copy link
Contributor

ちなみにSlackAPIは1秒間に1メッセージを基準に設計されています。
バーストは許可されていますが、長時間にわたると制限がかかります。
https://api.slack.com/docs/rate-limits

標準出力を全て送信するとこの制限に該当すると思われます。

@bitrinjani
Copy link
Owner

@Connie-Wild さんが指摘している通り、はじめにバージョンを確認させてください。
2週間以上前のものだとwinston.jsのバグがあります。
#20

@satoru-kikuchi
Copy link
Author

@bitrinjani @Connie-Wild
ご連絡が遅くなってしまいすいません。
実行する際のコマンドをnohup node start &としたら事象が発生しなくなりました。
ご返信していただきましてありがとうございました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants