Hi Lvc

It seems the console.sh config is reporting different value. When I saw in 
orientdb.log it reports correctly as


- CACHE
  + cache.level1.enabled = true
  + cache.level1.size = -1


Regards,
Arun


On Tuesday, December 16, 2014 8:06:09 PM UTC+5:30, Arun Yadav wrote:
>
> Hi,
>
> The server.sh doesn't seem to override that property.
>
>
> -------------------------server.sh-------------------------
> cd `dirname $0`
>
> # resolve links - $0 may be a softlink
> PRG="$0"
>
> while [ -h "$PRG" ]; do
>   ls=`ls -ld "$PRG"`
>   link=`expr "$ls" : '.*-> \(.*\)$'`
>   if expr "$link" : '/.*' > /dev/null; then
>     PRG="$link"
>   else
>     PRG=`dirname "$PRG"`/"$link"
>   fi
> done
>
> # Get standard environment variables
> PRGDIR=`dirname "$PRG"`
>
> # Only set ORIENTDB_HOME if not already set
> [ -f "$ORIENTDB_HOME"/bin/orient.sh ] || ORIENTDB_HOME=`cd "$PRGDIR/.." ; 
> pwd`
> export ORIENTDB_HOME
>
> if [ ! -f "${CONFIG_FILE}" ]
> then
>   CONFIG_FILE=$ORIENTDB_HOME/config/orientdb-server-config.xml
> fi
>
> # Raspberry Pi check (Java VM does not run with -server argument on ARMv6)
> if [ `uname -m` != "armv6l" ]; then
>   JAVA_OPTS="$JAVA_OPTS -server "
> fi
> export JAVA_OPTS
>
> # Set JavaHome if it exists
> if [ -f "${JAVA_HOME}/bin/java" ]; then
>    JAVA=${JAVA_HOME}/bin/java
> else
>    JAVA=java
> fi
> export JAVA
>
> LOG_FILE=$ORIENTDB_HOME/config/orientdb-server-log.properties
> WWW_PATH=$ORIENTDB_HOME/www
> ORIENTDB_SETTINGS="-Dprofiler.enabled=true"
> JAVA_OPTS_SCRIPT="-Djna.nosys=true -XX:+HeapDumpOnOutOfMemoryError 
> -Djava.awt.headless=true -Dfile.encoding=UTF8 -Drhino.opt.level=9"
>
> $JAVA $JAVA_OPTS $JAVA_OPTS_SCRIPT $ORIENTDB_SETTINGS 
> -Djava.util.logging.config.file="$LOG_FILE" 
> -Dorientdb.config.file="$CONFIG_FILE" -Dorientdb.www.path="$WWW_PATH" 
> -Dorientdb.build.number="UNKNOWN@r${buildNumber}; 2014-09-22 14:46:19+0200" 
> -cp "$ORIENTDB_HOME/lib/orientdb-server-1.7.9.jar:$ORIENTDB_HOME/lib/*" 
> com.orientechnologies.orient.server.OServerMain
> -------------------------------------------------
>
>
> ------------------------------confirmed the same from process state as 
> well-------------------------------------
> ps -ef |grep orientdb 
>
>
> root     15580 15575  4 15:35 pts/15   00:11:35 java -server 
> -Djna.nosys=true -XX:+HeapDumpOnOutOfMemoryError -Djava.awt.headless=true 
> -Dfile.encoding=UTF8 -Drhino.opt.level=9 -Dprofiler.enabled=true
>  
> -Djava.util.logging.config.file=/opt/orientdb-community-1.7.9/config/orientdb-server-log.properties
>  
> -Dorientdb.config.file=/opt/orientdb-community-1.7.9/config/orientdb-server-config.xml
>  
> -Dorientdb.www.path=/opt/orientdb-community-1.7.9/www 
> -Dorientdb.build.number=UNKNOWN@r; 2014-09-22 14:46:19+0200 -cp 
> /opt/orientdb-community-1.7.9/lib/orientdb-server-1.7.9.jar:/opt/orientdb-community-1.7.9/lib/*
>  
> com.orientechnologies.orient.server.OServerMain
> ----------------------------------
>
> Is there any other way to set the same?
>
> Regards
> Arun
>
>
>
> On Tuesday, December 16, 2014 7:41:35 PM UTC+5:30, Lvc@ wrote:
>>
>> Hi Arun,
>> Can you check the server.sh file if forces that configuration?
>>
>> Lvc@
>>
>>
>> On 16 December 2014 at 14:46, Arun Yadav <[email protected]> wrote:
>>>
>>> Hi,
>>>
>>> I am updating the orientdb-server-config.xml as follows
>>>
>>>
>>>
>>>     <properties>
>>>         <entry value="1" name="db.pool.min"/>
>>>         <entry value="50" name="db.pool.max"/>
>>>         <entry value="true" name="cache.level1.enabled"/>
>>>         <entry value="false" name="cache.level2.enabled"/>
>>>         <entry value="-1" name="cache.level1.size"/>
>>>         <entry value="0" name="cache.level2.size"/>
>>>         <entry value="true" name="profiler.enabled"/>
>>>         <entry value="info" name="log.console.level"/>
>>>         <entry value="info" name="log.file.level"/>
>>>         <entry value="30000" name="sbtree.maxKeySize"/>
>>>     </properties>
>>>
>>> However even after server restart, the config still displays "false" 
>>> for "cache.level1.enabled"
>>>
>>> ./console.sh config
>>> ...
>>>
>>> | cache.level1.enabled               = false                          |
>>> | cache.level1.size                  = -1                             |
>>> | cache.level2.enabled               = false                          |
>>> | cache.level2.size                  = -1                             |
>>> | cache.level2.impl                  = 
>>> com.orientechnologies.orient.core.cache.ODefaultCache |
>>> | cache.level2.strategy              = 0                              |
>>>
>>> we are using orientdb version 1.7.9 with plocal storage. 
>>>
>>>
>>> Is there any other place I need to make this change for server to pick 
>>> this configuration.
>>>
>>>
>>> Regards
>>> Arun
>>>
>>>
>>>  -- 
>>>
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "OrientDB" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to