For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 12 replies, 2 voices, and was last updated 12 years, 4 months ago by
support-pradeep.
-
AuthorPosts
-
AnujAgrawalMemberHi,
I integrated SONAR Java Analyzer 3.2.0 plugin with MyEclipse10.7.1.
When I am running SONAR profile with firebug in MyEclipse Local Analysis. I am getting error out of memory.
Out of memory
Total memory: 66M
free memory: 0M
Can you please advise me where is this 66MB is coming from as I haven’t set it and how to increase memory. I have enough RAM on my system.
OS: Windows 7 32 bit
Please help me asap.Regards,
AnujNovember 26, 2013 at 5:29 am #344789
AnujAgrawalMemberCan I have someone from Myeclipse support team to respond to this query. I am stuck for last few days. Please help.
November 26, 2013 at 6:56 am #344792
support-pradeepMemberAnuj,
Sorry that you are running into this issue.
> We couldn’t find a way to install SONAR Java Analyzer 3.2.0 plugin in MyEclipse. To help us replicate the issue at our end, can you please mention the exact steps to install the plugin in MyEclipse ? Also, mention the URL if you have downloaded the plugin from anywhere.
> Can you please take a look at this FAQ about memory issues and see if the suggested memory settings work for you?
https://www.genuitec.com/forums/topic/troubleshooting-memory-amp-performance-issues/You could try increasing your heap beyond 768m and see if that improves the performance.
> If you are still seeing issues, please switch to a new workspace, replicate the issue and copy paste the contents of the .log file which is located at <workspace dir>/.metadata/.log to help us investigate further.
November 26, 2013 at 7:13 am #344795
AnujAgrawalMemberStep 1. From Help->MyEclipse Configuration Centre -> Software -> Browse Software ->Add Site
Add a new site for sonar plug-in
Name: SonarQube <Or anything you like>
URL: http://dist.sonar-ide.codehaus.org/eclipse/Step 2. Step3: SonarQube or whatever name you have given in step2 will be available in “Personal Sites”.
Double click on “Sonar Java -> Sonar Java Analyzer”
“Sonar Java Analyzer” plug-in is now ready to get installed. Click apply in pending changes section on same page.Post that you need SONAR server and SONAR runner to run the analysis first time.
You need to then add your project to SONAR from Configure option in MyEclipse.
Also you need to choose SONAR profile as “SONAR way with Findbug” and run local analysis.Let me know if you are still not able to replicate this issue.
November 26, 2013 at 7:17 am #344796
AnujAgrawalMemberI have already tried to modify memory setting from myeclipse.ini file but that is not increasing memory allocation to findbug.
I am successfully able to run analysis using Sonar-Runner but not via Myeclipse. To be able to run it through SONAR-RUNNER I added following system argument.
set SONAR_RUNNER_OPTS=-Xmx512m -XX:MaxPermSize=128mSo where and how to change the values for MyEclipse so that it has enough heap space to run analysis is my BIG Question.
November 28, 2013 at 1:36 am #344847
AnujAgrawalMemberHi Support team,
Please advise if you are interested in replying to my query. I have been waiting for last two days. Give you steps on how to integrate MyEclipse with SONAR plug-in. But still no response.
Quality is integral part of our projects and if we can’t integrate MyEclipse with SONAR properly then we will have to find another IDE which can integrate properly.
Please advise if this question is worth your attention.Regards,
AnujNovember 28, 2013 at 5:14 am #344849
support-pradeepMemberAnuj,
Sorry for the delayed response.
Thanks for the details provided. Can you please try setting the -Xmx value in default VM arguments for the JRE definition ? You can do this by going to Window > Preferences > Java > Installed JRE > select the one you’re using and click Edit > In the Edit JRE wizard there will be a line for Default VM Arguments which will apply to every execution, add -Xmx512m to this and click Finish. You could try increasing the -Xmx value and check if you it works.
We couldn’t replicate the issue at our end with the sample projects. so, we couldn’t test whether this solution would work or not.
Let us know how it works for you.
November 28, 2013 at 6:42 am #344853
AnujAgrawalMemberHi Pradeep,
Changing -Xmx value is default JRE will increase memory allocated to java process created with MyEclipse. When you run SONAR local analysis, another java process gets created, I need to increase heap size allocated to it.
I have tried, the change you suggested. But no success.
Also please note, to replicate this issue you will need a decent code base to analyze. Please run SONAR analysis with “SONAR way with Findbug” profile on 10000+ line code base and you will see issue.
For me default maximum memory allocated to SONAR analysis java process is 66M (132M in task manager), so please advise how to increase it.
Expecting your quick reply.Regards,
Anuj AgrawalNovember 28, 2013 at 11:25 pm #344877
support-pradeepMemberAnuj,
We could replicate the issue at our end with a big project. It looks like the analysis function is forking a VM, without using the JRE VM arguments.
Can you please add -Xmx512m (or higher value) to ‘JVM arguments for preview analysis’ option under Window > Preferences > SonarQube preference page? I have tested it at my end and got it working without any issues.
I suggest you to use ‘jvisualvm’ which would be helpful, as it showed the new jvm process and monitored memory usage.
Let us know how it works for you.
November 29, 2013 at 12:14 am #344878
AnujAgrawalMemberHi Pradeep,
Option suggested also didn’t help. I added following property in Window > Preferences > Sonar>Local Analysis Properties
SONAR_RUNNER_OPTS=-Xmx1024m -XX:MaxPremSize256m
But still the forked JVM max memory it reaches is 132M and I get error mentioningINFO – Findbugs output report: E:\eclipse\Eclipse10\.metadata\.plugins\org.eclipse.core.resources\.projects\MyProject\org.sonar.ide.eclipse.core\findbugs-result.xml
Out of memory
Total memory: 66M
free memory: 0MPlease replicate this scenario and advise me possible solution.
November 29, 2013 at 12:23 am #344880
support-pradeepMemberAnuj,
1) Can you please clarify whether you have added -Xmx512m to ‘JVM arguments for preview analysis’ as shown in the attached screenshot ?
2) Please attach the .log file located at <Workspace dir>/.metadata/.log file here to help us investigate further.
November 29, 2013 at 12:31 am #344881
AnujAgrawalMemberHi Pradeep,
Thanks for screenshot, my issue got resolved with setting JVM argument as you mentioned. Thanks a lot for your help, appreciate it.
Regards,
AnujNovember 29, 2013 at 12:48 am #344882
support-pradeepMemberAnuj,
Glad that you got it working.
Let us know if you see any issues. -
AuthorPosts
