ServerStackSize

The ServerStackSize attribute value determines the size of the stack on the server for each connection.

The value of this attribute is only meaningful if the value of MaxConnsPerServer is greater than one. If there is only one connection per server, the child server uses the process' main stack. It is also platform-dependent, as defined in the setting below.

You generally should not need to set the ServerStackSize attribute. However, if the ttcserver process is getting repeatable Access Violations (Windows) or core dumps (Linux and Unix), you may consider increasing the ServerStackSize attribute to 1024 KB or greater.

This value of this attribute takes precedence over the setting of the server_stack_size attribute in the timesten.conf file. For details, see Defining Server DSNs for TimesTen Server on a Linux or UNIX System in Oracle TimesTen In-Memory Database Operations Guide.

Changes to TimesTen server settings do not occur until the TimesTen server is restarted. To restart the server, use the command ttDaemonAdmin -restartserver.

Required Privilege

Only a user with operating system privileges on the system DSN in which this attribute is defined can change the value of this attribute to a value other than the one currently in effect.

Usage in TimesTen Scaleout and TimesTen Classic

This attribute is supported in both TimesTen Classic and TimesTen Scaleout.

Setting

Set ServerStackSize as follows:

Where to set the attribute How the attribute is represented Setting

C or Java programs or UNIX and Linux systems odbc.ini file in TimesTen Classic or in the database definition (.dbdef) file in TimesTen Scaleout

ServerStackSize

Valid values depend on the platform. The default is 768 KB.

If the sysconf call is available, the minimum is:

sysconf(_SC_THREAD_STACK_MIN)/ 1024

else the minimum is 0.

Windows ODBC Data Source Administrator

Not applicable