Welcome! Log In Create A New Profile

Advanced

Internal runtime engine process - local vs network execution

Posted by alex.kolaric 
Internal runtime engine process - local vs network execution
June 07, 2024 12:17AM
Hi everyone,

We are running our app and profiling portion of the code starting with the MDIOpen of a new window and ending as soon as the called procedure is initiated. When running locally we get 1s 473ms for "Internal runtime engine process" which takes 100% of execution time. When running app over the network we are getting 5s 567ms for the same profiled portion of the code. What could be the reason for such a big difference and is there any way to improve this because it really bothers our users. They are comparing it with the application written using Delphi where the similar window opens almost the same locally and through the network.

Any suggestion is welcome.

Thanks,
Alex
Al
Re: Internal runtime engine process - local vs network execution
June 07, 2024 09:21AM
Hello Alex,

It is difficult to answer because we don't know what is involved in the window open code or how the app is setup as to where the code is being executed from, where the app is located in relation to any data it may be gathering, is the local HD an SSD, is the server HD an SSD, is the server a real server or a VM etc.

It sounds like from your phrase "running the app over the network" that you are simply starting the app on the server from the local workstation which never works well. I always use TSPlus remote sessions to a windows server.


Regards
Al
Re: Internal runtime engine process - local vs network execution
June 07, 2024 12:16PM
Thanks Al,

As you mentioned there are too many variables that may affect this behaviour. You are right, the application resides on the server and the users are running it from local workstations from the shared directory. Also some of them are using Remote Apps to access it remotely. The profiling code is planted just before the call to open mdi window to display a document and immediately after procedure declaration in the called window so the way I understand it this should not be affected by the other code within the window init portin. This is confirmed by the profiler trace which contains only two lines where the one of them is Internal runtime.... and it takes 100% of time.

Thanks for your help,
Alex
Re: Internal runtime engine process - local vs network execution
June 07, 2024 02:57PM
Hi,

is the network share excluded from the virus protection?

Regards.

Stefan.
Al
Re: Internal runtime engine process - local vs network execution
June 07, 2024 03:43PM
Hello Alex,

The users on remote sessions should not see any slowdowns, unless the server HD is slow or the server is over utilised. If the app is searching for a document to display, the location of the document relative to the exe location may also have an impact .


Regards
Al
Re: Internal runtime engine process - local vs network execution
June 07, 2024 04:53PM
Hi Al,

That is the part which puzzles me. The slowdown for remote users. When I say document I mean database recorded document (header - lines) not external file located somewhere on the file server.

It is worth checking what Stefan suggested. I will check with our customer's IT.

Thanks,
Alex
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: