免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4610 | 回复: 6
打印 上一主题 下一主题

sybase 系统进程 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-06-03 22:05 |只看该作者 |倒序浏览
小弟,最近sybase系统一天之内会出现几次系统超慢的情况
看进程后发现有个进程很奇怪突然多了,许多相同的进程名称

我看了,数据库的日志
。。。。
00:00000:00000:2010/06/03 11:26:44.82 kernel  nrpacket: recv, Connection timed out
00:00000:00363:2010/06/03 14:16:37.94 kernel  Cannot read, host process disconnected:  SPBPJY 3796 spid: 363
02:00000:00537:2010/06/03 14:17:31.56 kernel  Cannot read, host process disconnected:  ZHSH 3744 spid: 537
00:00000:00491:2010/06/03 14:50:07.60 kernel  Cannot read, host process disconnected:  TONGXUN 5896 spid: 491
00:00000:01000:2010/06/03 15:27:06.54 kernel  Cannot read, host process disconnected:  SPB 3492 spid: 1000
04:00000:00027:2010/06/03 15:50:28.00 kernel  Cannot read, host process disconnected:   spid: 27
00:00000:00820:2010/06/03 15:52:48.49 kernel  Cannot read, host process disconnected:   spid: 820
00:00000:00231:2010/06/03 15:54:47.60 kernel  Cannot read, host process disconnected:  CAIZQ 3560 spid: 231
04:00000:00328:2010/06/03 16:07:07.76 kernel  Cannot read, host process disconnected:  3952 spid: 328
01:00000:00427:2010/06/03 16:27:50.90 kernel  Cannot read, host process disconnected:   spid: 427
01:00000:00270:2010/06/03 16:35:22.87 kernel  Cannot read, host process disconnected:   spid: 270
02:00000:00352:2010/06/03 16:36:40.60 kernel  Cannot read, host process disconnected:   spid: 352
06:00000:00179:2010/06/03 16:38:22.77 kernel  Cannot read, host process disconnected:  DYXINJ 3192 spid: 179
02:00000:00947:2010/06/03 16:39:10.44 kernel  Cannot read, host process disconnected:   spid: 947
01:00000:00411:2010/06/03 16:39:46.43 kernel  Cannot read, host process disconnected:  CWSHM 3304 spid: 411
。。。
好像是许多请求都被杀掉了。。
不知道是什么原因,我只有重启后又会好下。。。
数据库:sybase  12.5 for linux

论坛徽章:
33
ChinaUnix元老
日期:2018-07-04 15:10:362015年亚洲杯之阿联酋
日期:2015-02-06 17:15:532015亚冠之武里南联
日期:2015-06-06 15:40:252015亚冠之北京国安
日期:2015-06-17 15:42:412022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:322015亚冠之阿尔纳斯尔
日期:2015-09-20 09:42:1215-16赛季CBA联赛之北京
日期:2016-01-15 10:03:5915-16赛季CBA联赛之青岛
日期:2016-04-26 16:44:4915-16赛季CBA联赛之广夏
日期:2018-07-04 15:33:21C
日期:2016-10-25 16:12:142017金鸡报晓
日期:2017-01-10 15:19:5615-16赛季CBA联赛之同曦
日期:2017-02-22 22:41:10
2 [报告]
发表于 2010-06-04 07:52 |只看该作者
上面的信息是你的客户端连接数据库的信息,你所说的慢是你的应用慢还是数据库里做SQL查询慢!

论坛徽章:
0
3 [报告]
发表于 2010-06-04 08:23 |只看该作者
嗯,谢谢,小弟在系统进程里面发现有许多名称相同的进程叫
    [status]     [User]      [command]
   rece sleep      N/A       MAINTENANCE TOKE
像这样的进程有许多,一旦出现这个情况,系统在查询、登录的时候都很慢,
除了服务器的IP可以PING 通,其它什么也不行。。。
要不重启一次,要不就要等很久系统又可以登录。。

不知道 是什么原因,是数据库本身出问题了吗?
请指教,谢谢!

论坛徽章:
6
水瓶座
日期:2014-06-04 03:34:37水瓶座
日期:2014-06-17 13:20:31数据库技术版块每日发帖之星
日期:2016-07-09 06:20:00数据库技术版块每日发帖之星
日期:2016-07-17 06:20:00数据库技术版块每日发帖之星
日期:2016-08-01 06:20:00数据库技术版块每日发帖之星
日期:2016-08-04 06:20:00
4 [报告]
发表于 2010-06-04 09:11 |只看该作者
本帖最后由 andkylee 于 2010-06-04 09:14 编辑

回复 3# youwei


>>>>    除了服务器的IP可以PING 通,其它什么也不行。。。
不明白你这话什么意思?


下面是国内一个牛人的回复。 你可以参考一下。
  
Jason L. Froebe [Team Sybase] wrote:
>; FlyBean wrote:
>;
>;>; Hi all,
>;>;
>;>;  After a TimeSlice error, there are some processes in "runnable"
>;>; status with cmd is "MAINTENANCE TOKE".
>;>;
>;>;  I am tried of the TimeSlice error. Please refer to my privious posts.
>;>;
>;>;
>;>; Best Regards
>;>;
>;>; FlyBean
>;
>;
>; Can you post the errorlog, the select @@version, and the 'cpu grace
>; time' and 'time slice' sp_configure options?
>;
>; the sp_configure 'time slice' option should always be set to 100.  If
>; anyone tells you differently, they are wrong to do so.
>;
>; the sp_configure "cpu grace time" option should be set to about 1500.
>; This will allow for delays in hostname resolutions, etc.  The default
>; setting of 500 is far too low.
>;
>; jason

version is : ASE 12.5.2 GA + EBF12060
time slice is default.
cpu grace time is 1000.

Please refer to news://forums.sybase.com:119/41b676b7@forums-1-dub to
get more detail.

And I have found that while some connect closed not correctly may cause
this trouble. There is a bug in old OLEDB driver which the driver should
close the socket after TDS_LOGOUT without an ack token from ASE. I sure
that 1608 errors were caused by this bug.

And I will adjust the cpu grace time to 1500.

Best Regards
FlyBean

论坛徽章:
0
5 [报告]
发表于 2010-06-04 10:06 |只看该作者
呵呵,小弟说的可以PING 通IP地址,是想说,操作系统是正常的,问题应该是在数据库上面;
上一位提出的方式,我正在试一下
sp_configure 'time slice' 这个参数的值当前是100,应该不用修改
sp_configure 'cpu grace time'  这个参数的值是500,应该是要修改为1500
我想了解一下,cpu grace time 这个参数的配置数,是根据什么来定的呢?修改了需要重启吗?
请各位多多指教,谢谢!

论坛徽章:
33
ChinaUnix元老
日期:2018-07-04 15:10:362015年亚洲杯之阿联酋
日期:2015-02-06 17:15:532015亚冠之武里南联
日期:2015-06-06 15:40:252015亚冠之北京国安
日期:2015-06-17 15:42:412022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:322015亚冠之阿尔纳斯尔
日期:2015-09-20 09:42:1215-16赛季CBA联赛之北京
日期:2016-01-15 10:03:5915-16赛季CBA联赛之青岛
日期:2016-04-26 16:44:4915-16赛季CBA联赛之广夏
日期:2018-07-04 15:33:21C
日期:2016-10-25 16:12:142017金鸡报晓
日期:2017-01-10 15:19:5615-16赛季CBA联赛之同曦
日期:2017-02-22 22:41:10
6 [报告]
发表于 2010-06-04 10:55 |只看该作者
看来你的数据库需要调优,你能否把你的服务器配置说一下,然后把你的配置贴出来看一下问题出在那?

论坛徽章:
6
水瓶座
日期:2014-06-04 03:34:37水瓶座
日期:2014-06-17 13:20:31数据库技术版块每日发帖之星
日期:2016-07-09 06:20:00数据库技术版块每日发帖之星
日期:2016-07-17 06:20:00数据库技术版块每日发帖之星
日期:2016-08-01 06:20:00数据库技术版块每日发帖之星
日期:2016-08-04 06:20:00
7 [报告]
发表于 2010-06-04 14:15 |只看该作者
回复 5# youwei


自己上官方网站搜索。
搜索cpu grace time 有介绍的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP