1. Ramesh Govindarajan
  2. PowerBuilder
  3. Tuesday, 15 March 2022 15:52 PM UTC

Hello,

    We had a older version of PB code , Recently we compiled the code in  Appeon version 2019 R3 and deployed the newer version to the production servers. 

    we are facing very poor performance with our scanning process. Its takes approximately  7-10 seconds between each scans. Other functionality of the app is not having any issues.  

We are getting suggestions like " compile with with debug symbol" to analyze the issue more. Is this possible to do this in PowerBuilder. ?

      Need your help in isolating the performance  issue. Any suggestion will be greatly appreciated.

Thanks

Ramesh G

 

 

 

   

Sivaprakash BKR Accepted Answer Pending Moderation
  1. Thursday, 17 March 2022 13:43 PM UTC
  2. PowerBuilder
  3. # 1

Ramesh,

What would I do in these scenario
1.  Create a standalone app, with a window and datawindow to check whether there is any lag in scanning.  No other fields, no other validatations.
2.  If the performance is ok, then the issue is not at scan time.  
3.  Then add up, a couple of important validations and / or database lookups.

With these steps we will know where the issue could be.   
We following the above steps to identify a similar issue and we optimized the code.

HTH

Happiness Always
BKR Sivaprakash

 

Comment
  1. Ramesh Govindarajan
  2. Thursday, 17 March 2022 13:53 PM UTC
Thanks Shiva. Definitely we have so many validation in place after scanning. Like I said in the previous message , scanning multiple items is happening immediately but it takes almost 7-10 seconds to process each scan. I will try to post some videos from the facility soon.

Thanks you all for your great suggestions.



Ramesh G
  1. Helpful
  1. Sivaprakash BKR
  2. Thursday, 17 March 2022 15:27 PM UTC
Same issue here. We corrected the bad code along with db tuning solved our issue.
  1. Helpful
There are no comments made yet.
Benjamin Gaesslein Accepted Answer Pending Moderation
  1. Thursday, 17 March 2022 11:13 AM UTC
  2. PowerBuilder
  3. # 2

Hi Ramesh,

can you reproduce the performance issue when running the application from Powerbuilder? If so, you might be able to use the internal tracing tools to pinpoint what is causing the issue. Go to tools -> System Options and open the "Profiling" tab. Make sure the "Enable Tracing" checkbox is active and choose a trace file name. Then run the application from PB, do a scan and close the app. Then go to File->New->"Tool" tab and select "Profiling Trace View". You will be asked for a pbt file, select the one you just ran. Then go looking for function or event calls with long execution times and dig deeper.

Comment
  1. Ramesh Govindarajan
  2. Thursday, 17 March 2022 12:28 PM UTC
That's the great suggestion. But currently its not set up to scan from my local. ( I have PB only on my developer machine ). I am going to request for the scan setup and try your suggestion. Appreciate all your help.



Thanks



Ramesh G
  1. Helpful
  1. Ramesh Govindarajan
  2. Thursday, 17 March 2022 12:38 PM UTC
Also do you know any log file will be generated for review in production server , where the exe is running ? I have compiled with debug symbol enabled. Not sure wts the purpose of this.

Appreciate your help.



Thanks



Ramesh G
  1. Helpful
  1. Benjamin Gaesslein
  2. Friday, 18 March 2022 07:05 AM UTC
All I know is the /pbdebug command-line switch that will create a trace file when running the exe. This doesn't have timing information though. And if there's a virus scanner running, it will scan the created trace file every time a line is added to it, slowing execution time down so much it becomes basically useless.
  1. Helpful
There are no comments made yet.
Ramesh Govindarajan Accepted Answer Pending Moderation
  1. Tuesday, 15 March 2022 20:04 PM UTC
  2. PowerBuilder
  3. # 3

Thank you so much. I will try this option.

 

Ramesh G

Comment
There are no comments made yet.
Ramesh Govindarajan Accepted Answer Pending Moderation
  1. Tuesday, 15 March 2022 20:03 PM UTC
  2. PowerBuilder
  3. # 4

Thanks. Will try.

 

Ramesh G

Comment
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Tuesday, 15 March 2022 19:06 PM UTC
  2. PowerBuilder
  3. # 5

disable your antivirus to see if that makes things faster

Comment
  1. Ramesh Govindarajan
  2. Tuesday, 15 March 2022 20:11 PM UTC
Appreciate. Will try it out.
  1. Helpful
There are no comments made yet.
Ramesh Govindarajan Accepted Answer Pending Moderation
  1. Tuesday, 15 March 2022 18:56 PM UTC
  2. PowerBuilder
  3. # 6

That's a very good question. But they verified the scanners , everything looks good. 

Actually they could scan continuously with out any lag but after scanning multiple items it takes so many minutes to process all the scanned items.  

We have 10 warehouses and they scan pretty fast , now this is a big production issue.

As you suggested , I Already checked the  DISABLEBIND setting. I didn't find anything

Thanks

 

Ramesh G

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 15 March 2022 18:32 PM UTC
  2. PowerBuilder
  3. # 7

Hi Ramesh;

  Please try this ...

  • Close your PB App EXE
  • Create a "custom" PB.ini file in notepad.
  • Add the following sections to the PB.ini file, as follows...

[Data Window]
Accessibility=0

[DataStore Behavior]
UseHwnd=no

  • Save the new PB.ini file & then copy this file to the App EXE's deployment folder
  • Restart your PB App EXE & try your scan again.

HTH

Regards ... Chris

Comment
  1. Ramesh Govindarajan
  2. Tuesday, 15 March 2022 20:10 PM UTC
Thx Chris. I will this option.
  1. Helpful
There are no comments made yet.
Ramesh Govindarajan Accepted Answer Pending Moderation
  1. Tuesday, 15 March 2022 18:06 PM UTC
  2. PowerBuilder
  3. # 8

Basically we have a warehouse , using the scan gun they scan the barcode and capture the items. PB code is designed to capture the UPC values and quantities and have some other functionalities.  They used to scan  60/70 items per minute. But now it takes 7 seconds to process each item. Hope this helps.

In the compile option I see enable debug symbol. what's the use of it ? Can I check the log anywhere ?

Thanks

 

Ramesh G

Comment
  1. Roland Smith
  2. Tuesday, 15 March 2022 18:34 PM UTC
There must be something going on with the scanner interface, how does that work?
  1. Helpful
There are no comments made yet.
Ramesh Govindarajan Accepted Answer Pending Moderation
  1. Tuesday, 15 March 2022 17:48 PM UTC
  2. PowerBuilder
  3. # 9

Thanks Olan. I will check on your suggestion nd let you know what I find. Also do we have any compile option available to capture  detailed log . ?

 

Thanks

 

Ramesh G

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 15 March 2022 17:26 PM UTC
  2. PowerBuilder
  3. # 10

Please give more detail on what 'scanning process' is. Otherwise we are just making wild guesses.

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Tuesday, 15 March 2022 16:50 PM UTC
  2. PowerBuilder
  3. # 11

We just recently went through this and determined that a major contributing factor for poor performance when running extended processing was the DISABLEBIND=1 setting. This is part of the ConnectString parameter in the IDE Database Painter Profiles, in the ODBC connection DNS entries, and in any Java connectionstring you create.

With the value set to 1 any error message includes the value of the variables. Performeance in our case was 5x slower with this setting.
With the value set to 0 any error message includes the variable placeholders (i.e. :1, :2, :3) instead of the variable values.

You might want to check your connection parameters.

Later -

Olan

Comment
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.