node.js - AWS NodeJS Websocket server "sleeping" - no error - Stack Overflow

I've got a NodeJS websocket running on an EC2 instance.I'm keeping it alive with PM2.I'

I've got a NodeJS websocket running on an EC2 instance.

I'm keeping it alive with PM2.

I'm working on it via SSH using vis studio code.

The system is running well and I have about 500 clients (desktop C# clients) connecting every morning.

I've got no errors appearing from what I cna see and it is all nice and clean. It really isnt that intensely hit either.

Weirly here and theere i noticed on the client side that there is no active websocket connection and it is trying to reconnect and getting no response.

This happens about once a day or once every second day.

if I chaeck AWS the instance is active. If i ssh into my app it suddenly kicks into gear, the log shows all clients connecting and now its fine again for another 24 hours.

PM2 logs have no errors and it even says the server is online for X days...

It's like after a period of time the server just stops "listening" or goes to sleep or something even though PM2 says it hasnt crashed.

Any ideas what might be going wrong here?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743736229a4498312.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信