cfthread - how long can it run?

359 Views Asked by At

Using Railo, I am processing large video files using cfthread. After the file is uploaded, I call <cfthread type="task"> to process the file using ffmpeg (type="task" is Railo specific). For large files, this can take a while, and it looks like my threads are being terminated before they complete.

1) How can I verify that the threads are being terminated?

2) Is there a way to change how long a thread can run?

3) What's the best way to monitor thread activity in Railo?

1

There are 1 best solutions below

0
On

Check the thread.log and requesttimeout.log in {web-root-directory}/WEB-INF/railo/logs/. Use the default task type (daemon) and set a request timeout within the thread to override the global request timeout. Doesn't seem to work with type="task" though (using Lucee rather than Railo)