how many instances of n are there in:
q: how do i control temporary file growth in sql anywhere? we are currently experiencing a growing temporary file problem.  watching one of our sites we can see a growth of 100 - 200 mb a day at one site we are watching.  at this site a failure occured when the temp file reached 20gb and a free space issue occured.
we are currently suppressing timeouts.  -ti and -tl are set to zero.  what is the chance that temp tables are building up due to this configuration?
additionally.  to further my understanding of the -tl flag, is the following a true statement:  the connection will not be reset unless the client can not be reached via tcpip.

a: it is unlikely that either -ti 0 or -tl 0 have anything to do with the temp space problem in sql anywhere. it is most likely the result of a runaway query. if you are using version 9 you can turn on limit checking as follows:
set option public.temp_space_limit_check = on;
in versions 10 and 11 that option should already be on, but maybe it got turned off. the new max_temp_space option is also useful.
in earlier versions, youll just have to find the runaway queries; foxhound may help: http://www.risingroad.com/foxhound/index.html
see also danger! the queries are stampeding! at 
http://sqlanywhere.blogspot.com/2009/03/danger-queries-are-stampeding.html
fyi the -ti 0 unlimited inactivity timeout setting is very common when you expect long periods of inactivity; e.g., overnight on a big web-based connection pool.
however, the -tl 0 unlimited liveness timeout setting is actually dangerous if it results in lots of zombie connections piling up (the clients are long dead but the server holds the connections open). like the help says, its usually better to increase the timeout period if you are having premature liveness timeout problems; e.g., -tl 3600 for one hour.
afaik the statement the connection will not be reset unless the client can not be reached via tcpip appears to be an over-simplification: the checking of liveness packets seems to be rather more complex than a simple cannot be reached test.
breck

a: youre right that the -ti and -tl switches are unrelated to temp space.
regarding the liveness issue, both the client and server send liveness packets every n/3 seconds, where n is the liveness timeout value. this only happens if no other packets have been sent in the meantime. if either side has not receive any packets from the other side after n seconds, the connection is dropped.
liveness is not necessary in the case where the connection is actually dropped by the other side (eg. the application/server crashes or the machine reboots) since the tcp connection will be closed immediately. liveness is useful, however, for detecting applications that are hung and network problems that prevent packets from getting through but do not cause the tcp connection to be dropped.

user
I found 168 "n"s in the provided passage.
assistant