Client Variable SQL deadlock

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Client Variable SQL deadlock

    Hi, we are having a problem with intermittant (about 20/hour) deadlocks on the
    CData table in our Sql Server. When I run a sql trace I see two transactions
    attempting to update the same record at exactly the same time.

    Here are some details:
    We have 11 web servers and traffic is controlled by an F5 load balancer
    All machines are CFMX 6.1 with current patches
    All machines have the Disable Global Client Variable Updates box checked
    Deadlocks do not occur at a predictable interval
    Only one machine is set up to purge client variables

    Any ideas where I might look? Any help would be greatly appreciated. Thanks.

    redWebLackey Guest

  2. Similar Questions and Discussions

    1. client variable storage setting
      Here is a little question hope someone can shine some light on it. Right now I am using the database as the client variable storage in CF (with...
    2. Client Variable Storage
      I found a document dating back to CF 4.5 where it stated the best practice for client variabel storage is to use an ODBC to a database. Is that...
    3. Problem with client variable
      Hi, I try to design an application using client variable but after setting the variable, I am unable to use that variable in another page. ...
    4. Client variable problem w/ CMX 7
      For the last two weeks I have been getting this error from time to time: Element "SomeVariable" is undefined in CLIENT The weird thing is the...
    5. Creating client variable
      I'm trying to lear out scope variables here but I'm having a hard time grasping the concept. I want to create a v take the quantity and unit price...
  3. #2

    Default Re: Client Variable SQL deadlock

    This can happen with large tables. If you are keeping the client vars for a
    long time period you may want to look at reducing it. If you have multple
    apps, break up the client vars into different db's if possible, this will help
    overall performance as well. Instead of having one client db for all your
    apps. You may want to check the indexes on the tables as well. You can try
    reindexing and see if that helps the problem. Also I tend to keep client db's
    as simple recovery models. Especially if they are not very critical. You can
    try resetting your database connections as well, perhaps there is one 'stuck'
    on a query or something that is uncommited.

    byron1021 Guest

  4. #3

    Default Re: Client Variable SQL deadlock

    Has anyone found a fix for this? We cleared all the data from the cdata and
    cglobal tables and restarted cf. Seconds after this we started getting
    deadlocks again. This time there were only 100 rows in the cdata table. We
    turned off global updates so that should not be the issue.

    Any help on this would be greatly appreciated.

    Thanks,

    --Dave

    dave_jf Guest

  5. #4

    Default Re: Client Variable SQL deadlock

    Hi Dave, not yet but I will reply to the thread if anything comes up.
    redWebLackey Guest

  6. #5

    Default Re: Client Variable SQL deadlock

    I would love to hear from MM on this. We are getting deadlocks at the rate of
    about 2 a minute. Even after clearing the cdata & cglobal tables. It is
    causing a major performance issue with our database.

    --Dave

    dave_jf Guest

  7. #6

    Default Re: Client Variable SQL deadlock

    Indeed. I may have stumbled onto something today. It's a little hard to explain
    because it's sort of a messy situation but basically one directory
    (non-fusebox) has an application.cfm file and it uses cfmodule or cfinclude to
    execute code in another (fusebox) directory. It seems that since the fusebox
    directory executes the cfapplication tag in a file other than application.cfm
    it is creating the double client variable updates. I hope that made sense. :)
    I haven't come up with a resolution to our problem yet but I thought this may
    give you something to look at anyway.

    redWebLackey Guest

  8. #7

    Default Re: Client Variable SQL deadlock

    I have something a little similar but it should not be updating the client vars on every request.
    dave_jf Guest

  9. #8

    Default Re: Client Variable SQL deadlock

    What I've seen from the sql traces that I've run is that cf runs an update for
    every page request whether you set a client variable or not. We dedicated a sql
    server to the client variables because if you have other long-running queries
    they will impact the client variable updates as well.

    redWebLackey Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139