找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 41|回复: 6

小鸡跑bench测速脚本,总出报错是怎么回事

[复制链接]

200

主题

1411

回帖

3470

积分

论坛元老

积分
3470
发表于 2019-1-19 21:28:08 | 显示全部楼层 |阅读模式

别的小鸡都正常,就这只有问题,换了系统还是老样子

会弹出类似python相关的报错,这是哪里问题呢?

好多脚本都因此卡住,跑不下去了
[ol]
  • uhehaote   : 254.85 ms  Urumqi      : 281.48 ms  Hangzhou    : 282.12 ms  
  • Xi an       : 309.81 ms  Ningbo      : 306.99 ms  Taiyuan     : Fail      
  • Suzhou      : 315.64 ms  Changsha    : 305.88 ms  Harbin      : 308.97 ms  
  • Beijing     : 243.03 ms  Chengdu     : 330.62 ms  Jinan       : 301.08 ms  
  • Nanjing     : 307.95 ms  Ningxia     : 296.83 ms  Fuzhou      : 285.56 ms  
  • --------------------------------------------------------------------------
  • Traceback (most recent call last):
  •   File "Generate.py", line 624, in
  •     shm = traceroute_to_dict("/tmp/shm.txt")
  •   File "Generate.py", line 29, in traceroute_to_dict
  •     res_data = urllib2.urlopen(req)
  •   File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
  •     return opener.open(url, data, timeout)
  •   File "/usr/lib64/python2.7/urllib2.py", line 431, in open
  •     response = self._open(req, data)
  •   File "/usr/lib64/python2.7/urllib2.py", line 449, in _open
  •     '_open', req)
  •   File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
  •     result = func(*args)
  •   File "/usr/lib64/python2.7/urllib2.py", line 1244, in http_open
  •     return self.do_open(httplib.HTTPConnection, req)
  •   File "/usr/lib64/python2.7/urllib2.py", line 1214, in do_open
  •     raise URLError(err)
  • urllib2.URLError:
  • cat: /tmp/shm.txt_table: No such file or directory
  • cat: /tmp/sht.txt_table: No such file or directory
  • cat: /tmp/shu.txt_table: No such file or directory
  • cat: /tmp/gdm.txt_table: No such file or directory
  • cat: /tmp/gdt.txt_table: No such file or directory
  • cat: /tmp/gdu.txt_table: No such file or directory
  • curl: (6) Could not resolve host: api.zbench.kirito.moe; Unknown error
  • Result Address:https://zbench.kirito.moe/record.php?IKEY=
  • Your bench data is saved to /root/report.html
  • Do you want to check your Test Report? [y/n]: ^C
  • [/ol]复制代码
  • 回复

    使用道具 举报

    0

    主题

    71

    回帖

    154

    积分

    注册会员

    积分
    154
    发表于 2019-1-19 21:30:41 | 显示全部楼层
    换个脚本试试
    回复

    使用道具 举报

    200

    主题

    1411

    回帖

    3470

    积分

    论坛元老

    积分
    3470
     楼主| 发表于 2019-1-19 21:32:27 | 显示全部楼层

    奔跑吧蜗牛c 发表于 2019-1-19 21:30

    换个脚本试试

    试了几个,都有或多或少报错,好奇怪

    这些脚本我以前用都没问题的,刚刚试了别的小鸡也正常
    回复

    使用道具 举报

    24

    主题

    51

    回帖

    184

    积分

    注册会员

    积分
    184
    发表于 2019-1-19 21:30:00 | 显示全部楼层

    h5i 发表于 2019-1-19 21:33

    网络问题?

    好像不是,比如这个脚本,刚跑到测IO的部分,就一直报错

    好迷啊,跟小鸡是OVZ有关吗
    [ol]
  • wget -qO- git.io/superbench.sh | bash[/ol]复制代码
  • 回复

    使用道具 举报

    200

    主题

    1411

    回帖

    3470

    积分

    论坛元老

    积分
    3470
     楼主| 发表于 2019-1-19 21:33:06 | 显示全部楼层
    母鸡做了限制了
    回复

    使用道具 举报

    47

    主题

    498

    回帖

    1155

    积分

    金牌会员

    积分
    1155
    发表于 2019-1-19 21:37:16 | 显示全部楼层
    可能系统有限制io如果占用过高直接结束进程
    回复

    使用道具 举报

    0

    主题

    71

    回帖

    154

    积分

    注册会员

    积分
    154
    发表于 2019-1-19 21:33:00 | 显示全部楼层

    奔跑吧蜗牛c 发表于 2019-1-19 21:46

    可能系统有限制io如果占用过高直接结束进程



    dalao这个说法有可能,这家确实是OVZ,限制这个的可能很大
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Discuz! X

    GMT+8, 2025-4-24 21:55 , Processed in 0.016750 second(s), 4 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

    快速回复 返回顶部 返回列表