 
derby.drda.keepAlive property
Derby Server and Administration Guide
35
Properties in the command line or in the 
.bat 
or 
.ksh
 files take precedence over the
properties in the 
derby.properties
 file. Arguments included on commands that are
issued on the command line take precedence over property values.
derby.drda.host property
Causes the Network Server to listen on a specific network interface. This property allows
multiple instances of Network Server to run on a single machine, each using its own
unique host:port combination. The host needs to be set to enable remote connections. By
default, the Network Server will listen only on the loopback address. If the property is set
to 0.0.0.0, Network Server will listen on all interfaces. Ensure that you are running under
the security manager and that user authorization is enabled before you enable remote
connections with this property.
Syntax
derby.drda.host=hostname
Default
If no host name is specified, the Network Server listens on the loopback address of the
current machine (localhost).
Example
derby.drda.host=myhost
Static or dynamic
Static. You must restart the Network Server for changes to take effect.
derby.drda.keepAlive property
Indicates whether SO_KEEPALIVE is enabled on sockets. The keepAlive mechanism
is used to detect when clients disconnect unexpectedly. A keepalive probe is sent to
the client if a long time (by default, more than two hours) passes with no other data
being sent or received. The derby.drda.keepAlive property is used to detect and clean
up connections for clients on powered-off machines or clients that have disconnected
unexpectedly.
If the property is set to false, Derby will not attempt to clean up disconnected clients.
The keepAlive mechanism might be disabled if clients need to resume work without
reconnecting even after being disconnected from the network for some time. To disable
keepAlive probes on Network Server connections, set this property to false.
Syntax
derby.drda.keepAlive=[true|false] 
Default
True.
Example
derby.drdra.keepAlive=false 
Static or dynamic
Static. You must restart the Network Server for changes to take effect.
derby.drda.logConnections property
Indicates whether to log connections. Also controls the logging of the connection number.
Connection number tracing, if enabled, goes to both the 
derby.log
 file and the network
server console.