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 allocation issue in 1.1.0 #45

Closed
OneCyrus opened this issue Apr 16, 2018 · 8 comments
Closed

memory allocation issue in 1.1.0 #45

OneCyrus opened this issue Apr 16, 2018 · 8 comments

Comments

@OneCyrus
Copy link
Contributor

with the new 1.1.0 version i've a memory allocation issue. i tried it with one of my smaller projects. it generates almost a 10 GB hits-file. and it looks like it would need at least that much memory. currently the system runs out of memory and the dotnet process is stuck while trying to allocate more memory.

@tonerdo
Copy link
Collaborator

tonerdo commented Apr 17, 2018

That's super weird considering some of the changes I did to 1.1.0 was to make Coverlet more memory efficient. I figure there's probably a part of your code that's doing a lot of work that results in lots of writes to the hits file. Is this project open source?

@OneCyrus
Copy link
Contributor Author

unfortunately it's closed source. yes, it may be due to a lot of looped data processing. 1.0.2 works on this project (though misses some lines as mentioned in other issues). does the hits-file track each hit or only the first time?

@OneCyrus
Copy link
Contributor Author

i guess replacing ReadAllLines with ReadLines in InstrumentationHelper should fix this.

https://medium.com/@nuno.caneco/c-file-readlines-vs-file-readalllines-4742d738064e

@tonerdo
Copy link
Collaborator

tonerdo commented Apr 20, 2018

All merged in. New release going out on Monday as usual. Thanks

@OneCyrus
Copy link
Contributor Author

thanks for merging! Will the new release be out soon? We would like to use it in prod.

@tonerdo
Copy link
Collaborator

tonerdo commented Apr 24, 2018

I'm hoping to get a few more fixes in before I do a new release. I'm thinking this Friday, how urgent is your use?

@OneCyrus
Copy link
Contributor Author

I was just interested to see if this really fixes our problem in prod. no problem, I'll try whenever you're ready with a new release.

@tonerdo
Copy link
Collaborator

tonerdo commented May 2, 2018

@OneCyrus new release https://www.nuget.org/packages/coverlet.msbuild/1.2.0

@tonerdo tonerdo closed this as completed May 2, 2018
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