Insufficient stack space. Increase the -s startup parameter. 31986 bytes are needed,

charithr

New Member
Hi All

I'm getting the following error when I tried to open a widows application which was written in PROGRESS 9.1 4GL.


Both Front end and back end written in PROGRESS 9.1 4GL.



Error -
"Insufficient stack space. Increase the -s startup parameter. 31986 bytes are needed, Only 31984 are available. (8035)"

This error is occurring only when loading the application.



I found that this error occurs when application trying to retrieve all the users information and some system information from the database (PROGRESS 9.1).

I can open the application without any problem when I delete some of the system information.

If I re-enter the deleted information them I'm getting the same error again.

Could you please explain how I can fix this issue?



Thanks
Charith
 
Re: Insufficient stack space. Increase the -s startup parameter. 31986 bytes are need

Have you tried doing what the message says and increasing -s?

Why you get it depends on what your code is doing. Just guessing but I'd start for looking at places where you are appending data to strings. If you are creating strings that are potentially thousands of bytes long that could be your problem.
 
Re: Insufficient stack space. Increase the -s startup parameter. 31986 bytes are need

Hi Tom Bascom

Thanks for the reply.

I couldn't find -s parameter.

Could you please let me know how can I increase this parameter?

Thanks
Charith
 
Re: Insufficient stack space. Increase the -s startup parameter. 31986 bytes are need

It is a client session startup parameter.

Increasing it depends entirely on how your application startup process is managed.

Usually I would expect that there is a .pf file somewhere although it might be on the command line.

But I have no idea how you are setup. Your sys admin should know.
 
Re: Insufficient stack space. Increase the -s startup parameter. 31986 bytes are need

Hi Tom Bascom

Thank you very much for your support.

I found a .pf file which has a -s parameter but it is referring to the database port. (-s 7000 which mean the database port number).

Is this something to do with database configuration?

Sys Admin has left the organization so its very difficult to identify the start up process.

This application was in production for last 3 years and all of sudden we got this error.

Could you please help me to fix this issue?

Thanks
Best Regards
Charith
 
Re: Insufficient stack space. Increase the -s startup parameter. 31986 bytes are need

Hi Tom Bascom

Thank you very much for your support.

I found a .pf file which has a -s parameter but it is referring to the database port. (-s 7000 which mean the database port number).

Is this something to do with database configuration?

Sys Admin has left the organization so its very difficult to identify the start up process.

This application was in production for last 3 years and all of sudden we got this error.

Could you please help me to fix this issue?

Thanks
Best Regards
Charith

The startup parameters are case-sensitive so there is a difference between -S and -s. -S is the servicename or portnumber that is used to connect to the database. -s is the stacksize. If the -s is not in the pf file then you can simply add it there.
 
Re: Insufficient stack space. Increase the -s startup parameter. 31986 bytes are need

As RKR says parameters are case sensitive. The .pf file that you found is likely to be the one that clients use so add "-s 48" to it (-s is measured in kilobytes).

You mentioned that this has been working for years and stopped working recently and that you have a work-around that involves deleting some data. You might want to take a look at the data that is going into this process and determine if, perhaps, an invalid or unreasonably long value has been introduced somewhere. For instance -- perhaps a string that is assumed to be 30 characters long because it has a display format of x(30) has an actual size of 30k due to being imported in a manner that does not enforce the assumed size limit? (Keep in mind that in Progress all fields are variable length -- formats are not constraints on storage -- they are for display purposes.)
 
Re: Insufficient stack space. Increase the -s startup parameter. 31986 bytes are need

Hi RKR and Tom Bascom

Thanks for the support.

I tried to set -s parameter as you explained. Though I set the -s parameter I'm getting the same error when I tried to open the application. I have restarted database and the app broker after changing the .pf file.
but it didn't solve the issue.
.Pf file contents

-db speedway -ld speedway -H localhost -N tcp -S 7300
-s 48
-T c:\temp
-d dmy
-yy 1950
#


Could you please help me on this?

Thanks
Best Regards
Charith
 
Re: Insufficient stack space. Increase the -s startup parameter. 31986 bytes are need

Hi RKR and Tom Bascom

Thanks for the support.

I tried to set -s parameter as you explained. Though I set the -s parameter I'm getting the same error when I tried to open the application. I have restarted database and the app broker after changing the .pf file.
but it didn't solve the issue.
.Pf file contents

-db speedway -ld speedway -H localhost -N tcp -S 7300
-s 48
-T c:\temp
-d dmy
-yy 1950
#


Could you please help me on this?

Thanks
Best Regards
Charith

Hi Charith,

You get the same values in the warning or are the values now different ? If the values are higher you can try to increase the value of -s to a much higher number. The maximum size of -s is limited by the available memory on your system. If the values are the same then you will have to look if the application is actually using this pf file. I think however that looking into the data as Tom mentioned might be a better solution.

Quote from the helpfiles.
Progress recomments setting the size of -s to 128

Note: It is recommended that the -s session startup parameter be set to 128. Setting this startup parameter to a smaller value may result in runtime errors in some environments.


Regards,
Ruud
 
Re: Insufficient stack space. Increase the -s startup parameter. 31986 bytes are need

Hi RKR

Thanks a lot for the help.

I found there are two .pf files for the application. One is used in the start up. It has following configurations.

-T c:\temp
-d dmy
-yy 1950
-p containers/wmain.r

and there's another .pf file and it is using by the app broker.

It has the following configurations.

-db speedway -ld speedway -H localhost -N tcp -S 7300
-T c:\temp
-d dmy
-yy 1950
#

So I added -s 128 for both files. But it didn't work. Then I did the following changes to the .pf file which is used in the app broker.

-db speedway -ld speedway -H localhost -N tcp -S 7300
-s 128
-T c:\temp
-d dmy
-yy 1950
-p containers/wmain.r
#

I used this file for the startup of the application as well after doing the above changes.
It worked when I used one .pf file without using 2 .pf files.

I wanted to check whether is this issue exists because of there are 2 .pf files.

I simply removed the -s 128 parameter from the file and then restarted my PC.

Then also I didn't get the error.

I'm wondering whether it is because there are 2 .pf files.

Could you please let me know what can be the reasons for this?
 
Back
Top