--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/dfc6c5b6-7e1c-4051-9edc-879391519e3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tibor Blenessy | SonarSource
SonarJava Developer
sudo /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven/bin/mvn sonar:sonar -Dsonar.forceAnalysis=true -e -X -Dsonar.host.url=<myHost> -Dsonar.login=<myToken>
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/f4b81491-e487-4687-bb7f-28d86f5d79c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "CLEANUP_MANAGER"
[INFO] 189/326 files analyzed, current file: /var/lib/jenkins/workspace/WaypointReports/src/cl/waypoint/reports/GetReportAlertasVelocidadZona.java
[WARNING] [JOURNAL_FLUSHER] WARNING Journal flush operation took 45,908ms last 8 cycles average is 5,738ms
Same failed file though.
Hello again,I ran analysis on the file you've send me, and I am able to finish analysis when I assign enough memory to the jvm, although it takes a while and I will look if there is some performance improvement to be made.I realized that in your first mail you wrote that you tried to set variable JENKINS_JAVA_OPTIONS. I am not sure if these options are passed to the jvm which is used to run maven and analysis itself. Can you verify the memory settings of jvm used to run maven? Usually you will set this options by setting MAVEN_OPTS environment variable. You can try to run analysis with 2GB heap setting, and see if you are able to finish without getting the exception.Regards
Tibor
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/f4b81491-e487-4687-bb7f-28d86f5d79c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Tibor Blenessy | SonarSource
SonarJava Developer
Tibor,
Tibor
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/f4b81491-e487-4687-bb7f-28d86f5d79c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Tibor Blenessy | SonarSource
SonarJava Developer
--Tibor Blenessy | SonarSource
SonarJava Developer
Hello Gonzalo,I identified the performance issue and created a ticket to fix it SONARJAVA-2611 .However I still manage to finish the analysis when I allocate enough memory to the jvm heap. It takes long time, because there is very complex method in the file you provided and algorithm of the analyzer is not very efficient in such conditions.Best regardsTibor
On Thu, Dec 21, 2017 at 6:11 PM Gonzalo Vasquez <gvas...@waypoint.cl> wrote:
Tibor,I added 2G of RAM to MAVEN_OPTS, but the build failed too, now the message looks like:Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "CLEANUP_MANAGER" [INFO] 189/326 files analyzed, current file: /var/lib/jenkins/workspace/WaypointReports/src/cl/waypoint/reports/GetReportAlertasVelocidadZona.java [WARNING] [JOURNAL_FLUSHER] WARNING Journal flush operation took 45,908ms last 8 cycles average is 5,738ms
Same failed file though.Atentamente / Regards,
Gonzalo Vásquez Sáez
Director I+D / R&D Director
Waypoint Telecomunicaciones S.A.
+56 2 2963 4180
+56 9 9799 3516
Suecia 0155 Of. 1103
Providencia, Santiago, Chile
Mapcode: CHL S0.CW
Tibor
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/f4b81491-e487-4687-bb7f-28d86f5d79c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Tibor Blenessy | SonarSource
SonarJava Developer
--Tibor Blenessy | SonarSource
SonarJava Developer
--Tibor Blenessy | SonarSource
SonarJava Developer