Nap Time (-nap)
- Last Updated: January 16, 2025
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Use Nap Time (-nap) to specify the initial
length of time to nap in milliseconds. A nap occurs at the first -spin exhaustion when trying to acquire a latch.
For Enterprise database licenses only.
| Operating system and syntax | UNIX / Windows |
-nap
n
|
||
|---|---|---|---|---|
| Use with | Maximum value | Minimum value | Single-user default | Multi-user default |
| Database Server | 500 | 1 | — | 10 |
After trying to acquire a latch the number of times specified by -spin, the process first sleeps the amount of time specified by
-nap. Upon waking, the length of the nap is doubled, and
the process tries to acquire the latch again -spin times.
If still unsuccessful, the cycle repeats: nap, increase time, spin, until the latch is
acquired. The length of the nap increases until the value specified by -napmax is reached.
If the initial value of -nap is greater than -napmax, the -napmax value is
used as the initial nap time.
To change this parameter while the database is running, use PROMON or the _DbParams VST.
For more information see: