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

Stack Overflow Error when running on bigger projects #5

Open
hkoestin opened this issue Oct 28, 2016 · 4 comments
Open

Stack Overflow Error when running on bigger projects #5

hkoestin opened this issue Oct 28, 2016 · 4 comments

Comments

@hkoestin
Copy link

Hey there,

I am experiencing random StackOverflowError exceptions on my projects, when I use the plugin.

The output on the sonar-scanner:
image

I am running SonarQube server 5.6.3 with the latest jar from your releases.

So far, only using exclusions is helping to reduce the amount of code analyzed, which is not satisfying at all.

Is there any workaround for this issue?

Harald

@SandroLuck
Copy link
Owner

Hi, Harald. Am i correct that you are analyzing several Million lines of Code?
The Problem is the cyclomatic complexity of your project, so giving more ram to Java might solve this(it might be impossible to give enoughe ram if you are analyzing several Million lines of code).Also there is a Bug which interacts with the ram Problem above. It Sounds Strange but if you identified the Problem Files Just put an additional ';' befor the Last 'end' of the file and it might reduce the bugsize. Also simply adding the Files to Sonar.exclude might work. Im sorry for this but the Plugin might Not scale above 1mio lines of Code. Also breaking Down the Analysis into several chunks is an Option.

@SandroLuck
Copy link
Owner

Sry for the Germany autocorrectur from my Phone.

@hkoestin
Copy link
Author

@SandroLuck The number of lines of code is not that huge. It is roughly 32k LoC. So not that much actually. I can try adding more RAM to the Java process (of SonarQube I guess, right?)

Otherwise I gonna try the ';' solution.

Keep you posted.

@MeherAyedi
Copy link

Any solution for this, i have the same problem even after increasing the memory heap?
PS: number of files is not that important.

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

3 participants