public class GfxdAgentLauncher extends GfxdServerLauncher
GfxdServerLauncher for GemFireXD that is responsible
for administering a stand-alone GemFireXD JMX Agent.bootProps, DEFAULT_HEAPSIZE_GB, DEFAULT_HEAPSIZE_SMALL_GB, HEAP_SIZE, INITIAL_HEAP, jvmVendor, LWC_BIND_ADDRESS_ARG, LWC_PORT_ARG, MAX_HEAP, OFF_HEAP_SIZE, processedDefaultGCParams, RUN_NETSERVER, THRIFT_SERVER_ADDRESS, THRIFT_SERVER_PORT, WAIT_FOR_SYNC, waitForDataASSIGN_BUCKETS, baseName, CLASSPATH, CRITICAL_HEAP_PERCENTAGE, CRITICAL_OFF_HEAP_PERCENTAGE, defaultLogFileName, DIR, DISABLE_DEFAULT_SERVER, disableDefaultServer, DONT_EXIT_AFTER_LAUNCH, ENVARGS, EVICTION_HEAP_PERCENTAGE, EVICTION_OFF_HEAP_PERCENTAGE, initialHeapSize, instance, isDedicatedCacheServer, LOCK_MEMORY, logger, MAX_PERM_DEFAULT, MAX_PERM_SIZE, maxHeapSize, maxPermGenSize, offHeapSize, oldErr, oldOut, pidFileName, PROPERTIES, REBALANCE, RUNNING, SERVER_BIND_ADDRESS, SERVER_PORT, serverBindAddress, serverPort, SHUTDOWN, SHUTDOWN_PENDING, SHUTDOWN_WAIT_TIME, STANDBY, STARTING, startLogFileName, status, STATUS_WAIT_TIME, statusName, useThriftServerDefault, VMARGS, WAITING, workingDir| Constructor and Description |
|---|
GfxdAgentLauncher(String baseName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToServerCommand(List<String> cmds,
Map<String,Object> options) |
protected String |
getBaseName(String name) |
protected com.pivotal.gemfirexd.FabricAgent |
getFabricServiceInstance() |
protected String |
getLWCAddressArgName() |
protected String |
getLWCPortArgName() |
protected Map<String,Object> |
getServerOptions(String[] args) |
protected void |
listAddOnArgs(boolean startsWithGemfire,
boolean startsWithGemfirexd,
boolean isPrefixHyphen) |
static void |
main(String[] args)
Bootstrap method to launch the GemFireXD JMX Agent process to monitor and
manage a GemFireXD Distributed System.
|
protected List<String> |
postProcessOptions(List<String> incomingVMArgs,
Map<String,Object> map)
if
heap-size is mentioned in the
startup arguments and started within Sun JVM, following GC options are
enabled by the script. |
protected boolean |
printLaunchCommand() |
protected void |
printStartMessage(Map<String,Object> options,
Properties props,
int pid) |
protected void |
processStartOption(String key,
String value,
Map<String,Object> m,
List<String> vmArgs,
Map<String,String> envArgs,
Properties props) |
protected void |
redirectOutputToLogFile(com.gemstone.gemfire.distributed.internal.InternalDistributedSystem system) |
protected boolean |
setDefaultHeapSize() |
protected void |
startAdditionalServices(com.gemstone.gemfire.cache.Cache cache,
Map<String,Object> options,
Properties props) |
protected void |
startRebalanceFactory(com.gemstone.gemfire.cache.Cache cache,
Map<String,Object> options) |
protected void |
startServerVM(Properties props)
do the actual startup of the GemFireXD VM
|
protected void |
usage()
Prints usage information of this program.
|
checkStatusForWait, connect, createCache, disconnect, getGFEPropNames, getThriftAddressArgName, getThriftPortArgName, logSevere, logWarning, printCommandLine, printCommandLine, printDiscoverySettings, printUsage, processProperties, processServerEnv, processStartArg, processUnknownStartOption, readPassword, run, setRunningStatus, setWaitingStatus, stopAdditionalServicescreateStatus, createStatus, getCriticalHeapPercent, getCriticalOffHeapPercent, getCurrentInstance, getDisableDefaultServer, getEvictionHeapPercent, getEvictionOffHeapPercent, getLogFilePath, getProcessId, getServerBindAddress, getServerPort, getStartOptions, getStatus, getStopOptions, isExistingProcess, isLoggingToStdOut, makeDaemon, pollCacheServerForShutdown, processDirOption, readStatus, restoreStdOut, running, server, setServerError, spinReadStatus, start, status, stop, waitForRunning, waitForRunning, writeStatuspublic GfxdAgentLauncher(String baseName)
protected void usage()
throws IOException
usage in class GfxdServerLauncherIOExceptionprotected final com.pivotal.gemfirexd.FabricAgent getFabricServiceInstance()
throws Exception
getFabricServiceInstance in class GfxdServerLauncherExceptionprotected void startServerVM(Properties props) throws Exception
GfxdServerLauncherstartServerVM in class GfxdServerLauncherExceptionprotected boolean setDefaultHeapSize()
setDefaultHeapSize in class GfxdServerLauncherprotected void processStartOption(String key, String value, Map<String,Object> m, List<String> vmArgs, Map<String,String> envArgs, Properties props) throws Exception
processStartOption in class GfxdServerLauncherExceptionprotected List<String> postProcessOptions(List<String> incomingVMArgs, Map<String,Object> map)
GfxdServerLauncher
if heap-size is mentioned in the
startup arguments and started within Sun JVM, following GC options are
enabled by the script.
UseParNewGC)UseConcMarkSweepGC)CMSInitiatingOccupancyFraction) from
default 68% to 50%.On frequent full garbage collections with above options consider following GC options.
For beyond 1 GB of physical memory and initial-heap/max-heap padding is enough consider additional options.
MaxNewSize=24mNewSize=24mCMSParallelRemarkEnabled
postProcessOptions in class GfxdServerLauncherincomingVMArgs - vm argument list.map - additional server arguments of command builder.protected String getLWCAddressArgName()
getLWCAddressArgName in class GfxdServerLauncherprotected String getLWCPortArgName()
getLWCPortArgName in class GfxdServerLauncherprotected void startAdditionalServices(com.gemstone.gemfire.cache.Cache cache,
Map<String,Object> options,
Properties props)
throws Exception
startAdditionalServices in class GfxdServerLauncherExceptionCacheServerLauncher.startAdditionalServices(com.gemstone.gemfire.cache.Cache, java.util.Map<java.lang.String, java.lang.Object>, java.util.Properties)protected void redirectOutputToLogFile(com.gemstone.gemfire.distributed.internal.InternalDistributedSystem system)
throws Exception
redirectOutputToLogFile in class com.gemstone.gemfire.internal.cache.CacheServerLauncherExceptionpublic static void main(String[] args)
protected String getBaseName(String name)
getBaseName in class GfxdServerLauncherprotected void addToServerCommand(List<String> cmds, Map<String,Object> options)
addToServerCommand in class GfxdServerLauncherCacheServerLauncher.addToServerCommand(java.util.List<java.lang.String>, java.util.Map<java.lang.String, java.lang.Object>)protected void printStartMessage(Map<String,Object> options, Properties props, int pid) throws Exception
printStartMessage in class GfxdServerLauncherExceptionprotected Map<String,Object> getServerOptions(String[] args) throws Exception
getServerOptions in class com.gemstone.gemfire.internal.cache.CacheServerLauncherExceptionprotected void startRebalanceFactory(com.gemstone.gemfire.cache.Cache cache,
Map<String,Object> options)
startRebalanceFactory in class com.gemstone.gemfire.internal.cache.CacheServerLauncherprotected boolean printLaunchCommand()
printLaunchCommand in class GfxdServerLauncherprotected void listAddOnArgs(boolean startsWithGemfire,
boolean startsWithGemfirexd,
boolean isPrefixHyphen)
listAddOnArgs in class GfxdServerLauncherCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.