I am using jenkins for making build by using Ant. I am also configuring sonar on this jenkins job via 'Invoke Standalone Sonar Analysis". Everything is going fine till build making process and build successfully created. Now sonar execution is started and after some time i got an error
"Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: java.lang.OutOfMemoryError: Java heap space
Build step 'Invoke Standalone Sonar Analysis' marked build as failure "...
What all i have done to fix this issue are:
Increasing java heap size via
Replaced %SONAR_RUNNER_OPTS% with -Xms256m -Xmx1024m in sonar-runner.bat file of sonar.
Modify Sonar_Way quality profile and put only one or two rules active in this so that to avoid rule voilation.
then run build but still getting same java heap error. One more thing i would add on this is my project source folder size is around 40mb means its a big project comparatively.
Can anyboby help me out on this?? What else should i do to get this done. Your revert will be appreciable.. Thanks in Advance..