PTC Arbortext Publishing Engine Programmer's Guide (PTC Arbortext Publishing Engine 程式設計師指南) > The Arbortext Publishing Engine Request Manager > Understanding the Internal Structure of Arbortext PE Request Manager > Arbortext PE 子流程 Pool Attributes > The maxLifetime Attribute
  
The maxLifetime Attribute
This attribute specifies the duration in seconds that an Arbortext PE 子流程 can run in its lifetime. After an Arbortext PE 子流程 finishes servicing a request, the Arbortext PE 子流程 pool checks the time elapsed since the Arbortext PE 子流程 was started. After the configured time period has elapsed, an Arbortext PE 子流程 will be terminated because it has exceeded this limit. If termination leaves fewer than the configured minimum number of Arbortext PE 子流程 running, a new one is started. The default value is 86400 seconds (one day).
Reaching the maximum lifetime duration won't interrupt a request being processed. Checking the Arbortext PE 子流程 elapsed time only happens between requests. The purpose of having a lifetime limit is to release memory or other resources, especially if an Arbortext PE 子流程 encounters a problem. Because resource usage can creep over time, setting maxLifetime recycles the resources and avoids having an Arbortext PE 子流程 that has grown too large to function properly or efficiently.
The pool work thread checks for Arbortext PE 子流程 at regular intervals; refer to Arbortext PE 子流程 Pool Work Thread for more information. You can disable checking the duration of Arbortext PE 子流程 by specifying 0.