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 leak to measure coverage #2

Open
mzw opened this issue Jan 31, 2018 · 0 comments
Open

Memory leak to measure coverage #2

mzw opened this issue Jan 31, 2018 · 0 comments

Comments

@mzw
Copy link
Owner

mzw commented Jan 31, 2018

When running cov command at commons-math, I faced on the following error that might indicate memory leak. I reran the command with After option and completed to measure coverage, but it was not useful to users. Debugging this memory leak can increase the usefulness of VTR.

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Arrays.java:3236)
        at java.lang.StringCoding.safeTrim(StringCoding.java:79)
        at java.lang.StringCoding.access$300(StringCoding.java:50)
        at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:305)
        at java.lang.StringCoding.encode(StringCoding.java:344)
        at java.lang.StringCoding.encode(StringCoding.java:387)
        at java.lang.String.getBytes(String.java:958)
        at jp.mzw.vtr.git.GitUtils.getPatch(GitUtils.java:140)
        at jp.mzw.vtr.detect.Detector.getTestCaseModifications(Detector.java:244)
        at jp.mzw.vtr.detect.Detector.onCheckout(Detector.java:86)
        at jp.mzw.vtr.git.CheckoutConductor.onCheckout(CheckoutConductor.java:52)
        at jp.mzw.vtr.git.CheckoutConductor.checkout(CheckoutConductor.java:133)
        at jp.mzw.vtr.git.CheckoutConductor.checkout(CheckoutConductor.java:78)
        at jp.mzw.vtr.command.DetectCommand.detect(DetectCommand.java:35)
        at jp.mzw.vtr.command.DetectCommand.command(DetectCommand.java:21)
        at jp.mzw.vtr.CLI.main(CLI.java:37)
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

1 participant