facebook

MyEclipse plugin SONAR Firebug profile out of memory

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #344782 Reply

    AnujAgrawal
    Member

    Hi,
    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,
    Anuj

    #344789

    AnujAgrawal
    Member

    Can I have someone from Myeclipse support team to respond to this query. I am stuck for last few days. Please help.

    #344792

    Anuj,

    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.

    #344795

    AnujAgrawal
    Member

    Step 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.

    #344796

    AnujAgrawal
    Member

    I 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=128m

    So where and how to change the values for MyEclipse so that it has enough heap space to run analysis is my BIG Question.

    #344847

    AnujAgrawal
    Member

    Hi 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,
    Anuj

    #344849

    Anuj,

    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.

    #344853

    AnujAgrawal
    Member

    Hi 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 Agrawal

    #344877

    Anuj,

    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.

    #344878

    AnujAgrawal
    Member

    Hi 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 mentioning

    INFO – 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: 0M

    Please replicate this scenario and advise me possible solution.

    #344880

    Anuj,

    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.

    #344881

    AnujAgrawal
    Member

    Hi Pradeep,

    Thanks for screenshot, my issue got resolved with setting JVM argument as you mentioned. Thanks a lot for your help, appreciate it.

    Regards,
    Anuj

    #344882

    Anuj,

    Glad that you got it working.
    Let us know if you see any issues.

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: MyEclipse plugin SONAR Firebug profile out of memory

You must be logged in to post in the forum log in