我一直在尝试用SonarQube分析一个混合了Java和JavaScript的项目。分析器对Java文件似乎没有问题,但是当我试图分析应用程序的一个javascript文件时,我得到了下面的警告。我们已经排除了使用SonarQube文件排除的所有第三方库,只包括那些正在由应用程序团队开发/维护的库:
[WARN] [14:00:10.103] [JOURNAL_FLUSHER] WARNING Journal flush operation took 38,121ms last 8 cycles average is 4,765ms
[WARN] [14:00:10.103] [CHECKPOINT_WRITER] WARNING Transaction neither committed nor rolled back Transaction_100000002 depth=1 status=<ts=26,579 tc=UNCOMMITTED mvv=0>
Exception in thread "CHECKPOINT_WRITER" java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.ArrayList.iterator(ArrayList.java:834)
at com.persistit.TransactionIndex.checkpointAccumulatorSnapshots(TransactionIndex.java:1102)
at com.persistit.CheckpointManager.createCheckpoint(CheckpointManager.java:247)
at com.persistit.CheckpointManager.pollCreateCheckpoint(CheckpointManager.java:197)
at com.persistit.CheckpointManager.runTask(CheckpointManager.java:300)
at com.persistit.IOTaskRunnable.run(IOTaskRunnable.java:144)
at java.lang.Thread.run(Thread.java:745)发布于 2016-01-13 11:44:13
我最近也遇到过这样的问题。为了解决这个问题,我编辑了声纳包装器配置。
在Mac中:
$ vim /usr/local/Cellar/sonar/5.2/libexec/conf/wrapper.conf 查找wrapper.java.maxmemory并设置它的值。
wrapper.java.maxmemory=3默认值是3。我试着增加这个值,在重启服务后一切正常。
sonar restarthttps://stackoverflow.com/questions/33222696
复制相似问题