[
https://issues.apache.org/jira/browse/GROOVY-3476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149595#comment-18149595
] ASF GitHub Bot commented on GROOVY-3476: ---------------------------------------- codecov-commenter commented on PR #3347: URL: https://github.com/apache/groovy/pull/3347#issuecomment-7093656658 ## [Codecov](https://app.codecov.io/gh/apache/groovy/pull/3347?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report :x: Patch coverage is `86.44068%` with `8 lines` in your changes missing coverage. Please review. :white_check_mark: Project coverage is 74.9775%. Comparing base ([`09e84fa`](https://app.codecov.io/gh/apache/groovy/commit/09e84fa4b0d4c37a5ac2efc48dfd2db93a84cab7?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`c4dfa15`](https://app.codecov.io/gh/apache/groovy/commit/c4dfa15addf9df87c78feaebd8707dba1c89a053?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)). :warning: Report is 1 commits behind head on master. | [Files with missing lines](https://app.codecov.io/gh/apache/groovy/pull/3347?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines | |---|---|---| | [src/main/java/groovy/ui/GroovySocketServer.java](https://app.codecov.io/gh/apache/groovy/pull/3347?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Fgroovy%2Fui%2FGroovySocketServer.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9ncm9vdnkvdWkvR3Jvb3Z5U29ja2V0U2VydmVyLmphdmE=) | 86.4407% | [6 Missing and 2 partials :warning: ](https://app.codecov.io/gh/apache/groovy/pull/3347?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | <details><summary>Additional details and impacted files</summary> [](https://app.codecov.io/gh/apache/groovy/pull/3347?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) ```diff @@ Coverage Diff @@ ## master #3347 +/- ## ================================================== + Coverage 74.9518% 74.9775% +0.0258% - Complexity 48908 48947 +39 ================================================== Files 1768 1768 Lines 161213 161307 +94 Branches 31728 31753 +25 ================================================== + Hits 120832 120944 +112 + Misses 28968 28942 -26 - Partials 11413 11421 +8 ``` | [Files with missing lines](https://app.codecov.io/gh/apache/groovy/pull/3347?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | |---|---|---| | [src/main/java/groovy/ui/GroovySocketServer.java](https://app.codecov.io/gh/apache/groovy/pull/3347?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Fgroovy%2Fui%2FGroovySocketServer.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3JjL21haW4vamF2YS9ncm9vdnkvdWkvR3Jvb3Z5U29ja2V0U2VydmVyLmphdmE=) | `77.7778% <86.4407%> (+53.4535%)` | :arrow_up: | ... and [17 files with indirect coverage changes](https://app.codecov.io/gh/apache/groovy/pull/3347/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) </details> <details><summary> :rocket: New features to boost your workflow: </summary> - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems. - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges. </details> > groovy -l constantly loads classes and leaks memory > --------------------------------------------------- > > Key: GROOVY-3476 > URL: https://issues.apache.org/jira/browse/GROOVY-3476 > Project: Groovy > Issue Type: Bug > Components: command line processing > Affects Versions: 1.6.1, 2.1.2 > Environment: Linux, Solaris, and Cygwin, at least > Reporter: J. David Beutel > Assignee: Daniel Sun > Priority: Major > > The classes loaded by a -l script keep increasing until the JVM runs out of > memory. I saw this with a script file, but it also can be demonstrated with > two command lines: > {code} > JAVA_OPTS="-Xmx5m" groovy -l 5000 -e "System.err.println > java.lang.management.ManagementFactory.classLoadingMXBean.loadedClassCount" & > groovy -e "while (true) { new Socket('localhost',5000).outputStream << '\n'}" > {code} > As a work-around, I used a ServerSocket instead of groovy -l. -- This message was sent by Atlassian Jira (v10.3.26#10030026)
