diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2013-09-11 15:55:40 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2013-09-11 15:55:40 +0200 |
commit | cc6fe647dabf20f86d19f9ae51666386bd6fb023 (patch) | |
tree | d0c6ea6c5eb18abf2d6087274a434fb8b2d91449 /README.md | |
parent | f0850cc25b740b8ae1951b2aac8f965d2ed2de88 (diff) | |
download | sonarqube-cc6fe647dabf20f86d19f9ae51666386bd6fb023.tar.gz sonarqube-cc6fe647dabf20f86d19f9ae51666386bd6fb023.zip |
Complete build section of readme
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/README.md b/README.md index 38852ca05f4..fb80a8df2dd 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,39 @@ Debug Maven analysis by executing `mvnDebug sonar:sonar`. Then attach your IDE t Example in Intellij Idea : Run -> Edit configurations -> Add new configuration -> Remote -> port 8000. +### Profile Maven Analysis with JProfiler + +Duplicate $MAVEN_HOME/bin/mvnDebug to mvnJProfiler and replace the property MAVEN_DEBUG_OPTS by: + + MAVEN_DEBUG_OPTS="-Xint -agentlib:jprofilerti=port=8849 -Xbootclasspath/a:/path/to/jprofiler/bin/agent.jar" + +Then start JProfiler -> Connect to an application on a remote computer + +### Log All Server SQL Requests + +Download log4jdbc4-1.2.jar from http://log4jdbc.googlecode.com/files/log4jdbc4-1.2.jar in $SONAR_HOME/war/sonar-server/WEB-INF/lib/log4jdbc4-1.2.jar, and edit conf/logback.xml: + + <logger name="jdbc.sqltiming"> + <level value="OFF"/> + <appender-ref ref="PROFILING_FILE"/> + </logger> + <logger name="jdbc.connection"> + <level value="INFO"/> + <appender-ref ref="PROFILING_FILE"/> + </logger> + <logger name="jdbc.audit"> + <level value="OFF"/> + <appender-ref ref="PROFILING_FILE"/> + </logger> + <logger name="jdbc.resultset"> + <level value="OFF"/> + <appender-ref ref="PROFILING_FILE"/> + </logger> + <logger name="jdbc.sqlonly"> + <level value="OFF"/> + <appender-ref ref="PROFILING_FILE"/> + </logger> + ## License Copyright 2008-2013 SonarSource. |