Chinaunix

标题: sybase无法登录 [打印本页]

作者: xumouxin1    时间: 2010-02-04 17:02
标题: sybase无法登录
应用程序操作sybase数据库时,后台日志报错:
00:00000:00010:2010/02/04 16:42:59.58 kernel  soc_nopen: No free file descriptors available.

使用SQL命令也无法登录数据库,在网上一直查不到该问题的处理办法,请高手们指点下!谢谢!
作者: andkylee    时间: 2010-02-04 17:10
本帖最后由 andkylee 于 2010-02-04 17:14 编辑

能不能多贴点日志?

看看这个参数:o/s file descriptors

贴一下参数
number of user connections
number of devices
max online engines
number of remote sites
max number network listeners
max cis remote connections
number of java sockets
@@max_connections

的值!

参考文档:http://infocenter.sybase.com/hel ... ml/sag1/sag1274.htm
作者: xumouxin1    时间: 2010-02-04 17:15
00:00000:01739:2010/02/04 16:42:59.57 kernel  Cannot send, host process disconnected: TELEPOW 2830 suid: 3
00:00000:00010:2010/02/04 16:42:59.57 kernel  soc_nopen: No free file descriptors available.
00:00000:01519:2010/02/04 16:42:59.57 kernel  Cannot send, host process disconnected: TELEPOW 2262 suid: 3
00:00000:00010:2010/02/04 16:42:59.57 kernel  soc_nopen: No free file descriptors available.
00:00000:00103:2010/02/04 16:42:59.57 kernel  Cannot send, host process disconnected: TELEPOW 2258 suid: 3
00:00000:00010:2010/02/04 16:42:59.57 kernel  soc_nopen: No free file descriptors available.
00:00000:01105:2010/02/04 16:42:59.57 kernel  Cannot send, host process disconnected: TELEPOW 2249 suid: 3
00:00000:00010:2010/02/04 16:42:59.57 kernel  soc_nopen: No free file descriptors available.
00:00000:01859:2010/02/04 16:42:59.58 kernel  Cannot send, host process disconnected: TELEPOW 2636 suid: 3
00:00000:00010:2010/02/04 16:42:59.58 kernel  soc_nopen: No free file descriptors available.
00:00000:02331:2010/02/04 17:16:23.81 kernel  Cannot read, host process disconnected:   spid: 2331
00:00000:00010:2010/02/04 17:16:23.81 kernel  soc_nopen: No free file descriptors available.
作者: xumouxin1    时间: 2010-02-04 17:15
谢谢啊!日志不多,都是在重复上面的错误
作者: xumouxin1    时间: 2010-02-04 17:30
现在数据库无法登录,还没重启,下面的参数是从配置文件中查的,但是@@max_connections不知道该查哪个参数值
number of user connections = 2700
number of devices = 20
max online engines = 3
number of remote sites = DEFAULT
max number network listeners = DEFAULT
max cis remote connections = DEFAULT
number of java sockets = DEFAULT
作者: andkylee    时间: 2010-02-04 17:39
在isql下用 select @@max_connections  来查询。

number of user connections = 2700 估计是超过最大文件描述符file descriptor 了。
公式 (number of user connections) + (number of devices * max online engines) + (number of remote sites) + (max number network listeners) + (max cis remote connections) + (number of java sockets) 不能大于  @@max_connections

可以减少用户连接数重启试一下。或者你用sp_who看一下有多少用户在线?
作者: xumouxin1    时间: 2010-02-04 17:42
好的,我试下!谢谢你啊
作者: xumouxin1    时间: 2010-02-04 17:48
查到select @@max_connections  结果为1009 。number of user connections = 2700 确实大于@@max_connections 了
能不能把@@max_connections  设置大点?怎么设置?
作者: andkylee    时间: 2010-02-04 17:56
查到select @@max_connections  结果为1009 。number of user connections = 2700 确实大于@@max_connectio ...
xumouxin1 发表于 2010-02-04 17:48



    用户连接数2700是突然改的,还是一直就是这个样子?

全局变量 @@max_connections  表示的操作系统级别的文件描述符。1009感觉有点低。请查看相应操作系统的文档!
作者: xumouxin1    时间: 2010-02-04 18:00
2700这个值是之前改的!!
作者: wfcjz    时间: 2010-02-04 22:44
00:00000:01739:2010/02/04 16:42:59.57 kernel  Cannot send, host process disconnected: TELEPOW 2830 suid: 3

从这个提示入手去排错!




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