5 Replies Latest reply on Aug 10, 2006 10:14 AM by BKBK

    cflock question


      server 2003
      dual Zeon 2.4 processors
      2GB ram
      Coldfusion 6.1

      We have an application that people use to upload images. We found that the 3rd party component that we use to process images is using about 25% cpu per image that it processes. Because of this we added an exclusive lock around the processing code so that when we have simultaneous users processing images it doesn't grab all our server's cpu.

      What's been happening lately is that we have users timing out (20 sec default) when trying to login to our application or perform other tasks within the application that are exclusively locked.

      Does exclusively locking one piece of code affect other unrelated exclusively locked pieces of code within the same application? That seems to be what is happening and I would really appreciate anybody's input on this. Our cpu is at 25-30% during the locking timeout errors and the ram is 50% utilized. Not enough resources used to be timing out login requests I would think.

      Should we be using named exclusive locks to seperate the image processing code from the login code or something else we have missed from the docs?

      Thanks in advance for any insight to how this works.