When you say "prop" config option pass -prop=value option to startup script right? if that is the case it didn't work either. I think by default QPID_WORK dir is set to user home.
./qpid-server -os -icp /opt/qpid-java-broker/etc/config.json -props /opt/qpid-java-broker/etc/qpid.properties -prop qpid.work_dir=/ebs -prop qpid.home_dir=/opt/qpid-java-broker/ Setting QPID_WORK to /root as default System Properties set to -DQPID_HOME=/opt/qpid-java-broker -DQPID_WORK=/root On Wed, Oct 12, 2016 at 1:33 PM, Robbie Gemmell <[email protected]> wrote: > Rob's look suggested it will only pick up the qpid.work_dir value at > startup when using the command line 'prop' config option, so you would > currently have to do that, or set QPID_WORK instead. > > On 12 October 2016 at 17:47, rammohan ganapavarapu > <[email protected]> wrote: > > So "qpid.work_dir" doesn't take effect at the time of boot up? i have to > > set " > > QPID_WORK" environment variable? > > > > On Tue, Oct 11, 2016 at 2:45 AM, Rob Godfrey <[email protected]> > > wrote: > > > >> Looking at the code, in the startup phase the Broker seems to use only > >> QPID_WORK as provided in a system property, or qpid.work_dir provided > >> on the command line with the -prop qpid.work_dir=foo form. It seems > >> that it does not try to look for qpid.work_dir in the system > >> properties (or, implicitly, as defined in a properties file). I think > >> this can be considered a bug. > >> > >> -- Rob > >> > >> On 11 October 2016 at 10:25, Lorenz Quack <[email protected]> > wrote: > >> > 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, > >> > Lorenz > >> > > >> > > >> > > >> > On 10/10/16 23:01, rammohan ganapavarapu wrote: > >> >> > >> >> Hi, > >> >> > >> >> 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 > >> >> /opt/qpid-java-broker/etc/qpid.properties > >> >> > >> >> > >> >> cat ../etc/qpid.properties > >> >> qpid.amqp_port=5672 > >> >> qpid.http_port=10001 > >> >> qpid.jmx_port=9099 > >> >> qpid.rmi_port=8999 > >> >> qpid.work_dir=/data/ > >> >> > >> >> > >> >> 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 > >> >> -DQPID_WORK=/home/qpidd > >> >> QPID_OPTS set to > >> >> Using QPID_CLASSPATH > >> >> > >> >> /opt/qpid-java-broker/lib/*:/opt/qpid-java-broker/lib/ > >> plugins/*:/opt/qpid-java-broker/lib/opt/* > >> >> Info: QPID_JAVA_GC not set. Defaulting to JAVA_GC > >> -XX:+UseConcMarkSweepGC > >> >> -XX:+HeapDumpOnOutOfMemoryError > >> >> Info: QPID_JAVA_MEM not set. Defaulting to JAVA_MEM -Xmx512m > >> >> -XX:MaxDirectMemorySize=1536m > >> >> [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? > >> >> > >> >> Thanks, > >> >> Ram > >> >> > >> > > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: [email protected] > >> > For additional commands, e-mail: [email protected] > >> > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
