summaryrefslogtreecommitdiff
path: root/doc/book/src/java-broker/Java-Environment-Variables.xml
blob: 12703190f21b2be3081a3d851b98deb9fea2992b (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
<?xml version="1.0" encoding="utf-8"?>
<!--
 
 Licensed to the Apache Software Foundation (ASF) under one
 or more contributor license agreements.  See the NOTICE file
 distributed with this work for additional information
 regarding copyright ownership.  The ASF licenses this file
 to you under the Apache License, Version 2.0 (the
 "License"); you may not use this file except in compliance
 with the License.  You may obtain a copy of the License at
 
   http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing,
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
 under the License.
 
-->

<section id="Java-Environment-Variables">
  <title>
      Java Environment Variables
    </title>
  <section role="h2" id="JavaEnvironmentVariables-SettingQpidEnvironmentVariables">
    <title>
            Setting
            Qpid Environment Variables
          </title>

  <section role="h3" id="JavaEnvironmentVariables-QpidDeploymentPathVariables">
    <title>
            Qpid
            Deployment Path Variables
          </title>
  <para>
            There are two main Qpid environment variables which are required
            to be set for Qpid deployments, QPID_HOME and QPID_WORK.
          </para>
  <para>
            QPID_HOME - This variable is used to tell the Qpid broker where
            it's installed home is, which is in turn used to find dependency
            JARs which Qpid uses.
          </para>
  <para>
            QPID_WORK - This variable is used by Qpid when creating all
            'writeable' directories that it uses. This includes the log
            directory and the storage location for any BDB instances in use
            by your deployment (if you're using persistence with BDB). If you
            do not set this variable, then the broker will default (in the
            qpid-server script) to use the current user's homedir as the root
            directory for creating the writeable locations that it uses.
          </para>

    <!--h3-->
  </section>

  <section role="h3" id="JavaEnvironmentVariables-SettingMaxMemoryforthebroker">
    <title>
            Setting
            Max Memory for the broker
          </title>
  <para>
            If you simply start the Qpid broker, it will default to use a
            -Xmx setting of 1024M for the broker JVM. However, we would
            recommend that you make the maximum -Xmx heap size available, if
            possible, of 3Gb (for 32-bit platforms).
          </para>
  <para>
            You can control the memory setting for your broker by setting the
            QPID_JAVA_MEM variable before starting the broker e.g. -Xmx3668m
            . Enclose your value within quotes if you also specify a -Xms
            value. The value in use is echo'd by the qpid-server script on
            startup.
          </para>
    <!--h3-->
  </section>

    <!--h2-->
  </section>

</section>