summarylogtreecommitdiffstats
path: root/wrapper.conf.patch
blob: b95d1cd4173ecfaeebe72bef14afe14f6a03cd7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
--- wrapper.conf.orig	2015-11-02 10:08:46.000000000 +0900
+++ wrapper.conf	2015-11-08 17:01:50.394826988 +0900
@@ -1,88 +1,90 @@
-# Path to JVM executable. By default it must be available in PATH.
-# Can be an absolute path, for example:
-#wrapper.java.command=/path/to/my/jdk/bin/java
-wrapper.java.command=java
-
-
-#
-# DO NOT EDIT THE FOLLOWING SECTIONS
-#
-
-
-#********************************************************************
-# Wrapper Java
-#********************************************************************
-wrapper.java.additional.1=-Djava.awt.headless=true
-wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
-wrapper.java.classpath.1=../../lib/jsw/*.jar
-wrapper.java.classpath.2=../../lib/*.jar
-wrapper.java.library.path.1=./lib
-wrapper.app.parameter.1=org.sonar.application.App
-wrapper.java.initmemory=3
-wrapper.java.maxmemory=3
-
-#********************************************************************
-# Wrapper Logs
-#********************************************************************
-
-wrapper.console.format=PM
-wrapper.console.loglevel=INFO
-wrapper.logfile=../../logs/sonar.log
-wrapper.logfile.format=M
-wrapper.logfile.loglevel=INFO
-
-# Maximum size that the log file will be allowed to grow to before
-#  the log is rolled. Size is specified in bytes.  The default value
-#  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
-#  'm' (mb) suffix.  For example: 10m = 10 megabytes.
-#wrapper.logfile.maxsize=0
-
-# Maximum number of rolled log files which will be allowed before old
-#  files are deleted.  The default value of 0 implies no limit.
-#wrapper.logfile.maxfiles=0
-
-# Log Level for sys/event log output.  (See docs for log levels)
-wrapper.syslog.loglevel=NONE
-
-#********************************************************************
-# Wrapper Windows Properties
-#********************************************************************
-# Title to use when running as a console
-wrapper.console.title=SonarQube
-
-# Disallow start of multiple instances of an application at the same time on Windows
-wrapper.single_invocation=true
-
-#********************************************************************
-# Wrapper Windows NT/2000/XP Service Properties
-#********************************************************************
-# WARNING - Do not modify any of these properties when an application
-#  using this configuration file has been installed as a service.
-#  Please uninstall the service before modifying this section.  The
-#  service can then be reinstalled.
-
-# Name of the service
-wrapper.ntservice.name=SonarQube
-
-# Display name of the service
-wrapper.ntservice.displayname=SonarQube
-
-# Description of the service
-wrapper.ntservice.description=SonarQube
-
-# Service dependencies.  Add dependencies as needed starting from 1
-wrapper.ntservice.dependency.1=
-
-# Mode in which the service is installed.  AUTO_START or DEMAND_START
-wrapper.ntservice.starttype=AUTO_START
-
-# Allow the service to interact with the desktop.
-wrapper.ntservice.interactive=false
-
-#********************************************************************
-# Forking Properties
-#********************************************************************
-wrapper.disable_restarts=TRUE
-wrapper.ping.timeout=0
-wrapper.shutdown.timeout=3000
-wrapper.jvm_exit.timeout=3000
\ No newline at end of file
+# Path to JVM executable. By default it must be available in PATH.
+# Can be an absolute path, for example:
+#wrapper.java.command=/path/to/my/jdk/bin/java
+wrapper.java.command=java
+
+
+#
+# DO NOT EDIT THE FOLLOWING SECTIONS
+#
+
+export SONAR_HOME=${SONAR_HOME:=/usr/share/sonarqube}
+
+#********************************************************************
+# Wrapper Java
+#********************************************************************
+wrapper.java.additional.1=-Djava.awt.headless=true
+wrapper.java.additional.2=-XX:MaxPermSize=128m
+wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
+wrapper.java.classpath.1=../lib/jsw/*.jar
+wrapper.java.classpath.2=../lib/*.jar
+wrapper.java.library.path.1=./lib
+wrapper.app.parameter.1=org.sonar.application.App
+wrapper.java.initmemory=256
+wrapper.java.maxmemory=512
+
+#********************************************************************
+# Wrapper Logs
+#********************************************************************
+
+wrapper.console.format=PM
+wrapper.console.loglevel=INFO
+wrapper.logfile=/var/log/sonarqube/sonar.log
+wrapper.logfile.format=LPTM
+wrapper.logfile.loglevel=INFO
+
+# Maximum size that the log file will be allowed to grow to before
+#  the log is rolled. Size is specified in bytes.  The default value
+#  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
+#  'm' (mb) suffix.  For example: 10m = 10 megabytes.
+#wrapper.logfile.maxsize=0
+
+# Maximum number of rolled log files which will be allowed before old
+#  files are deleted.  The default value of 0 implies no limit.
+#wrapper.logfile.maxfiles=0
+
+# Log Level for sys/event log output.  (See docs for log levels)
+wrapper.syslog.loglevel=NONE
+
+#********************************************************************
+# Wrapper Windows Properties
+#********************************************************************
+# Title to use when running as a console
+wrapper.console.title=SonarQube
+
+# Disallow start of multiple instances of an application at the same time on Windows
+wrapper.single_invocation=true
+
+#********************************************************************
+# Wrapper Windows NT/2000/XP Service Properties
+#********************************************************************
+# WARNING - Do not modify any of these properties when an application
+#  using this configuration file has been installed as a service.
+#  Please uninstall the service before modifying this section.  The
+#  service can then be reinstalled.
+
+# Name of the service
+wrapper.ntservice.name=SonarQube
+
+# Display name of the service
+wrapper.ntservice.displayname=SonarQube
+
+# Description of the service
+wrapper.ntservice.description=SonarQube
+
+# Service dependencies.  Add dependencies as needed starting from 1
+wrapper.ntservice.dependency.1=
+
+# Mode in which the service is installed.  AUTO_START or DEMAND_START
+wrapper.ntservice.starttype=AUTO_START
+
+# Allow the service to interact with the desktop.
+wrapper.ntservice.interactive=false
+
+#********************************************************************
+# Forking Properties
+#********************************************************************
+wrapper.disable_restarts=TRUE
+wrapper.ping.timeout=0
+wrapper.shutdown.timeout=3000
+wrapper.jvm_exit.timeout=3000