I imagine that it is failing more often on the faster machine because of a
race condition in the server code... the faster the machine the more likely
that a two events happen in a certain (bad) way. This sure sounds like a
crappy bug.
Mark
-----Original Message-----
From: Tim Soslow [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 1:02 PM
To: CF-Talk
Subject: CreateUUID() hangs CFMX 6.1 Server
We have been experiencing the oft-noted but elusive problem where the CF
server hangs while executing threads and begins queuing them up. After about
a minute it can execute all of the threads.
During a month of excruciating examination of the perf mon and every facet
imaginable of our code and the cf admin, we stored debug information in a
REQUEST variable during the execution of many pages including
application.cfm. We finally traced the hangs to three different points in
our code ? all of which are a CreateUUID() call. To verify, we placed a
CreateUUID() call at the top of application.cfm and sure enough, it became
the codeline that caused the cf servers to hang. What is going on in the
CreateUUID() call? I assumed that it was creating a combination of the
current time in milliseconds, the MAC address on an ethernet card, and a
random number. Could the CreateUUID() call be hanging on one of these
components?
Our config is:
CFMX 6.1
Win 2k Server
SP4
2GB Ram
One interesting note is that when equal load is distributed on our two
servers, on our server with dual 2.4GHz Xeons, the problem is experienced
about 16 times per day, whereas it is only 4 times per day on dual 1.67 GHz
Athlons. Each is using an onboard NIC, and I assume that they are different
chipsets, although I have not verified. Perhaps the float math is handled
differently and this is affecting random number generation in CreateUUID()?
I can rewrite our code to not use CreateUUID and instead use the database to
generate UUIDs when we need true uniqueness, and otherwise use random
numbers. I am concerned, though, that our servers will hang again if there
is some problem upstream.
Any thoughts?
-Tim
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:138289
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Get the mailserver that powers this list at
http://www.coolfusion.com