MAXDAEM parameter: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (add See also)
m (minor formatting)
Line 15: Line 15:


==Description==
==Description==
This parameter indicates the maximum number of sdaemon threads that can be used by an individual thread.  Such threads are allocated by <var>[[New_(Daemon_constructor)|New]]</var> method for <var>[[Daemon class|Daemon]]</var> objects; or by a number of the (deprecated) Sirius <var>[[List_of_$functions|$functions]]</var> such as: <var>[[$CommBg]]</var>, <var>[[$Command]]</var> or <var>[[$CommndL]]</var>.  
This parameter indicates the maximum number of sdaemon threads that can be used by an individual thread.  Such threads are allocated by <var>[[New (Daemon_constructor)|New]]</var> method for <var>[[Daemon class|Daemon]]</var> objects; or by a number of the (deprecated) Sirius [[List of $functions|$functions]] such as: <var>[[$CommBg]]</var>, <var>[[$Command]]</var> or <var>[[$CommndL]]</var>.  


Since sdaemon threads are a relatively scarce resource, it is not a good idea for a thread to use more than a handful of them at a time.  Unfortunately, with <var>Daemon</var> objects, especially such objects embedded in another class, it is possible for a single runaway request to cause great problems by quickly consuming every daemon thread in an Online.
Since sdaemon threads are a relatively scarce resource, it is not a good idea for a thread to use more than a handful of them at a time.  Unfortunately, with <var>Daemon</var> objects, especially such objects embedded in another class, it is possible for a single runaway request to cause great problems by quickly consuming every daemon thread in an Online.

Revision as of 17:54, 7 November 2016

Maximum Daemon objects per user

Summary

Default value
1
Parameter type
System
Where set
User 0 CCAIN parameters
Related products
All
Introduced
Sirius Mods Version 6.7

Description

This parameter indicates the maximum number of sdaemon threads that can be used by an individual thread. Such threads are allocated by New method for Daemon objects; or by a number of the (deprecated) Sirius $functions such as: $CommBg, $Command or $CommndL.

Since sdaemon threads are a relatively scarce resource, it is not a good idea for a thread to use more than a handful of them at a time. Unfortunately, with Daemon objects, especially such objects embedded in another class, it is possible for a single runaway request to cause great problems by quickly consuming every daemon thread in an Online.

See also