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

Memory leak in CCServer? #7

Closed
ruptse opened this issue Dec 18, 2017 · 7 comments
Closed

Memory leak in CCServer? #7

ruptse opened this issue Dec 18, 2017 · 7 comments

Comments

@ruptse
Copy link

ruptse commented Dec 18, 2017

CCserver process getting killed after running for some time due to "Out of memory". Possible memory leak or auto flush needed with CCserver? (Ubuntu 16.04 with 1GB RAM)

@Bendr0id
Copy link
Owner

I haven't heard about that before. I know a few ppl using it for quite a long time without restart (weeks). But of course could be. Which version of XmrigCCServer are you using and how many miners are connected to it? On which resource you think there is a auto flush needed?

@ruptse
Copy link
Author

ruptse commented Dec 18, 2017

Around 100 miners connected to a CCserver, always left running. It seems the process is killed due to memory out after a few days. (XmrigCCServer v1.2.0)

@Bendr0id
Copy link
Owner

Sounds like a leak, yes.
I'll do tomorrow some tests, take core dumps and see if i can find it.
Could also be in the libraries i use.

@Bendr0id
Copy link
Owner

Ok, found it. I couldn't wait until tomorrow.

The "big" one was a stupid strdup 🤦‍♂️

There is a smal one left, connected to "basic auth", which is only used when dashboard is accessing the server, which is most likely not that frequent like miners hammer it.

I'll hoefully find that one soon.

@rekonnected
Copy link

Thank you. I was trying to figure out what was going on for so long. I just resorted to SSHing into my VPS and restarting it every time it died.

Bendr0id added a commit that referenced this issue Dec 18, 2017
+ Little cleanup in dashboard
@Bendr0id
Copy link
Owner

Sorry about that and thx for finding this out!

Will be in the next release.

For those wo compile on their own, just pull latest master and make.

@ruptse if your donation level is > 0 -> keep it 😁 i appreciate and it keeps me loving this project.

@ruptse
Copy link
Author

ruptse commented Dec 18, 2017

Great ... thanks for promptly fixing! Will try it out.

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