On Tue, 2003-07-01 at 13:41, Chris Backas wrote:
> Hello all, 
> 
> I've got a tricky problem in one of my servlets that only seems to occur 
> under moderate->heavy load, and I'm trying to track it down by writing 
> things to the console.  However, because it requires some amount of load to 
> occur, it's extremely difficult, and often impossible, to tell which request 
> is causing which message.  I'm wondering if I can access the request number 
> that webware prints at the start and end of a request (I don't see this in 
> the Request object).  Or, failing that, some alternate way that I can relate 
> messages to a particular request. 

Hmmm... you are right indeed, that number is not made available.  I
suppose that should be changed.  I submitted it as a bug.

For a quicker resolution, you could make your own serial numbers:

import threading
requestIDLock = threading.Lock()
nextRequestID = 1
def makeRequestID():
    requestIDLock.acquire()
    val = nextRequestID
    nextRequestID += 1
    requestIDLock.release()
    return val





-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to