Skip to main content
Participant
December 29, 2011
Question

CF 9 Event Gateways

  • December 29, 2011
  • 1 reply
  • 1758 views

I am wondering if anyone has experienced event gateway threads disappearing or  no longer being used. I have our server set to use 8 threads on the event gateway setting. When I start the server I can see all 8 threads fire, but after a few days of the server being up the threads slowly go down to one for processing. I am unable to find any answers to this problem.

Anyone have any ideas as to why the threads become unusable without restarting the server? Is there a way to find these threads and release them or restart the thread pool?

Thanks

Jim

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    December 30, 2011

    The number of threads you set in the ColdFusion Administrator is the maximum. It tells ColdFusion to use this number of threads or less.

    ColdFusion will terminate threads that have completed their tasks. Also, if ColdFusion judges that it requires just one thread to complete a task, it will use just one thread. After all, threads cost CPU resources.

    Participant
    December 30, 2011

    Thanks for taking the time to answer, but I understand about the max thread count. What I am seeing is that when I start the cf server(running in jboss) and drop files in a directory the event listener fires and starts all threads.  Once the threads finish processing the files the threads are terminated. The problem that I am wondering about is that the next time files are dropped say just 10 or so a thread is spawned. Unfortunately as more files are in the directories that are being watched that one thread is the only one running. I don't see new threads so I end up with one thread processing files nonstop. As a result the files aren't being processed in a timely matter.

    Participant
    December 30, 2011

    Also I am seeing when I drop a large amount of files in the directory after an initial processing run, that instead of 8 threads it starts 6. Same amount of files to fire the 8 threads in the first run, but then I have two less threads. This seems to be the pattern until it fires the single thread.