Hi Ram,

Notice that in your example both QPID_WORK and qpid.work_dir are specified.
It seems that currently QPID_WORK take precedence.

I guess if the environment variable and system property QPID_WORK are not
set then the broker picks up the qpid.work_dir property, right?

Kind regards,

On 10/10/16 23:01, rammohan ganapavarapu wrote:

I am using "qpid.work_dir" property to set qpid work directory to non
default value but for some reason it is not honoring that property instead
it is still looking for "-DQPID_WORK"

Here is how i am starting up broker:

qpidd     3181  3180 44 21:55 ?        00:00:06
/usr/lib/jvm/java-1.7.0-openjdk.x86_64/bin/java -server -DPNAME=QPBRKR
-XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError -Xmx512m
-XX:MaxDirectMemorySize=1536m -DQPID_HOME=/opt/qpid-java-broker
-DQPID_WORK=/home/qpidd org.apache.qpid.server.Main -os -icp
/opt/qpid-java-broker/etc/config.json -props

cat ../etc/qpid.properties

Here is the startup log:

Starting qpidd-java: Setting QPID_WORK to /home/qpidd as default
System Properties set to -DQPID_HOME=/opt/qpid-java-broker
QPID_OPTS set to
Info: QPID_JAVA_GC not set. Defaulting to JAVA_GC -XX:+UseConcMarkSweepGC
Info: QPID_JAVA_MEM not set. Defaulting to JAVA_MEM -Xmx512m
[Broker] BRK-1006 : Using configuration : /home/qpidd/config.json
[Broker] BRK-1001 : Startup : Version: 6.0.2 Build: 1738920
[Broker] BRK-1010 : Platform : JVM : Oracle Corporation version:
1.7.0_75-mockbuild_2015_01_23_00_20-b00 OS : Linux version:
4.1.13-19.30.amzn1.x86_64 arch: amd64 cores: 4
[Broker] BRK-1011 : Maximum Memory : Heap : 518,979,584 bytes Direct :
1,610,612,736 bytes
[Broker] BRK-1017 : Process : PID : 3181
[Broker] BRK-1002 : Starting : Listening on TCP port 5672
[Broker] MNG-1001 : Web Management Startup
[Broker] MNG-1002 : Starting : HTTP : Listening on TCP port 10001
[Broker] MNG-1004 : Web Management Ready
[Broker] MNG-1001 : JMX Management Startup
[Broker] MNG-1002 : Starting : RMI Registry : Listening on TCP port 8999
[Broker] MNG-1002 : Starting : JMX RMIConnectorServer : Listening on TCP
port 9099
[Broker] MNG-1004 : JMX Management Ready
[Broker] BRK-1004 : Qpid Broker Ready

But if i export QPID_WORK=/data its working fine, any reason its not taking
the base configuration property?


To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to