Netbeans雷达插件配置 [英] Netbeans Radar Plugin Configuration
问题描述
我正在使用Netbeans 8.0.1,在提交到SVN之前,我需要从我的IDE运行并检查SonarQube分析.我已经安装了Netbeans-Radar插件,用于启动本地分析并检查结果.正如我在以下网络中所发现的那样,此插件具有一个名为使用Sonnar Runner解决问题"的选项: http://code.google.com/p/radar-netbeans/
I'm using Netbeans 8.0.1 and I need to run and check SonarQube analysis from my IDE before commiting to SVN. I have installed the plugin Netbeans-Radar plugin for launch local analysis and check de results. This plugin has an option called "Get Issues With Sonnar Runner" for this purpose as I found in this web: http://code.google.com/p/radar-netbeans/
问题是,当我运行此选项时,过一会儿,我收到"Java堆空间"错误.我知道此错误的含义,但我不知道如何解决.我尝试增加Netbeans的堆空间,将参数"-J-Xmx1024m"添加到文件.../Netbeans 8.0/etc/netbeans.conf中的属性"netbeans_default_options"中.当我使用jvisualVM进行检查时,Netbeans的堆空间确实增加了(Netbeans进程具有1GB的堆空间).
The problem is that when I run this option, after a moment, I recive a "Java Heap Space" error. I know what this error mean but I don't know how to solve it. I tried increasing the heap space of the Netbeans, adding the argument "-J-Xmx1024m" to the property "netbeans_default_options" in the file .../Netbeans 8.0/etc/netbeans.conf. The heap space of Netbeans is really increased, as I check with jvisualVM (the Netbeans process has 1GB heap space).
问题是该插件启动了一个独立的进程,并且未使用文件netbeans.conf中指示的参数.在错误日志中,我看到此命令正在启动:
The problem is that the plugin launch an independent process and don't use the arguments indicated in the file netbeans.conf. In the error log, I see that this command is being launched:
C:\Program Files (x86)\Java\jdk1.7.0_45\jre\bin\java.exe -cp C:\Users\XXX\AppData\Local\Temp\sonar-runner-impl7326402756121541816.jar org.sonar.runner.impl.BatchLauncherMain C:\Users\XXX\AppData\Local\Temp\sonar-project1505822727125430784.properties
所以,问题是,有人可以告诉我如何配置Netbeans-Radar插件以增加堆空间吗?启动java.exe时,如何配置Netbeans或Radar插件以使用参数"-Xmx1024m"?
So, the question is, can someone tell me how can I configure the Netbeans-Radar plugin in order to increase the heap space? How can I configure Netbeans or Radar plugin to use the argument "-Xmx1024m" when launching java.exe?
我使用以下版本:Netbeans 8.0.1,Radar-plugin 2.1
I use this versions: Netbeans 8.0.1, Radar-plugin 2.1
推荐答案
此功能是通过以下链接在官方网站上请求的:http://code.google.com/p/radar-netbeans/issues/detail?id=29 ,并且已在2.2-SNAPSHOT版本中添加(当前未发布) ).
The feature was requested at official site in this link: http://code.google.com/p/radar-netbeans/issues/detail?id=29 and has been added in version 2.2-SNAPSHOT (not released at current date).
在设置面板(工具>选项>其他> SonarQube)中,有一个名为"Runner JVM arguments"的选项.我尝试使用1GB(选项-Xmx1024m),现在工作正常.
In the settings panel (tools > options > miscellaneous > SonarQube) there is an option called "Runner JVM arguments". I tried with 1GB (option -Xmx1024m) and now is working perfectly.
这篇关于Netbeans雷达插件配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!