Attributes in

A variety of settings can be used when a native client connects to a distributed system.

The following settings can be configured:

Attribute Definitions

The following tables list GemFire configuration attributes that can be stored in the file to be read by a native client.

For the system properties that relate to high availability, see Sending Periodic Acknowledgement. For a list of security-related system properties and their descriptions, see the table System Properties for Client Authentication and Authorization.

Table 1. Attributes in General Properties Attribute Description Default
appdomain-enabled If true , allows native client to work when multiple .NET appdomains are in use. false
cache-xml-file Name and path of the file whose contents are used by default to initialize a cache if one is created. If not specified, the native client starts with an empty cache, which is populated at runtime.

See Cache Initialization File for more information on the cache initialization file.

no default
heap-lru-delta When heap LRU is triggered, this is the amount that gets added to the percentage that is above the heap-lru-limit amount. LRU continues until the memory usage is below heap-lru-limit minus this percentage. This property is only used if heap-lru-limit is greater than 0 . 10
heap-lru-limit Maximum amount of memory, in megabytes, used by the cache for all regions. If this limit is exceeded by heap-lru-delta percent, LRU reduces the memory footprint as necessary. If not specified, or set to 0 , memory usage is governed by each region's LRU entries limit, if any. 0
conflate-events Client side conflation setting, which is sent to the server. server
connect-timeout Amount of time (in seconds) to wait for a response after a socket connection attempt. 59
connection-pool-size Number of connections per endpoint 5
crash-dump-enabled Whether crash dump generation for unhandled fatal errors is enabled. True is enabled, false otherwise. true
disable-chunk-handler-thread When set to false, each application thread processes its own response. If set to true, the chunk-handler-thread processes the response for each application thread. false
disable-shuffling-of-endpoints If true, prevents server endpoints that are configured in pools from being shuffled before use. false
grid-client If true, the client does not start various internal threads, so that startup and shutdown time is reduced. false
max-fe-threads Thread pool size for parallel function execution. An example of this is the GetAll operations. 2 * number of CPU cores
max-socket-buffer-size Maximum size of the socket buffers, in bytes, that the native client will try to set for client-server connections. 65 * 1024
notify-ack-interval Interval, in seconds, in which client sends acknowledgments for subscription notifications. 1
notify-dupcheck-life Amount of time, in seconds, the client tracks subscription notifications before dropping the duplicates. 300
ping-interval Interval, in seconds, between communication attempts with the server to show the client is alive. Pings are only sent when the ping-interval elapses between normal client messages. This must be set lower than the server's maximum-time-between-pings. 10
redundancy-monitor-interval Interval, in seconds, at which the subscription HA maintenance thread checks for the configured redundancy of subscription servers. 10
stacktrace-enabled If true, the exception classes capture a stack trace that can be printed with their printStackTrace function. If false , the function prints a message that the trace is unavailable. false
tombstone-timeout Time in milliseconds used to timeout tombstone entries when region consistency checking is enabled.
Note: Do not modify this property unless instructed by technical support.
Table 2. Attributes in Logging Properties Attribute Description Default
log-disk-space-limit Maximum amount of disk space, in megabytes, allowed for all log files, current, and rolled. If set to 0 , the space is unlimited. 0
log-file Name and full path of the file where a running client writes log messages. If not specified, logging goes to stdout. no default file
log-file-size-limit Maximum size, in megabytes, of a single log file. Once this limit is exceeded, a new log file is created and the current log file becomes inactive. If set to 0 , the file size is unlimited. 0
log-level Controls the types of messages that are written to the application's log. These are the levels, in descending order of severity and the types of message they provide:
  • Error (highest severity) is a serious failure that will probably prevent program execution.
  • Warning is a potential problem in the system.
  • Info is an informational message of interest to the end user and system administrator.
  • Config is a static configuration message, often used to debug problems with particular configurations.
  • Fine, Finer, Finest, and Debug provide tracing information. Only use these with guidance from technical support.

Enabling logging at any level enables logging for all higher levels.

Table 3. Attributes in Statistics Archiving Properties Attribute Description Default
statistic-sampling-enabled Controls whether the process creates a statistic archive file. true
statistic-archive-file Name and full path of the file where a running system member writes archives statistics. If archive-disk-space-limit is not set, the native client appends the process ID to the configured file name, like statArchive-PID.gfs. If the space limit is set, the process ID is not appended but each rolled file name is renamed to statArchive-ID.gfs , where ID is the rolled number of the file. ./statArchive.gfs
archive-disk-space-limit Maximum amount of disk space, in megabytes, allowed for all archive files, current, and rolled. If set to 0 , the space is unlimited. 0
archive-file-size-limit Maximum size, in bytes, of a single statistic archive file. Once this limit is exceeded, a new statistic archive file is created and the current archive file becomes inactive. If set to 0 , the file size is unlimited. 0
statistic-sample-rate Rate, in seconds, that statistics are sampled. Operating system statistics are updated only when a sample is taken. If statistic archival is enabled, then these samples are written to the archive.

Lowering the sample rate for statistics reduces system resource use while still providing some statistics for system tuning and failure analysis.

You can view archived statistics with the optional VSD utility.

enable-time-statistics Enables time-based statistics for the distributed system and caching. For performance reasons, time-based statistics are disabled by default. See System Statistics. false
Table 4. Attributes in Durable Client Properties Attribute Description Default
auto-ready-for-events Whether client subscriptions automatically receive events when declaratively configured via XML. If set to false , event startup is not automatic and you need to call the Cache.ReadyForEvents() method API after subscriptions for the server to start delivering events. true
durable-client-id Identifier to specify if you want the client to be durable. empty
durable-timeout Time , in seconds, a durable client's subscription is maintained when it is not connected to the server before being dropped. 300
Table 5. Attributes in Security Properties Attribute Description Default
security-client-dhalgo Diffie-Hellman secret key algorithm. null
security-client-kspath keystore (.pem file ) path. null
security-client-auth-factory Factory method for the security AuthInitialize module. empty
security-client-auth-library Path to the client security library for the AuthInitialize module. empty
ssl-keystore-password Keystore password. null