Chinaunix

标题: 请教关于Sybase用户连接数的问题 [打印本页]

作者: unixer123    时间: 2007-04-10 10:47
标题: 请教关于Sybase用户连接数的问题
我有一台服务器是SUN的, 操作系统是Solaris8, 数据库为ASE12.5.03, 现在想把用户连接数改成2000, 想问问除了sp_configure "number of user connections", 2000外, 操作系统层面上还需要改什么参数吗?、
作者: hobbylu    时间: 2007-04-10 11:15
基本上无需更改
作者: unixer123    时间: 2007-04-10 13:29
但是曾经有一次,服务器报了很多的用户连接数不够的1605错误, 看了一下, 当时的配置的最大连接数为1500, 但是最大到达连接数为997个。
作者: cso_z    时间: 2007-04-10 13:45
不需要~

如果你实在不确定可以跟系统管理员确认一下~
作者: xgli1978    时间: 2007-04-10 14:22
原帖由 unixer123 于 2007-4-10 13:29 发表
但是曾经有一次,服务器报了很多的用户连接数不够的1605错误, 看了一下, 当时的配置的最大连接数为1500, 但是最大到达连接数为997个。



only once?
作者: unixer123    时间: 2007-04-10 18:39
恩, 是的,正好那天业务很忙, 系统不断的向日志写入1605的错误。sp_monitorconfig 查出的最大使用过的用户连接数为997个。我刚才查了一下文档, UNIX下有个参数文件描述符用来限制操作系统打开的文件句柄和socket, 这个和用户连接数有关系吗?
作者: 1017of    时间: 2007-04-10 19:38
pls return the result of the command below
ulimit -a
作者: unixer123    时间: 2007-04-11 09:06
时间(秒)        没有限制
文件(块)         没有限制
数据(千字节)         没有限制
栈(千字节)        8192
信息转储(块)     没有限制
非文件(描述符) 256
vmemory(千字节)      没有限制
作者: 1017of    时间: 2007-04-11 10:07
dataserver -v
uname -a
/usr/sbin/ndd /dev/tcp tcp_conn_req_min
/usr/sbin/ndd /dev/tcp tcp_conn_req_max_q
/usr/sbin/ndd /dev/tcp tcp_keepalive_interval
/usr/sbin/ndd /dev/tcp tcp_time_wait_interval
showrev -p | grep 109326
作者: unixer123    时间: 2007-04-11 14:21
dataserver -v         
Adaptive Server Enterprise/12.5.0.3/EBF 10973 ESD#1/P/Sun_svr4/OS 5.8/rel12503/1920/64-bit/FBO/Thu Mar 27 01:09:31 2003

Confidential property of Sybase, Inc.
Copyright 1987, 2003
Sybase, Inc.  All rights reserved.
Unpublished rights reserved under U.S. copyright laws.

This software contains confidential and trade secret information of Sybase,
Inc.   Use,  duplication or disclosure of the software and documentation by
the  U.S.  Government  is  subject  to  restrictions set forth in a license
agreement  between  the  Government  and  Sybase,  Inc.  or  other  written
agreement  specifying  the  Government's rights to use the software and any
applicable FAR provisions, for example, FAR 52.227-19.
Sybase, Inc. One Sybase Drive, Dublin, CA 94568, USA

uname -a
SunOS dzsw-serverA 5.8 Generic_108528-19 sun4u sparc SUNW,Sun-Fire

/usr/sbin/ndd /dev/tcp tcp_conn_req_min
1

/usr/sbin/ndd /dev/tcp tcp_conn_req_max_q
128

/usr/sbin/ndd /dev/tcp tcp_keepalive_interval
7200000

/usr/sbin/ndd /dev/tcp tcp_time_wait_interval
240000

showrev -p | grep 109326
Patch: 109326-06 Obsoletes: 110514-01 Requires:  Incompatibles:  Packages: SUNWcsu, SUNWcsr, SUNWcslx, SUNWcsl, SUNWhea, SUNWarc, SUNWarcx, SUNWcstl, SUNWcstlx
Patch: 109326-10 Obsoletes: 110514-01 Requires:  Incompatibles:  Packages: SUNWcsu, SUNWcsr, SUNWcslx, SUNWcsl, SUNWhea, SUNWarc, SUNWarcx, SUNWcstl, SUNWcstlx
Patch: 109077-11 Obsoletes: 111063-03, 111065-01 Requires: 109326-07, 110383-01, 110386-01, 111302-01 Incompatibles:  Packages: SUNWcsu, SUNWcsr, SUNWdhcsr, SUNWdhcsu, SUNWdhcm, SUNWhea
Patch: 110615-03 Obsoletes:  Requires: 109326-02 Incompatibles:  Packages: SUNWcsr, SUNWsndmr, SUNWsndmu, SUNWnisu
Patch: 111327-05 Obsoletes:  Requires: 109326-05 Incompatibles:  Packages: SUNWcsr, SUNWcslx, SUNWcsl, SUNWarc, SUNWarcx, SUNWcstl, SUNWcstlx
Patch: 110615-08 Obsoletes:  Requires: 109326-02 Incompatibles:  Packages: SUNWcsr, SUNWsndmr, SUNWsndmu, SUNWnisu
作者: 1017of    时间: 2007-04-11 15:15
much more short transactions?or short connections?
if yes,try to lower tcp_time_wait_interval(such as 60000) after enquering engineers of SUN and test it.further more,try to upgrade to 12.5.0.3 ESD#4 EBF 1144x if possible.
作者: unixer123    时间: 2007-04-11 17:11
基本上都是小事务, 用户只对一条记录作更新和读取, 但是问了开发人员, 说Web的连接方式为有一个数据库请求, 就启动一个连接, 直到应用层的数据库连接池中的数据库连接全部用完, 还想问问 tcp_time_wait_interval参数就是一个socket连接的等待时间?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2