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

Ask Your Question
0

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="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.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/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/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}"

asked 2014-02-26 11:57:37 -0600

C45p31 gravatar image

updated 2014-02-26 12:01:46 -0600

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
0

Hi, Did you configure -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern.homedir ? In order to relocate the logs? Did you run ui with this setting as well?

Regards, Ester.

answered 2014-02-27 06:20:15 -0600

Ester gravatar image
edit flag offensive delete link more

Comments

Hi Ester,

Thank you for the tip.

I have tried to set it, on the gs-web-ui, but nothing.

I can see the gsa logs, but not the logs of the gsc, gsm or my application logs.

Here is the full startup line for the gs-webui: /opt/PRODUCT/local/i386/SunOS-5.10/jdk1.7/bin/java -server -showversion -XX:+AggressiveOpts -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xms2g -Djava.util.logging.config.file=/opt/PRODUCT/XAP/config/gs_logging.properties -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern.homedir=/opt/PRODUCT/log/XAP/NoZone -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern=/opt/PRODUCT/log/XAP/NoZone/gs-webui_20140227154752_{pid}.log -Xloggc:/opt/PRODUCT/log/XAP/NoZone/gc_gs-webui_20140227154752_{pid}.log -Dsun.rmi.dgc.client.gcInterval=36000000 -Dsun.rmi.dgc.server.gcInterval=36000000 -Djava.rmi.server.hostname=HOSTNAME.zit.DOMAINNAME.com -Djava.rmi.server.RMIClassLoaderSpi=default -Djava.rmi.server.logCalls=false -Dcom.gs.jini_lus.locators=HOSTNAME.zit.DOMAINNAME.com:9007 -Dcom.gs.jini_lus.groups=LUS_GROUP -Djava.security.policy=/opt/PRODUCT/XAP/policy/policy.all -Dcom.gigaspaces.logger.RollingFileHandler.time-rolling-policy=monthly -Dcom.gs.home=/opt/PRODUCT/XAP -classpath :/opt/PRODUCT/XAP/lib/platform/ext/:/opt/PRODUCT/XAP:/opt/PRODUCT/XAP:/opt/PRODUCT/XAP/lib/required/:/opt/PRODUCT/XAP/lib/optional/pu-common/:/opt/PRODUCT/XAP/lib/optional/spring/:/opt/PRODUCT/XAP/lib/optional/security/:/opt/PRODUCT/XAP/lib/platform/ext/:/opt/PRODUCT/XAP/lib/platform/jetty/*:/opt/PRODUCT/XAP/lib/platform/commons/commons-collections-3.2.jar:/opt/PRODUCT/XAP/lib/platform/commons/commons-lang-2.3.jar: org.openspaces.launcher.Launcher -name webui -path /opt/PRODUCT/XAP/tools/gs-webui/gs-webui-9.6.2-9900-RELEASE.war -work /opt/PRODUCT/XAP/tools/gs-webui/work -port 8099

In the above, the gs {zone} is represented by “NoZone”

Thank you. Andrei

C45p31 gravatar imageC45p31 ( 2014-02-27 08:59:03 -0600 )edit

Please have a look at gs-ui log,any errors there? Did you change log name as well?Does it pattern still include pid? You can run the gs-ui with console by changing the gs-ui.bat set COMMAND=%JAVAWCMD% .... change to set COMMAND=%JAVACMD% ....

Ester gravatar imageEster ( 2014-02-27 09:22:30 -0600 )edit

No Errors in the log file.

I also changed the log file names to match our internal standards, plus characters like “~” are a little unusual in the log file names.

The log file name patern is =/opt/PRODUCT/log/XAP/${zone}/${service}_${date}_{pid}.log which translates into =/opt/PRODUCT/log/XAP/{gsc|gsm|gsa|NoZone}/APP_NAME_${date}_{pid}.log

The UI is started from the server running the gs components and opened via an x server emulator as the gs is running on Unix env.

The gs-ui is started using java not javaw.

Also, the gs-ui is jps is: 1160 com.gigaspaces.admin.ui.MainUI config/tools/adminui.config

I haven’t managed to find anywhere on the filesystem the file adminui.config.

Here is the gs-ui startup command:

/opt/PRODUCT/local/i386/SunOS-5.10/jdk1.7/bin/java -server -showversion -XX:+AggressiveOpts -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Dcom.gigaspaces.logger.RollingFileHandler.level=ALL -Dcom.gigaspaces.logger.RollingFileHandler.formatter=com.gigaspaces.logger.GSSimpleFormatter -Dcom.gigaspaces.logger.RollingFileHandler.size-rolling-policy=2000000 -Dcom.gigaspaces.logger.RollingFileHandler.time-rolling-policy=weekly -Dcom.gigaspaces.logger.RollingFileHandler.backup-policy=com.gigaspaces.logger.NullBackupPolicy -Dcom.gigaspaces.logger.RollingFileHandler.append=false -Dcom.gigaspaces.logger.RollingFileHandler.debug-level=CONFIG -Xms1g -Xmx1g -Djava.util.logging.config.file=/opt/PRODUCT/XAP/config/gs_logging.properties -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern.homedir=/opt/PRODUCT/log/XAP/NoZone -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern=/opt/PRODUCT/log/XAP/NoZone/gs-ui_20140227165033_{pid}.log -Xloggc:/opt/PRODUCT/log/XAP/NoZone/gc_gs-ui_20140227165033_{pid}.log -Xbootclasspath/p:/opt/PRODUCT/XAP/lib/platform/xml/* -cp :/opt/PRODUCT/XAP:/opt/PRODUCT/XAP/lib/platform/ui/:/opt/PRODUCT/XAP/lib/platform/poi/::/opt/PRODUCT/XAP/lib/platform/ext/:/opt/PRODUCT/XAP:/opt/PRODUCT/XAP:/opt/PRODUCT/XAP/lib/required/:/opt/PRODUCT/XAP/lib/optional/pu-common/:/opt/PRODUCT/XAP/lib/optional/spring/:/opt/PRODUCT/XAP/lib/optional/security/*: -Dsun.rmi.dgc.client.gcInterval=36000000 -Dsun.rmi.dgc.server.gcInterval=36000000 -Djava.rmi.server.hostname=HOSTNAME.zit.DOMAINNAME.com -Djava.rmi.server.RMIClassLoaderSpi=default -Djava.rmi.server.logCalls=false -Dcom.gs.env.report=false -Dcom.gs.jini.useDefinedGroupOnly=false -Dcom.gs.browser.containername=mySpace_container -Dcom.gs.logging.debug=true -Dcom.gs.embeddedQP.enabled=true -Djava.protocol.handler.pkgs=net.jini.url -Djava.util.logging.config.file=/opt/PRODUCT/XAP/config/gs_logging.properties -Dcom.gs.jini_lus.groups=PRODUCT_PREL -Dcom.gs.jini_lus.locators=HOSTNAME.zit.DOMAINNAME.com:9007 com.gigaspaces.admin.ui.MainUI config/tools/adminui.config

Here is the output:

      Starting GigaSpaces Management Center:

      /opt/PRODUCT/local/i386/SunOS-5.10/jdk1.7/bin/java -server -showversion -XX:+AggressiveOpts -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Dcom.gigaspaces.logger.RollingFileHandler.level=ALL -Dcom.gigaspaces.logger.RollingFileHandler.formatter=com.gigaspaces.logger.GSSimpleFormatter -Dcom.gigaspaces.logger.RollingFileHandler.size-rolling-policy=2000000 -Dcom.gigaspaces.logger.RollingFileHandler.time-rolling-policy=weekly -Dcom.gigaspaces.logger.RollingFileHandler.backup-policy=com.gigaspaces.logger.NullBackupPolicy -Dcom.gigaspaces.logger.RollingFileHandler.append=false -Dcom.gigaspaces.logger.RollingFileHandler.debug-level=CONFIG -Xms1g -Xmx1g -Djava.util.logging.config.file=/opt/PRODUCT/XAP/config/gs_logging.properties -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern.homedir=/opt/PRODUCT/log/XAP/NoZone ...
(more)
C45p31 gravatar imageC45p31 ( 2014-02-27 09:55:29 -0600 )edit

without pid the ui will not be able to show the log,please make sure that log file name include pid property.

Ester gravatar imageEster ( 2014-03-03 06:38:29 -0600 )edit

I suggest you try default log file name pattern,and see if it works fine with that pattern.

Ester gravatar imageEster ( 2014-03-03 06:43:36 -0600 )edit
0

Hi Ester,

I have just tried it on the gs-webui, but still I can't see the gsc logs.

I can see the gsa logs, but no logs of the gsc, gsm or my application.

here is the full startup line of the gs-webui:

/opt/PRODUCT/local/i386/SunOS-5.10/jdk1.7/bin/java -server -showversion -XX:+AggressiveOpts -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xms2g -Djava.util.logging.config.file=/opt/PRODUCT/XAP/config/gs_logging.properties -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern.homedir=/opt/PRODUCT/log/XAP/NoZone -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern=/opt/PRODUCT/log/XAP/NoZone/gs-webui_20140227154752_{pid}.log -Xloggc:/opt/PRODUCT/log/XAP/NoZone/gc_gs-webui_20140227154752_{pid}.log -Dsun.rmi.dgc.client.gcInterval=36000000 -Dsun.rmi.dgc.server.gcInterval=36000000 -Djava.rmi.server.hostname=HOSTNAME.zit.DOMAINNAME.com -Djava.rmi.server.RMIClassLoaderSpi=default -Djava.rmi.server.logCalls=false -Dcom.gs.jini_lus.locators=HOSTNAME.zit.DOMAINNAME.com:9007 -Dcom.gs.jini_lus.groups=LUS_GROUP -Djava.security.policy=/opt/PRODUCT/XAP/policy/policy.all -Dcom.gigaspaces.logger.RollingFileHandler.time-rolling-policy=monthly -Dcom.gs.home=/opt/PRODUCT/XAP -classpath :/opt/PRODUCT/XAP/lib/platform/ext/*:/opt/PRODUCT/XAP:/opt/PRODUCT/XAP:/opt/PRODUCT/XAP/lib/required/*:/opt/PRODUCT/XAP/lib/optional/pu-common/*:/opt/PRODUCT/XAP/lib/optional/spring/*:/opt/PRODUCT/XAP/lib/optional/security/*:/opt/PRODUCT/XAP/lib/platform/ext/*:/opt/PRODUCT/XAP/lib/platform/jetty/*:/opt/PRODUCT/XAP/lib/platform/commons/commons-collections-3.2.jar:/opt/PRODUCT/XAP/lib/platform/commons/commons-lang-2.3.jar: org.openspaces.launcher.Launcher -name webui -path /opt/PRODUCT/XAP/tools/gs-webui/gs-webui-9.6.2-9900-RELEASE.war -work /opt/PRODUCT/XAP/tools/gs-webui/work -port 8099

answered 2014-02-27 09:57:05 -0600

C45p31 gravatar image
edit flag offensive delete link more

Comments

Hi. Can you please attach one of the gsc logs? Can you submit a case in GigaSpaces support portal regarding this issue,and we will continue there?

Thanks, Ester.

Ester gravatar imageEster ( 2014-03-04 02:38:00 -0600 )edit

Hi Esterr,

It got solved, as I answered directly on the web.

The log file of the gsc should end with –PID.log not with _PID.log as I configured it.

It looks like there is a dependency on the “-” character before the PID.

Thank you.

Regards, Andrei

C45p31 gravatar imageC45p31 ( 2014-03-04 11:33:43 -0600 )edit
0

It look like the problem is here:

-Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern.homedir=/opt/PRODUCT/log/XAP/NoZone -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern=/opt/PRODUCT/log/XAP/NoZone/gs-webui_20140227154752_{pid}.log

This has to be:

-Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern.homedir=/opt/PRODUCT/log/XAP/NoZone -Dcom.gigaspaces.logger.RollingFileHandler.filename-pattern=/opt/PRODUCT/log/XAP/NoZone/gs-webui_20140227154752-{pid}.log

if the log file is like whatever_{pid}.log will not be found. if it is whatever-{pid}.log it will be found

answered 2014-03-04 04:51:07 -0600

C45p31 gravatar image
edit flag offensive delete link more

Comments

the "_" issue will be fixed in 10.0 version,But recall to include in the file name pattern both {pid} and {service}.

Ester gravatar imageEster ( 2014-03-06 00:23:54 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-02-26 11:57:37 -0600

Seen: 600 times

Last updated: Mar 04 '14