Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

gs-ui/gs-webui not showing gsc logs

We are running XAP 9.6.2.

I have reconfigured the logging path for all processes to a different location. Since the move of the logging path, the gsui and the gswebui are not showing the GS Container logs anymore.

Here is my configuration:

export JSHOMEDIR=$GS_HOME export NIC_ADDR=hostname.DOMAINNAME.com

export LOOKUPGROUPS="PRIMEGATE_PREL" export LOOKUPLOCATORS="HOSTNAME.DOMAINNAME.com:9007"

export GS_LOGGING_CONFIG_FILE=${GS_HOME}/config/gs_logging.properties export GS_OPTIONS="-Dcom.gs.transport_protocol.lrmi.bind-port=9000-9006" export GS_OPTIONS="$GS_OPTIONS -Dcom.gs.transport_protocol.lrmi.max-threads=1024" export GS_OPTIONS="$GS_OPTIONS -Dcom.gs.jini_lus.locators=${LOOKUPLOCATORS}" export GS_OPTIONS="$GS_OPTIONS -Dcom.sun.jini.reggie.initialUnicastDiscoveryPort=9007" export GS_OPTIONS="$GS_OPTIONS -Djava.rmi.server.hostname=hostname.zit.commerzbank.com"

export GSA_JAVA_OPTIONS="-Xms1g -Xmx1g" export GSC_JAVA_OPTIONS="-Xms2g -Xmx10g -XX:NewSize=384m -XX:MaxNewSize=384m" export GSM_JAVA_OPTIONS="-Xms1g -Xmx1g" export LUS_JAVA_OPTIONS="-Xms1g -Xmx1g" export GUI_JAVA_OPTIONS="-Xms1g -Xmx1g -Djava.util.logging.config.file=$GS_LOGGING_CONFIG_FILE" export WEBUI_JAVA_OPTIONS="-Xms2g -Xmx2g -Djava.util.logging.config.file=$GS_LOGGING_CONFIG_FILE"

export JAVA_OPTIONS=" -server -d64 -verbose:gc -XX:+PrintReferenceGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=8" export JAVA_OPTIONS="$JAVA_OPTIONS -XX:ParallelCMSThreads=2 -XX:+CMSIncrementalMode -XX:CMSIncrementalDutyCycleMin=5 -XX:+CMSIncrementalPacing" export JAVA_OPTIONS="$JAVA_OPTIONS -XX:MaxTenuringThreshold=8 -XX:SurvivorRatio=5 -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintHeapAtGC -XX:PrintCMSStatistics=1 -XX:+PrintTenuringDistribution" export JAVA_OPTIONS="$JAVA_OPTIONS -Dcom.gs.deploy=$GS_DEPLOY -Dcom.gs.work=$GS_WORK" export JAVA_OPTIONS="$JAVA_OPTIONS -Dcom.gs.logging.debug=true" export JAVA_OPTIONS="$JAVA_OPTIONS -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.JavaUtilLog" export JAVA_OPTIONS="$JAVA_OPTIONS -Dcom.gs.multicast.enabled=false -Dcom.gigaspaces.system.registryPort=9008 -Dcom.gigaspaces.start.httpPort=9009 -Dcom.gs.multicast.discoveryPort=9010"

export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.level=ALL" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.formatter=com.gigaspaces.logger.GSSimpleFormatter" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.size-rolling-policy=2000000" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.time-rolling-policy=weekly" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.backup-policy=com.gigaspaces.logger.NullBackupPolicy" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.append=false" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.debug-level=CONFIG"

when starting the gsm/gsc I use this additional configuration in the script:

DEF_EXT_JAVA="${EXT_JAVA_OPTIONS}" DEF_JAVA="${JAVA_OPTIONS}" if [[ "$zone" != "NoZone" ]]; then export EXT_JAVA_OPTIONS="-Dcom.gs.zones=$zone ${DEF_EXT_JAVA}" fi case $service in "gsm") date=date +%Y%m%d%H%M%S export EXT_JAVA_OPTIONS="$GS_OPTIONS ${EXT_JAVA_OPTIONS} -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern=/opt/primegate/log/XAP/${zone}/${service}_${date}_{pid}.log -Xloggc:/opt/primegate/log/XAP/${zone}/gc_${service}_${date}.log" export JAVA_OPTIONS="$JAVA_OPTIONS ${EXT_JAVA_OPTIONS}" gs-agent.sh gsa.global.lus 0 gsa.lus 1 gsa.global.gsm 0 gsa.gsm $nr_instances gsa.gsc 0 >> $GS_LOG/startup/gigaspaces-gsa-gsm-startup-date +%Y%m%d%H%M%S-$$.log & ;; "gsc") date=date +%Y%m%d%H%M%S export EXT_JAVA_OPTIONS="$GS_OPTIONS ${EXT_JAVA_OPTIONS} -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern=/opt/primegate/log/XAP/${zone}/${service}_${date}_{pid}.log -Xloggc:/opt/primegate/log/XAP/${zone}/gc_${service}_${date}.log" export JAVA_OPTIONS="$JAVA_OPTIONS ${EXT_JAVA_OPTIONS}" gs-agent.sh gsa.global.lus 0 gsa.lus 0 gsa.global.gsm 0 gsa.gsm 0 gsa.gsc $nr_instances >> $GS_LOG/startup/gigaspaces-gsa-gsc-startup-date +%Y%m%d%H%M%S-$$.log & ;; esac export EXT_JAVA_OPTIONS="${DEF_EXT_JAVA}" export JAVA_OPTIONS="${DEF_JAVA}"

gs-ui/gs-webui not showing gsc logs

We are running XAP 9.6.2.

I have reconfigured the logging path for all processes to a different location. Since the move of the logging path, the gsui and the gswebui are not showing the GS Container logs anymore.

Here is my configuration:

export JSHOMEDIR=$GS_HOME export NIC_ADDR=hostname.DOMAINNAME.com

export LOOKUPGROUPS="PRIMEGATE_PREL" LOOKUPGROUPS="PRODUCT_PREL" export LOOKUPLOCATORS="HOSTNAME.DOMAINNAME.com:9007"

export GS_LOGGING_CONFIG_FILE=${GS_HOME}/config/gs_logging.properties export GS_OPTIONS="-Dcom.gs.transport_protocol.lrmi.bind-port=9000-9006" export GS_OPTIONS="$GS_OPTIONS -Dcom.gs.transport_protocol.lrmi.max-threads=1024" export GS_OPTIONS="$GS_OPTIONS -Dcom.gs.jini_lus.locators=${LOOKUPLOCATORS}" export GS_OPTIONS="$GS_OPTIONS -Dcom.sun.jini.reggie.initialUnicastDiscoveryPort=9007" export GS_OPTIONS="$GS_OPTIONS -Djava.rmi.server.hostname=hostname.zit.commerzbank.com".zit.DOMAINNAME.com"

export GSA_JAVA_OPTIONS="-Xms1g -Xmx1g" export GSC_JAVA_OPTIONS="-Xms2g -Xmx10g -XX:NewSize=384m -XX:MaxNewSize=384m" export GSM_JAVA_OPTIONS="-Xms1g -Xmx1g" export LUS_JAVA_OPTIONS="-Xms1g -Xmx1g" export GUI_JAVA_OPTIONS="-Xms1g -Xmx1g -Djava.util.logging.config.file=$GS_LOGGING_CONFIG_FILE" export WEBUI_JAVA_OPTIONS="-Xms2g -Xmx2g -Djava.util.logging.config.file=$GS_LOGGING_CONFIG_FILE"

export JAVA_OPTIONS=" -server -d64 -verbose:gc -XX:+PrintReferenceGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=8" export JAVA_OPTIONS="$JAVA_OPTIONS -XX:ParallelCMSThreads=2 -XX:+CMSIncrementalMode -XX:CMSIncrementalDutyCycleMin=5 -XX:+CMSIncrementalPacing" export JAVA_OPTIONS="$JAVA_OPTIONS -XX:MaxTenuringThreshold=8 -XX:SurvivorRatio=5 -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintHeapAtGC -XX:PrintCMSStatistics=1 -XX:+PrintTenuringDistribution" export JAVA_OPTIONS="$JAVA_OPTIONS -Dcom.gs.deploy=$GS_DEPLOY -Dcom.gs.work=$GS_WORK" export JAVA_OPTIONS="$JAVA_OPTIONS -Dcom.gs.logging.debug=true" export JAVA_OPTIONS="$JAVA_OPTIONS -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.JavaUtilLog" export JAVA_OPTIONS="$JAVA_OPTIONS -Dcom.gs.multicast.enabled=false -Dcom.gigaspaces.system.registryPort=9008 -Dcom.gigaspaces.start.httpPort=9009 -Dcom.gs.multicast.discoveryPort=9010"

export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.level=ALL" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.formatter=com.gigaspaces.logger.GSSimpleFormatter" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.size-rolling-policy=2000000" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.time-rolling-policy=weekly" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.backup-policy=com.gigaspaces.logger.NullBackupPolicy" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.append=false" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.debug-level=CONFIG"

when starting the gsm/gsc I use this additional configuration in the script:

DEF_EXT_JAVA="${EXT_JAVA_OPTIONS}" DEF_JAVA="${JAVA_OPTIONS}" if [[ "$zone" != "NoZone" ]]; then export EXT_JAVA_OPTIONS="-Dcom.gs.zones=$zone ${DEF_EXT_JAVA}" fi case $service in "gsm") date=date +%Y%m%d%H%M%S export EXT_JAVA_OPTIONS="$GS_OPTIONS ${EXT_JAVA_OPTIONS} -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern=/opt/primegate/log/XAP/${zone}/${service}_${date}_{pid}.log -Xloggc:/opt/primegate/log/XAP/${zone}/gc_${service}_${date}.log"-Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern=/opt/PRODUCT/log/XAP/${zone}/${service}_${date}_{pid}.log -Xloggc:/opt/PRODUCT/log/XAP/${zone}/gc_${service}_${date}.log" export JAVA_OPTIONS="$JAVA_OPTIONS ${EXT_JAVA_OPTIONS}" gs-agent.sh gsa.global.lus 0 gsa.lus 1 gsa.global.gsm 0 gsa.gsm $nr_instances gsa.gsc 0 >> $GS_LOG/startup/gigaspaces-gsa-gsm-startup-date +%Y%m%d%H%M%S-$$.log & ;; "gsc") date=date +%Y%m%d%H%M%S export EXT_JAVA_OPTIONS="$GS_OPTIONS ${EXT_JAVA_OPTIONS} -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern=/opt/primegate/log/XAP/${zone}/${service}_${date}_{pid}.log -Xloggc:/opt/primegate/log/XAP/${zone}/gc_${service}_${date}.log"-Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern=/opt/PRODUCT/log/XAP/${zone}/${service}_${date}_{pid}.log -Xloggc:/opt/PRODUCT/log/XAP/${zone}/gc_${service}_${date}.log" export JAVA_OPTIONS="$JAVA_OPTIONS ${EXT_JAVA_OPTIONS}" gs-agent.sh gsa.global.lus 0 gsa.lus 0 gsa.global.gsm 0 gsa.gsm 0 gsa.gsc $nr_instances >> $GS_LOG/startup/gigaspaces-gsa-gsc-startup-date +%Y%m%d%H%M%S-$$.log & ;; esac export EXT_JAVA_OPTIONS="${DEF_EXT_JAVA}" export JAVA_OPTIONS="${DEF_JAVA}"

gs-ui/gs-webui not showing gsc logs

We are running XAP 9.6.2.

I have reconfigured the logging path for all processes to a different location. Since the move of the logging path, the gsui and the gswebui are not showing the GS Container logs anymore.

Here is my configuration:

export JSHOMEDIR=$GS_HOME
export NIC_ADDR=hostname.DOMAINNAME.com

NIC_ADDR=`hostname`.DOMAINNAME.com export LOOKUPGROUPS="PRODUCT_PREL" export LOOKUPLOCATORS="HOSTNAME.DOMAINNAME.com:9007"

LOOKUPLOCATORS="HOSTNAME.DOMAINNAME.com:9007" export GS_LOGGING_CONFIG_FILE=${GS_HOME}/config/gs_logging.properties export GS_OPTIONS="-Dcom.gs.transport_protocol.lrmi.bind-port=9000-9006" export GS_OPTIONS="$GS_OPTIONS -Dcom.gs.transport_protocol.lrmi.max-threads=1024" export GS_OPTIONS="$GS_OPTIONS -Dcom.gs.jini_lus.locators=${LOOKUPLOCATORS}" export GS_OPTIONS="$GS_OPTIONS -Dcom.sun.jini.reggie.initialUnicastDiscoveryPort=9007" export GS_OPTIONS="$GS_OPTIONS -Djava.rmi.server.hostname=hostname.zit.DOMAINNAME.com"

-Djava.rmi.server.hostname=`hostname`.zit.DOMAINNAME.com" export GSA_JAVA_OPTIONS="-Xms1g -Xmx1g" export GSC_JAVA_OPTIONS="-Xms2g -Xmx10g -XX:NewSize=384m -XX:MaxNewSize=384m" export GSM_JAVA_OPTIONS="-Xms1g -Xmx1g" export LUS_JAVA_OPTIONS="-Xms1g -Xmx1g" export GUI_JAVA_OPTIONS="-Xms1g -Xmx1g -Djava.util.logging.config.file=$GS_LOGGING_CONFIG_FILE" export WEBUI_JAVA_OPTIONS="-Xms2g -Xmx2g -Djava.util.logging.config.file=$GS_LOGGING_CONFIG_FILE"

-Djava.util.logging.config.file=$GS_LOGGING_CONFIG_FILE" export JAVA_OPTIONS=" -server -d64 -verbose:gc -XX:+PrintReferenceGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ParallelGCThreads=8" export JAVA_OPTIONS="$JAVA_OPTIONS -XX:ParallelCMSThreads=2 -XX:+CMSIncrementalMode -XX:CMSIncrementalDutyCycleMin=5 -XX:+CMSIncrementalPacing" export JAVA_OPTIONS="$JAVA_OPTIONS -XX:MaxTenuringThreshold=8 -XX:SurvivorRatio=5 -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintHeapAtGC -XX:PrintCMSStatistics=1 -XX:+PrintTenuringDistribution" export JAVA_OPTIONS="$JAVA_OPTIONS -Dcom.gs.deploy=$GS_DEPLOY -Dcom.gs.work=$GS_WORK" export JAVA_OPTIONS="$JAVA_OPTIONS -Dcom.gs.logging.debug=true" export JAVA_OPTIONS="$JAVA_OPTIONS -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.JavaUtilLog" export JAVA_OPTIONS="$JAVA_OPTIONS -Dcom.gs.multicast.enabled=false -Dcom.gigaspaces.system.registryPort=9008 -Dcom.gigaspaces.start.httpPort=9009 -Dcom.gs.multicast.discoveryPort=9010"

-Dcom.gs.multicast.discoveryPort=9010" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.level=ALL" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.formatter=com.gigaspaces.logger.GSSimpleFormatter" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.size-rolling-policy=2000000" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.time-rolling-policy=weekly" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.backup-policy=com.gigaspaces.logger.NullBackupPolicy" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.append=false" export EXT_JAVA_OPTIONS="$EXT_JAVA_OPTIONS -Dcom.gigaspaces.logger.RollingFileHandler.debug-level=CONFIG"

-Dcom.gigaspaces.logger.RollingFileHandler.debug-level=CONFIG"

when starting the gsm/gsc I use this additional configuration in the script:

DEF_EXT_JAVA="${EXT_JAVA_OPTIONS}"
DEF_JAVA="${JAVA_OPTIONS}"
if [[ "$zone"  != "NoZone" ]]; then
   export EXT_JAVA_OPTIONS="-Dcom.gs.zones=$zone ${DEF_EXT_JAVA}"
fi
case $service in
  "gsm")
    date=date +%Y%m%d%H%M%S date=`date +%Y%m%d%H%M%S`
    export EXT_JAVA_OPTIONS="$GS_OPTIONS ${EXT_JAVA_OPTIONS} -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern=/opt/PRODUCT/log/XAP/${zone}/${service}_${date}_{pid}.log -Xloggc:/opt/PRODUCT/log/XAP/${zone}/gc_${service}_${date}.log" -Xloggc:/opt/PRODUCT/log/XAP/${zone}/gc_${service}_${date}.log"
    export JAVA_OPTIONS="$JAVA_OPTIONS ${EXT_JAVA_OPTIONS}"
    gs-agent.sh gsa.global.lus 0 gsa.lus 1 gsa.global.gsm 0 gsa.gsm $nr_instances gsa.gsc 0 >> $GS_LOG/startup/gigaspaces-gsa-gsm-startup-date +%Y%m%d%H%M%S-$$.log $GS_LOG/startup/gigaspaces-gsa-gsm-startup-`date +%Y%m%d%H%M%S`-$$.log &
    ;;
    "gsc")
         date=date +%Y%m%d%H%M%S date=`date +%Y%m%d%H%M%S`
         export EXT_JAVA_OPTIONS="$GS_OPTIONS ${EXT_JAVA_OPTIONS} -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern=/opt/PRODUCT/log/XAP/${zone}/${service}_${date}_{pid}.log -Xloggc:/opt/PRODUCT/log/XAP/${zone}/gc_${service}_${date}.log" -Xloggc:/opt/PRODUCT/log/XAP/${zone}/gc_${service}_${date}.log"
         export JAVA_OPTIONS="$JAVA_OPTIONS ${EXT_JAVA_OPTIONS}"
         gs-agent.sh gsa.global.lus 0 gsa.lus 0 gsa.global.gsm 0 gsa.gsm 0 gsa.gsc $nr_instances >> $GS_LOG/startup/gigaspaces-gsa-gsc-startup-date +%Y%m%d%H%M%S-$$.log $GS_LOG/startup/gigaspaces-gsa-gsc-startup-`date +%Y%m%d%H%M%S`-$$.log &
      ;;
esac
export EXT_JAVA_OPTIONS="${DEF_EXT_JAVA}"
export JAVA_OPTIONS="${DEF_JAVA}"

JAVA_OPTIONS="${DEF_JAVA}"