clebertsuconic opened a new issue, #897:
URL: https://github.com/apache/maven-mvnd/issues/897

   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:
   
   
   ```
   jps -v | grep mvnd
   ```
   
   start a check-leak capturing: (https://github.com/check-leak/check-leak)
   
   ```
   java -jar check-leak-0.12-SNAPSHOT.jar remote --report out-report --sleep 
1000 --pid <the-pid>
   ```
   
   (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:
   
   ```
   git clone https://github.com/apache/activemq-artemis.git
   mvnd clean install -DskipTests=true
   ```
   
   
   (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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to