LogAllThreads()
Creates detailed thread stack trace logs in JSONL format for performance analysis and debugging.
This function captures stack traces from all running threads at specified intervals for a given duration.
It executes asynchronously, returning immediately after starting the logging process, making it ideal for analyzing specific code segments by initiating logging just before the target code execution.
The output format is JSONL (JSON Lines), where each line represents a separate JSON object containing:
- Timestamp offset in milliseconds from 1/1/1970 00:00:00 UTC (Unix 0)
- Complete stack trace of each thread's current location
This data can be used for:
- Performance bottleneck identification
- Thread behavior analysis
- Deadlock detection
- Resource usage patterns
Introduced: 6.2.0.219
	LogAllThreads( path=string, interval=number, duration=number );
	
	Returns: void
| Argument | Description | Default | 
|---|---|---|
| 
									path
								string,
									
										required | edit Full file path where the log will be written. The file should have a  Example:  | |
| 
									interval
								number,
									
										optional | edit The time interval (in milliseconds) between stack trace captures. Lower values provide more detailed analysis but generate larger log files and may impact performance. Recommended ranges: 
 | 0 | 
| 
									duration
								number,
									
										optional | edit Total duration (in milliseconds) for which the function will collect thread data. After this period, logging automatically stops. Common durations: 
 | 10000 | 
Examples
There are currently no examples for this function 38,359ms WARN No examples for function LogAllThreadsSee also
- Debugging
- Lucee Server related Tags, Functions and Guides
- Threads
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)
