You are here: Tuning > Runtime Statistics > Monitor Network

Monitor Network

You can monitor the network-operations of db4o in client-server mode.

Configure the Network Monitoring Support

First you need to add the monitoring support to the db4o configuration. The network monitoring support is in two separate configuration-items. The NetworkingMonitoringSupport can be used on the server and client to monitor the network statistics.

configuration.Common.Add(new NetworkingMonitoringSupport());
CSMonitoring.cs: Add the network monitoring support
configuration.Common.Add(New NetworkingMonitoringSupport())
CSMonitoring.vb: Add the network monitoring support

The ClientConnectionsMonitoringSupport can be added to the db4o server to monitor the connected clients.

configuration.AddConfigurationItem(new ClientConnectionsMonitoringSupport());
CSMonitoring.cs: Add the client connections monitoring support
configuration.AddConfigurationItem(New ClientConnectionsMonitoringSupport())
CSMonitoring.vb: Add the client connections monitoring support

The Network Statistics

network bytes sent/sec: Tells you how many bytes this client or server has receives per second.

network bytes received/sec: Tells you how many bytes this client or server sends per second.

network messages sent/sec: Tells you how many messages this client or server sends per second.

number of connected clients: Tells you how many clients are connected to this server.