Ohh ok, it think the console log it misleading "-DQPID_WORK=/Users/rob" i would assume it is using "/Users/rob" as work directory. But any way thanks for the help.
Ram On Wed, Oct 12, 2016 at 3:50 PM, Rob Godfrey <[email protected]> wrote: > On 12 October 2016 at 23:05, rammohan ganapavarapu < > [email protected]> > wrote: > > > When you say "prop" config option pass -prop=value option to startup > script > > right? if that is the case it didn't work either. > > > What do you mean by "doesn't work"? > > > > 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 > > > > > if qpid.home_dir is set in this way, the value of QPID_WORK is never > actually used by the broker... > > So, I started the broker like so: > > rob$ bin/qpid-server -prop qpid.work_dir=/tmp/foo > Setting QPID_WORK to /Users/rob as default > System Properties set to > -DQPID_HOME=/Users/rob/qpid-6.0.x/systests/target/qpid- > broker/6.0.5-SNAPSHOT > -DQPID_WORK=/Users/rob > QPID_OPTS set to > Using QPID_CLASSPATH > /Users/rob/qpid-6.0.x/systests/target/qpid-broker/6. > 0.5-SNAPSHOT/lib/*:/Users/rob/qpid-6.0.x/systests/target/ > qpid-broker/6.0.5-SNAPSHOT/lib/plugins/*:/Users/rob/qpid- > 6.0.x/systests/target/qpid-broker/6.0.5-SNAPSHOT/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 > Picked up _JAVA_OPTIONS: -Djava.awt.headless=true > [Broker] BRK-1006 : Using configuration : /tmp/foo/config.json > [Broker] BRK-1001 : Startup : Version: 6.0.5-SNAPSHOT Build: 1763290 > [Broker] BRK-1010 : Platform : JVM : Oracle Corporation version: > 1.8.0_74-b02 OS : Mac OS X version: 10.11.6 arch: x86_64 cores: 8 > [Broker] BRK-1011 : Maximum Memory : Heap : 518,979,584 bytes Direct : > 1,610,612,736 bytes > [Broker] BRK-1017 : Process : PID : 86175 > [Broker] BRK-1002 : Starting : Listening on TCP port 5672 > [Broker] MNG-1001 : Web Management Startup > [Broker] MNG-1002 : Starting : HTTP : Listening on TCP port 8080 > [Broker] MNG-1004 : Web Management Ready > [Broker] BRK-1004 : Qpid Broker Ready > > So, yes, the shell script is setting QPID_WORK, but the broker is using the > value in qpid.work_dir, i.e. /tmp/foo > > -- Rob > > 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] > > > > > > > > >
