5

我在使用 Sonar Web 界面时遇到问题。加载所有页面需要 1 到 10 秒。我想知道声纳是否总是这么慢,所以我尝试了 Nemo 演示页面,它运行良好。所以我的安装确实有问题。
你能给我一些关于在哪里看的提示吗?

谢谢

以下是我当前安装的信息:

SonarQube Info
Version 3.7
Database MySQL 5.5.29-29.4-log
Database Driver MySQL-AB JDBC Driver mysql-connector-java-5.1.24 ( Revision:${bzr.revision-id} )
Database Driver Class -
Database Dialect (Hibernate) mysql (org.sonar.core.persistence.dialect.MySql$MySqlWithDecimalDialect)
Hibernate Default Schema -

System Info
System date Thu Sep 19 17:28:45 CEST 2013
JVM Vendor  Oracle Corporation
JVM Name    Java HotSpot(TM) 64-Bit Server VM
JVM Version 23.7-b01
Java Version    1.7.0_17-b02
Java Home   /usr/lib/jvm/java-7-oracle-1.7.0.17/jre
JIT Compiler    -
Application Server Container    jetty/7.6.11.v20130520
User TimeZone   Europe/Paris
OS  Linux / amd64 / 3.2.0-51-generic
Processors  16
System Classpath    ../../lib/jetty-server-7.6.11.v20130520.jar:../../lib/jetty-security-7.6.11.v20130520.jar:../../lib/jetty-io-7.6.11.v20130520.jar:../../lib/jetty-xml-7.6.11.v20130520.jar:../../lib/commons-io-2.4.jar:../../lib/jetty-continuation-7.6.11.v20130520.jar:../../lib/jetty-webapp-7.6.11.v20130520.jar:../../lib/wrapper-3.2.3.jar:../../lib/jetty-http-7.6.11.v20130520.jar:../../lib/jetty-util-7.6.11.v20130520.jar:../../lib/javax.servlet-2.5.0.v201103041518.jar:../../lib/sonar-application-3.7.jar:../../lib/jetty-servlet-7.6.11.v20130520.jar:../../:../../extensions/jdbc-driver/mysql/mysql-connector-java-5.1.24.jar:../../extensions/jdbc-driver/postgresql/postgresql-9.1-901-1.jdbc4.jar:../../extensions/jdbc-driver/mssql/jtds-1.2.7.jar
Boot Classpath  /usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/resources.jar:/usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/rt.jar:/usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/jsse.jar:/usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/jce.jar:/usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/charsets.jar:/usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/jfr.jar:/usr/lib/jvm/java-7-oracle-1.7.0.17/jre/classes
Library Path    ./lib

Java VM Statistics
Total Memory    600 MB
Free Memory 335 MB
Max Memory  1908 MB
Heap    init = 536870912(524288K) used = 265024384(258812K) committed = 600899584(586816K) max = 1908932608(1864192K)
Non Heap    init = 24313856(23744K) used = 72589168(70887K) committed = 72876032(71168K)     max = 184549376(180224K)
System Load Average (last minute)   92.0%
Loaded Classes (currently/total/unloaded)   12685 / 12685 / 0
Start Time  2013-09-19T17:21:27.879+0200
Threads (total/peak/daemon) 17 / 17 / 8

System Properties
SONAR_HOME  /opt/sonar
awt.toolkit sun.awt.X11.XToolkit
file.encoding   ANSI_X3.4-1968
file.encoding.pkg   sun.io
file.separator  /
java.awt.graphicsenv    sun.awt.X11GraphicsEnvironment
java.awt.headless   true
java.awt.printerjob sun.print.PSPrinterJob
java.class.path ../../lib/jetty-server-7.6.11.v20130520.jar:../../lib/jetty-security-7.6.11.v20130520.jar:../../lib/jetty-io-7.6.11.v20130520.jar:../../lib/jetty-xml-7.6.11.v20130520.jar:../../lib/commons-io-2.4.jar:../../lib/jetty-continuation-7.6.11.v20130520.jar:../../lib/jetty-webapp-7.6.11.v20130520.jar:../../lib/wrapper-3.2.3.jar:../../lib/jetty-http-7.6.11.v20130520.jar:../../lib/jetty-util-7.6.11.v20130520.jar:../../lib/javax.servlet-2.5.0.v201103041518.jar:../../lib/sonar-application-3.7.jar:../../lib/jetty-servlet-7.6.11.v20130520.jar:../../:../../extensions/jdbc-driver/mysql/mysql-connector-java-5.1.24.jar:../../extensions/jdbc-driver/postgresql/postgresql-9.1-901-1.jdbc4.jar:../../extensions/jdbc-driver/mssql/jtds-1.2.7.jar
java.class.version  51.0
java.endorsed.dirs  /usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/endorsed
java.ext.dirs   /usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/ext:/usr/java/packages/lib/ext
java.home   /usr/lib/jvm/java-7-oracle-1.7.0.17/jre
java.io.tmpdir  /tmp
java.library.path   ./lib
java.runtime.name   Java(TM) SE Runtime Environment
java.runtime.version    1.7.0_17-b02
java.specification.name Java Platform API Specification
java.specification.vendor   Oracle Corporation
java.specification.version  1.7
java.vendor Oracle Corporation
java.vendor.url http://java.oracle.com/
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.version    1.7.0_17
java.vm.info    mixed mode
java.vm.name    Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name  Java Virtual Machine Specification
java.vm.specification.vendor    Oracle Corporation
java.vm.specification.version   1.7
java.vm.vendor  Oracle Corporation
java.vm.version 23.7-b01
jruby.management.enabled    true
line.separator  
os.arch amd64
os.name Linux
os.version  3.2.0-51-generic
path.separator  :
sun.arch.data.model 64
sun.boot.class.path /usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/resources.jar:/usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/rt.jar:/usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/jsse.jar:/usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/jce.jar:/usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/charsets.jar:/usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/jfr.jar:/usr/lib/jvm/java-7-oracle-1.7.0.17/jre/classes
sun.boot.library.path   /usr/lib/jvm/java-7-oracle-1.7.0.17/jre/lib/amd64
sun.cpu.endian  little
sun.cpu.isalist 
sun.io.unicode.encoding UnicodeLittle
sun.java.command    org.tanukisoftware.wrapper.WrapperSimpleApp     org.sonar.application.StartServer
sun.java.launcher   SUN_STANDARD
sun.jnu.encoding    ANSI_X3.4-1968
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level  unknown
user.country    US
user.dir    /opt/sonar/bin/linux-x86-64
user.home   /opt/sonar
user.language   en
user.name   sonar
user.timezone   Europe/Paris
wrapper.cpu.timeout 10
wrapper.java.pid    16603
wrapper.jvm.port.max    31999
wrapper.jvm.port.min    31000
wrapper.jvmid   1
wrapper.key Kgip78X4v9wJAWIQ
wrapper.native_library  wrapper
wrapper.pid 16601
wrapper.port    32000
wrapper.service TRUE
wrapper.version 3.2.3
4

3 回答 3

0

SonarQube Web 界面应该显示得非常快。您是否遵循了http://docs.codehaus.org/display/SONAR/Installing#Installing-SonarQubePlatformOverview上的建议?

于 2013-09-19T18:03:53.170 回答
0

我注意到响应时间因浏览器而异。Chrome(版本 30.0.1599.101 m)较慢,IE(版本 9.0.8112.16421)较快。两种浏览器都在 Windows 7 SP1 下运行。我想知道是否其他人也看到了相同的结果?谢谢,查理

于 2013-10-17T16:32:20.800 回答
0

您能否尝试将 SaonrQube 安装在另一个目录中,使用默认 H2 嵌入式数据库且没有项目分析,并告诉我们问题是否仍然存在?

于 2013-09-20T10:06:05.853 回答