mirror of https://github.com/sbt/sbt.git
It is not uncommon in large projects for the jvm to silently be running frequent full gcs in the background. This can slow progress to a crawl. Usually the fix is to bump the -Xmx parameter but if the users do not realize that their tasks are slow because of gc thrashing, they may not think to do that. This PR adds a monitor that hooks into the jvm's event notification system to keep track of how much time is spent in GC. If the ratio of the amount of time in gc to the total elapsed time exceeds some threshold, we emit a warning. I was motivated to do this because publishLocal can take forever in the zinc project because a 1G heap isn't big enough. |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||