getLockContentionStats(oa: ObjectArray input; maxEntries: Integer; minContentions: Integer; startTime: TimeStamp output);
The
The value of the maxEntries parameter specifies the maximum number of entries to be returned. Returned entries are added to the array in no particular order. When the maxEntries limit is reached, no more entries are added.
The value of the minContentions parameter specifies the minimum number of contentions for entries to be returned. Only entries with contention counts greater than or equal to the specified minimum are returned.
The startTime parameter is an output parameter that is set to the time at which the lock contention recording was started or restarted. This value enables you to calculate the number of contentions per second.
The calling method is responsible for creating and deleting the transient
If lock contentions are not being recorded when the
The information available in LockContentionInfo instances is listed in the following table.
Feature | Description |
---|---|
|
Returns a reference to the object being locked |
|
Contains the number of lock contentions recorded for the object |
|
Contains the longest time in milliseconds that any process spent queued waiting to obtain a lock on the object |
|
Contains the total time in milliseconds that all processes spent queued waiting to obtain locks on the object |
A