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

C++ exception causing GWSockets to fail after server uptime of ~9 days #41

Open
Bagellll opened this issue Oct 23, 2024 · 4 comments
Open

Comments

@Bagellll
Copy link

After about 9 days of uptime using GWSockets, my x86-64 server can no longer create websockets. So far, this has happened twice and does not fix until after a restart.

Only error reported is: [ERROR] C++ exception

@FredyH
Copy link
Owner

FredyH commented Oct 27, 2024

Do you know if it might be a problem of it running out of memory? Could you maybe check the memory shortly before it crashes?

@Bagellll
Copy link
Author

The server doesn't crash, it seems that only GWSockets stops working. It's also hard to get much info from it since it takes over a week to happen. As far as memory goes, it stays around ~2GB and slowly creeps up. Though, I don't think memory wouldn't be an issue unless you have a local arena because the server is running x64. I forgot to mention I'm using Linux also.

@FredyH
Copy link
Owner

FredyH commented Oct 29, 2024

I think I've also encountered this with another module of mine if the memory hits ~2.1GB, at which it starts not being able to allocate memory anymore. I don't believe it is due to a memory leak but just that it is not allowed to allocate RAM past that point, I will have to look into it.

@Bagellll
Copy link
Author

It's just very strange to me. Now that I think about it, I also use the reqwest module and both stop working. The server continues fine until I've manually restarted it, with RAM usage continuing to go up well past 2GB if I leave it. I also have your MySQLOO module installed and it continues to work just fine.

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

2 participants