1. Constantin Bergatt
  2. PowerBuilder
  3. Monday, 16 September 2019

Hello everyone,

I am currently in the process of hunting memory leaks in one special functionality of our 32-bit product. Unfortunately it is a very complex and long running process.

Doing some research on the internet, I found an old tool CDMatch which would at least give me a good idea, where we are losing some memory.

So after some tweaking I found a way to get a trace of a single, successful run of the wanted functionality. Regrettably the size of the trace file amounts to about 790 MB, which PowerBuilder itself and CDMatch are unable to open/handle.

When trying to open the file with the PowerBuilder internal "Profiling Trace View", PowerBuilder crashes without a warning.

Running CDMatch from within the IDE also does crash when hitting the maximum of allowed memory (about 1.7 GB). Even creating a 64-Bit executable and running the program does just consume lots and lots of memory using up all of my free disk space for swapping.

So my main question is, what would be the best approach to analyze such a huge trace file, when even PowerBuilder itself seems to run into memory problems?

Regards,

Constantin

Constantin Bergatt Accepted Answer Pending Moderation
0
Votes
Undo

Hi Ferdinand,

I also had some troubles getting it.

Fortunately I found a forum post by Larry Peters, which mentioned that he could provide the wanted *.PBL file.

So please find attached the CDMatch.pbl.

Regards,

Constantin

Attachments (1)
Comment
Thank you.
  1. Ferdinand Fischer
  2. Tuesday, 17 September 2019
There are no comments made yet.
  1. Tuesday, 17 September 2019
  2. PowerBuilder
  3. # 1
Ferdinand Fischer Accepted Answer Pending Moderation
0
Votes
Undo

Hi Constantin,

could you upload the CDMatch.pbl?

The tool sounds intersting but i cant  find the tool online.

Regards,

Ferdinand

 

Comment
There are no comments made yet.
  1. Tuesday, 17 September 2019
  2. PowerBuilder
  3. # 2
Olan Knight Accepted Answer Pending Moderation
1
Votes
Undo

Open the trace file in NOTEPAD++.

It's free and an extremely good tool!
https://notepad-plus-plus.org/download/v7.7.1.html

 

Olan

 

Comment
Hi Olan,

PBP files (form PowerBuilder tracing functionality) are binary files. There is no readable information if you open it in Notepad++.

PBG files (PowerBuilder Debug files creates with /PBDebug) are text files.

René
  1. René Ullrich
  2. Tuesday, 17 September 2019
Ah, thanks, Renee!

  1. Olan Knight
  2. Tuesday, 17 September 2019
Maybe http://www.techno-kitten.com/PBL_Peeper/Online_Manual/Trace_Page/trace_page.html

could help reading the /pbdebug generated output files, but it might also crash with files that big.
  1. Miguel Leeuwe
  2. Tuesday, 17 September 2019
There are no comments made yet.
  1. Monday, 16 September 2019
  2. PowerBuilder
  3. # 3
  • Page :
  • 1


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