1. Marie Bisschoff
  2. PowerBuilder
  3. Friday, 20 March 2020 09:27 AM UTC

HI,

We get an error R6016 Not enough Space for Thread data running.

I see that you can setup a parameter that write out to a logfile. PB_HEAP_LOGFILENAME 

Were do I set these settings up? (PB_HEAP_LOGFILENAME. PB_POOL_THRESHOLD and PB_HEAP_LOGFILE_OVERWRITE) ?

And is there a example of what it is writing out. Will this help me to determine the problem?

Regards

MLB

 

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 20 March 2020 14:24 PM UTC
  2. PowerBuilder
  3. # 1

Hi Marie;

  FYI: The PB_HEAP_XXXX and PB_POOL_XXX environment variables were only applicable to the PBVM that was running inside Sybase's old EAServer (aka Jaguar) application server. These environment variable settings are not applicable to native PB Apps.

Regards ... Chris

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Friday, 20 March 2020 13:33 PM UTC
  2. PowerBuilder
  3. # 2

According to this, they are environment variables:

http://codeverge.com/sybase.powerbuilder.general/pb-heap-manager-error/1026793

 

Comment
There are no comments made yet.
Marie Bisschoff Accepted Answer Pending Moderation
  1. Friday, 20 March 2020 12:59 PM UTC
  2. PowerBuilder
  3. # 3

HI,

It is on a server that only runs the EXE not the IDE.

They increased the memory on the server. That didn't help.

But isn't there a limit on 32bit application's memory.

The weird thing is it is batch processes and all of them finishes without giving errors in log files.

We have no idea why this happen.

Regards

ML

 

Comment
  1. mike S
  2. Friday, 20 March 2020 13:46 PM UTC
Since this is batch process and you run out of memory - is the process long running loop? are you creating and destroying large number of objects in a loop? Are you loading in huge numbers of rows into datawindow or datastores and processing them in loops?



do you call garbage collect to release memory within your loop?



what version of PB?
  1. Helpful
There are no comments made yet.
Brad Mettee Accepted Answer Pending Moderation
  1. Friday, 20 March 2020 12:46 PM UTC
  2. PowerBuilder
  3. # 4

Per the MS website, this error usually occurs with low memory conditions.

Does this occur on other machines?

In IDE or EXE?

How much memory is free on the machine you're running?

Is there any chance you've created an infinite loop and allocated all mem to your app and get the error when you finally run out?

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.