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

[cpd] java.lang.OutOfMemoryError #795

Closed
cyw3 opened this issue Dec 20, 2017 · 4 comments
Closed

[cpd] java.lang.OutOfMemoryError #795

cyw3 opened this issue Dec 20, 2017 · 4 comments
Assignees
Labels
a:bug PMD crashes or fails to analyse a file. in:cpd Affects the copy-paste detector
Milestone

Comments

@cyw3
Copy link
Contributor

cyw3 commented Dec 20, 2017

bin/run.sh cpd --minimum-tokens 120 --format csv_with_linecount_per_file --encoding utf-8 --ignore-literals --ignore-annotations --ignore-usings --skip-duplicate-files --skip-lexical-errors --failOnViolation false --files path/to/project --language cpp

image

@jsotuyod
Copy link
Member

@cyw3 thanks for the report, this is unfortunately a known issue (see #185 (comment)). We have a pending issue to refactor report rendering for CPD.

In the meantime, you can try increasing the heap space CPD has available.

@jsotuyod jsotuyod added the a:bug PMD crashes or fails to analyse a file. label Dec 20, 2017
@jsotuyod jsotuyod added this to the 6.1.0 milestone Dec 20, 2017
@cyw3
Copy link
Contributor Author

cyw3 commented Dec 20, 2017

I have set JAVA_OPTIONS="-Xms32m -Xmx6512m", but it is not ok.

@cyw3
Copy link
Contributor Author

cyw3 commented Dec 27, 2017

@jsotuyod
I fixed the bug.

@jsotuyod jsotuyod self-assigned this Feb 17, 2018
@jsotuyod jsotuyod changed the title [CPD] java.lang.OutOfMemoryError [cpd] java.lang.OutOfMemoryError Feb 18, 2018
jsotuyod added a commit to Monits/pmd that referenced this issue Feb 18, 2018
@jsotuyod jsotuyod added in:cpd Affects the copy-paste detector has:pr labels Feb 18, 2018
@jsotuyod
Copy link
Member

@cyw3 I've just submitted a PR fixing this for good. Should be part of PMD 6.1.0

adangel added a commit that referenced this issue Feb 18, 2018
Merge branch 'pr-919'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug PMD crashes or fails to analyse a file. in:cpd Affects the copy-paste detector
Projects
None yet
Development

No branches or pull requests

2 participants