小编luc*_*ell的帖子

Sonar - OutOfMemoryError:Java堆空间

我正在使用"Findbugs"作为配置文件在Sonar上部署一个大型Java项目并获得以下错误:

Caused by: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError:
Java heap space
Run Code Online (Sandbox Code Playgroud)

我试图解决这个问题:

  1. 将%SONAR_RUNNER_OPTS%替换为-Xms256m -Xmx1024m以增加sonar-runner bat文件中的堆大小.
  2. 在Sonar全局参数中将"sonar.findbugs.effort"参数设置为"Min".

但上述两种方法对我都不起作用.

sonar-runner sonarqube

20
推荐指数
4
解决办法
5万
查看次数

如何使用Google App Engine重定向所有网址

如何配置app.yaml文件以将所有URL重定向到另一个URL?例如,我想http://test.appspot.com/hellohttp://test.appspot.com/hello28928723重定向到http://domain.com.

我目前只提供静态文件.这是我的app.yaml文件:

application: testapp
version: 1
runtime: python
api_version: 1

handlers:
- url: (.*)/
  static_files: static\1/index.html
  upload: static/index.html

- url: /
  static_dir: static
Run Code Online (Sandbox Code Playgroud)

google-app-engine yaml

19
推荐指数
4
解决办法
2万
查看次数

如何在不看到Microsoft标头的情况下运行WSH脚本?

从命令行运行.vbs脚本时,它将默认显示Microsoft标头:

Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
Run Code Online (Sandbox Code Playgroud)

怎么能被禁用?

wsh

10
推荐指数
2
解决办法
6478
查看次数

如何从Ant开始的Java类中看到Log4J输出?

通过Ant运行Java类时,我在获取Log4J输出时遇到了很多麻烦,即使log4.properties在类路径上也是如此.在这里记录它,以防其他人有同样的问题.

例如

<java classname="Hello" fork="true">      
    <classpath> 
    <fileset dir="${lib.dir}">
        <include name="**/*.jar"/>
    </fileset>     
    </classpath>
</java>
Run Code Online (Sandbox Code Playgroud)

ant log4j

3
推荐指数
1
解决办法
1605
查看次数

标签 统计

ant ×1

google-app-engine ×1

log4j ×1

sonar-runner ×1

sonarqube ×1

wsh ×1

yaml ×1