You are here: Tuning > Runtime Statistics > Monitor Object Lifecycle

Monitor Object Lifecycle

You can monitor the object lifecycle statistics of db4o to find out more about the runtime behavior of your application.

Configure the Object Lifecycle Monitoring Support

In order to monitor the object lifecycle statistics, you need to add the monitoring support to the configuration.

configuration.Common.Add(new ObjectLifecycleMonitoringSupport());
ObjectLifecycleMonitoring.cs: Monitor the object lifecycle statistics
configuration.Common.Add(New ObjectLifecycleMonitoringSupport())
ObjectLifecycleMonitoring.vb: Monitor the object lifecycle statistics

The Object Lifecycle Statistics

objects activated/sec: Tells you how many objects are activated per second. Activation can consume a lot of time for complex object graphs. If there's a lot of time spend with activating objects, you may want to reduce the amount of activated objects. One of the best way to activate only the minimum set of objects is to use transparent activation.

objects deactivated/sec: Tells you how many objects are deactivate per second.

objects deleted/sec: Tells you how many objects are deleted per second.

objects stored/sec: Tells you how many objects are stored per second.