#1 2025-03-19 11:19:19

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 544

RS12.3 64Bit ComputeRoutes takes 99s in DEBUG Mode

I Start Service compiled for 64Bit in Debug Mode, it seems to hang, but in Log i can see that ComputeRoutes takes 99s to start.
Starting same Service from Command Line starts immediate as expected.

i saw thsi Problem before but not taking so long...


Rad Studio 12.3 Athens

Offline

#2 2025-03-19 15:38:01

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,952
Website

Re: RS12.3 64Bit ComputeRoutes takes 99s in DEBUG Mode

I see no reason why it should wait so long.
The process itself is linear, O(n) depending on the number of routes to compute.

The "99 seconds" value is the maximum which could be displayed in the logs.
It may even be more that 99 seconds (or Luftballons).

The only reason of a problem in debug mode may be because there is a contention with the TRestServer.fRouterSafe: TRWLightLock lock.
But only if TRestServer.Uri is called and the ComputeRoot is not finished.
Ensure you don't make any client request in the IDE before having finished the ComputeRoutes.

Normally, TRestHttpServer.Create calls ComputeRoutes so it should not appear such race condition.
Is your problem from within TRestHttpServer.Create ?

Offline

Board footer

Powered by FluxBB