Sets the idle timeout duration for daemon processes in daemon mode. Daemons that remain idle longer than this timeout are automatically closed to free up system resources.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ollm/opencomic-ai-bin/llms.txt
Use this file to discover all available pages before exploring further.
Syntax
Parameters
Idle timeout in milliseconds. Daemons inactive for this duration will be closed automatically.
Returns
void - This method does not return a value.
Behavior
- Daemons track their last usage time
- When a daemon is idle for longer than the timeout, it’s eligible for closure
- Automatic cleanup helps prevent memory leaks
- Setting a longer timeout keeps daemons alive for more reuse
- Setting a shorter timeout frees resources more quickly
Example
Timeout considerations
Short timeout (10-30 seconds)
- Aggressive resource cleanup
- Less daemon reuse
- More startup overhead
- Better for sporadic processing
Medium timeout (60 seconds - default)
- Balanced approach
- Good daemon reuse
- Reasonable resource usage
- Suitable for most applications
Long timeout (2-5 minutes)
- Maximum daemon reuse
- Daemons stay in memory longer
- Less startup overhead
- Best for continuous processing
Related
- setConcurrentDaemons() - Control concurrent daemon count
- closeAllDaemons() - Manually close all daemons
- Daemon mode guide - Learn about daemon mode