1. Tomáš Podzimek
  2. PowerBuilder
  3. Tuesday, 9 May 2023 12:09 PM UTC

Hello,

We are having an issue with the speed of our application when using remote desktop (RDP).

When working locally, moving between items in a datawindow while holding down the down arrow is fast and smooth.

On the terminal server, there is a long visible delay in the movement, although the server's resources are far from busy.

Any idea what to try? Some sort of server setting or something else?

 

Regards,

Tomáš

Tim Jones Accepted Answer Pending Moderation
  1. Wednesday, 17 May 2023 16:30 PM UTC
  2. PowerBuilder
  3. # 1

We recently stood up a Windows Server 2022 machine for letting users RDP and run Powerbuilder apps.

When a user used RDP to run a Powerbuilder 2019R3 app, and opened and then closed a window that had approx 6000 records, it would take a good 3 or 4 minutes before the application would respond to further input, often flashing the menu options.

When run from an RDP session on our pervious Terminal Server 2016, or when run locally, the applications ran fast and showed no issues.

After much research and trial and error, I found that if the user simply goes into the Task Manager and kills the "Touch Keyboard and Handwriting Panel" process, the issue immediately went away.

It might be something you could try.

- Tim

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 17 May 2023 16:49 PM UTC
Hi Tim;

That sounds like the old Windows 8 problem & solution ... Thanks for sharing that information!

Regards ... Chris
  1. Helpful
There are no comments made yet.
TOMAZ KRALJ Accepted Answer Pending Moderation
  1. Monday, 15 May 2023 20:04 PM UTC
  2. PowerBuilder
  3. # 2

Hi Tomáš,

 

I found solution which works for me.

In PB.INI I changed following values:

[Data Window]
ACCESSIBILITY=0

[DataStore Behavior]
UseHwnd=yes

 

Especially parameter  ACCESSIBILITY=0 changed performance of my application. If I change UseHwnd=no, I have problems with printing as I get printsetup dialog of current printer and not dialog for selecting printer.

 

I compiled my application with this parameters in PB.ini and also copied PB.INI file in application folder on users machine.

 

Hope will help to you!

 

Regards

 

Tomaž

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 15 May 2023 00:53 AM UTC
  2. PowerBuilder
  3. # 3

Hi,

Distribute a PB.INI file alongside the EXE, with the following contents:

[DataStore Behavior]
UseHwnd=No

[Data Window]
ACCESSIBILITY=0

Hopefully it makes a difference?

regards.

Comment
  1. Tomáš Podzimek
  2. Monday, 15 May 2023 11:17 AM UTC
Hi Miguel,

thanks for your suggestion. We are already using these settings as an attempt to solve some other issues.



Regards,

Tomáš
  1. Helpful
  1. Miguel Leeuwe
  2. Monday, 15 May 2023 11:37 AM UTC
Sorry to see that that's not the solution then.

regards
  1. Helpful
There are no comments made yet.
TOMAZ KRALJ Accepted Answer Pending Moderation
  1. Tuesday, 9 May 2023 13:36 PM UTC
  2. PowerBuilder
  3. # 4

Hello Tomáš,

I am very glad to hear this from you as I have exactly the same issue. We moved our PB 2021.1509 32 bit application to Azure AVD on Windows 10 multiuser Host pool. 

We have very big performance issue . But not always! Sometime application is running as it should, but next time is very slow. I figure out that if I restart virtual machine then for some time performance is ok, then slow again. And even this is not always the case.

As you said I also have no problem with RAM or CPU or LAN.

I was blaming virtual machine till now, but now I see that this is not the case.

Anyone could help us with any tips... ?

 

Regards

 

Tomaž

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 9 May 2023 13:32 PM UTC
  2. PowerBuilder
  3. # 5

Hi, Tomáš -

At runtime, a DataWindow depends heavily on the user's default printer. Is there a default printer selected/available when running the application via Remote Desktop? Not having one might cause a significant slowdown in performance.

Best regards, John

Comment
  1. Tomáš Podzimek
  2. Wednesday, 10 May 2023 08:44 AM UTC
And I forgot to mention version. PB 2022 MR 1900, using PFC 2021.
  1. Helpful
  1. TOMAZ KRALJ
  2. Sunday, 14 May 2023 05:45 AM UTC
Hi Tomáš,

did you solve your problem somehow, as I didn't do any progress?

Regards

Tomaž
  1. Helpful
  1. Tomáš Podzimek
  2. Monday, 15 May 2023 11:19 AM UTC
Hi Tomaž,

sadly, so far nothing new to report.



Regards,

Tomáš
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.