|
You could create a logging class. In each
important procedure on the server’s RDM, create a logging instance at the
beginning of the procedure. Wrap the procedure in a try finally, freeing the
logging object at the end of the procedure. Within the try..finally, have a try…except,
catching any exception and feeding it to the logging object. The logging object
records to file, the start and end times of the procedure, any exceptions, etc.
In this way you’ll find procedures that are bottlenecks, procedures that
throw exceptions, and any that never return, for whatever reason. To reduce the volume of your log file, on
freeing of the logging object, you could do some tests – if no exceptions
were recorded in the procedure and it didn’t take too long to execute,
then don’t write any info to file – only write to file for
exceptions or very long times. However, then you’d miss any procedure
which never returns. For this you’d need to log a procedure name and time
stamp on create of the logging object. You could have an app server switch to
turn logging on and off, so that it’s not going all the time, but only
when indicated from the app server GUI. This may help you find something… Dave From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stacey Verner We have an DataSnap/Midas app server which fails randomly. We can't make it happen no matter how hard we try, but it
happens fairly regularly on our production machine. A little bit of info on the app and app server:
Sometimes the app server locks up and the clients can't
connect. We have a work around that will try app servers on other
machines if this fails which works OK, but if it never gets a connection the
all sorts of odd things happen. Firstly, does anyone have any thoughts on this. Debug ideas
etc? Secondly, when the connection to the app server fails
it takes forever (minutes) to return no matter what I set the socket connection
timeout to. Thanks Stacey Stacey
Verner
Ph: +64-9-4154790 |
_______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi
