-
Notifications
You must be signed in to change notification settings - Fork 213
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 at com.sun.tools.javac.util.SharedNameTable$NameImpl #897
Comments
first build 10K, second build 20K... this build.. 30k ^^^ |
and just to give it a context on the version being used:
|
There is a SO article about this, it seems is not a leak per se but a "feature" of javac: The article mentions undocumented We need some proof that this javac flag works or not. |
Hi, it can be worth setting |
@rmannibucau I tried setting fork=true , and It didn't seem to have an effect on that object. I gained 10 seconds (apparently) on my build. |
While ant is calling |
Closing as won't fix as this is not really a mvnd bug. Thx @clebertsuconic |
I found a leak with com.sun.tools.javac.util.SharedNameTable$NameImpl
I have been building this with artemis build. But I suspect this is not related to anything on my project. But I will list it here in case it's something hitting only my project:
to reproduce this:
find the mvnd daemon:
start a check-leak capturing: (https://github.com/check-leak/check-leak)
(or if you don't like the fancy graphs... just monitor the number of instances through memory histograms.. which is pretty much what I'm doing on check-leak.. I'm just generating the fancy reports).
start the artemis build:
(you might want to do that once before starting the capturing of the histograms as the firs build will download a bunch of stuff from maven repo)
open ./out-report/index.html
Sort it by number of increases...
you will find the com.sun.tools.javac.util.SharedNameTable$NameImpl on the list of growing objects.
you will see that number of objects will keep growing forever.. if you build 10 times.. you get 10X the number of objects... for my build it's adding about 10K instances on every run.
The text was updated successfully, but these errors were encountered: