精选文章 Heron UI页面响应迟缓及解决方法

Heron UI页面响应迟缓及解决方法

作者:一天_pika 时间: 2019-11-06 12:16:22
一天_pika 2019-11-06 12:16:22

问题描述

在Heron集群(Aurora+Mesos+Zookeeper+HDFS)运行正常的情况下,在依次运行heron-tracker和heron-ui之后。heron-tracker相关的8888端口页面响应正常,但heron-ui的8889端口的页面响应异常缓慢,甚至于打不开该页面。其中,Heron-tracker和Heron-UI命令运行的部分输出如下所示:

heron-tracker output

yitian@heron04:~$ heron-tracker --verbose
[2018-03-27 04:53:41 +0000] [INFO]: Connecting to zk hostports: [('heron04', 2181)] rootpath: /heron
[2018-03-27 04:53:41 +0000] [DEBUG]: ZK loop started
[2018-03-27 04:53:41 +0000] [DEBUG]: Skipping state change
[2018-03-27 04:53:41 +0000] [INFO]: Connecting to heron04:2181
[2018-03-27 04:53:41 +0000] [DEBUG]:     Using session_id: None session_passwd: 00000000000000000000000000000000
[2018-03-27 04:53:41 +0000] [INFO]: Sending request(xid=None): Connect(protocol_version=0, last_zxid_seen=0, time_out=10000, session_id=0, passwd='\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', read_only=None)
[2018-03-27 04:53:41 +0000] [DEBUG]: Read response Connect(protocol_version=0, last_zxid_seen=0, time_out=10000, session_id=99755698212438030, passwd='\x17H\xb5\x19E\x14:\x03\x8a\x89dX\x9a\x1cZ\xde', read_only=False)
[2018-03-27 04:53:41 +0000] [DEBUG]: Session created, session_id: 99755698212438030 session_passwd: 1748b51945143a038a8964589a1c5ade
    negotiated session timeout: 10000
    connect timeout: 10000
    read timeout: 6666.66666667
[2018-03-27 04:53:41 +0000] [INFO]: Zookeeper connection established, state: CONNECTED
[2018-03-27 04:53:41 +0000] [INFO]: Sending request(xid=1): Exists(path='/heron/topologies', watcher=None)
[2018-03-27 04:53:41 +0000] [DEBUG]: Reading for header ReplyHeader(xid=1, zxid=1596, err=0)
[2018-03-27 04:53:41 +0000] [INFO]: Received response(xid=1): ZnodeStat(czxid=96, mzxid=96, ctime=1520689567390, mtime=1520689567390, version=0, cversion=26, aversion=0, ephemeralOwner=0, dataLength=0, numChildren=0, pzxid=1518)
[2018-03-27 04:53:41 +0000] [INFO]: Adding children watch for path: /heron/topologies
[2018-03-27 04:53:41 +0000] [INFO]: Sending request(xid=2): GetChildren(path='/heron/topologies', watcher=>)
[2018-03-27 04:53:41 +0000] [DEBUG]: Reading for header ReplyHeader(xid=2, zxid=1596, err=0)
[2018-03-27 04:53:41 +0000] [INFO]: Received response(xid=2): []
[2018-03-27 04:53:41 +0000] [INFO]: State watch triggered for topologies.
[2018-03-27 04:53:41 +0000] [DEBUG]: Topologies: []
[2018-03-27 04:53:41 +0000] [DEBUG]: Existing topologies: []
[2018-03-27 04:53:41 +0000] [INFO]: Tracker has started
[2018-03-27 04:53:41 +0000] [INFO]: Running on port: 8888
[2018-03-27 04:53:41 +0000] [INFO]: Using config file: /home/yitian/.herontools/conf/heron_tracker.yaml
[2018-03-27 04:53:41 +0000] [INFO]: Using state manager:
    type: zookeeper
    name: aurorazk
    hostport: heron04:2181
    rootpath: /heron
    tunnelhost: 127.0.0.1
[2018-03-27 04:53:44 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:53:44 +0000] [DEBUG]: Received Ping
[2018-03-27 04:53:47 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:53:47 +0000] [DEBUG]: Received Ping
[2018-03-27 04:53:50 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:53:50 +0000] [DEBUG]: Received Ping
[2018-03-27 04:53:53 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:53:53 +0000] [DEBUG]: Received Ping
[2018-03-27 04:53:56 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:53:56 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:00 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:00 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:03 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:03 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:06 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:06 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:09 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:09 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:12 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:12 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:16 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:16 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:19 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:19 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:22 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:22 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:25 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:25 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:28 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:28 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:31 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:31 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:34 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:34 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:38 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:38 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:41 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:41 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:44 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:44 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:47 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:47 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:50 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:50 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:53 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:53 +0000] [DEBUG]: Received Ping
[2018-03-27 04:54:57 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:54:57 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:00 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:00 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:03 +0000] [INFO]: 302 GET / (218.195.228.52) 0.47ms
[2018-03-27 04:55:03 +0000] [INFO]: 200 GET /topologies (218.195.228.52) 1.11ms
[2018-03-27 04:55:03 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:03 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:06 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:06 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:09 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:09 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:12 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:12 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:15 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:15 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:19 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:19 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:20 +0000] [INFO]: 200 GET /clusters (127.0.0.1) 1.13ms
[2018-03-27 04:55:22 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:22 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:25 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:25 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:28 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:28 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:31 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:31 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:35 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:35 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:38 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:38 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:41 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:41 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:44 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:44 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:47 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:47 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:50 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:50 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:54 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:54 +0000] [DEBUG]: Received Ping
[2018-03-27 04:55:57 +0000] [DEBUG]: Sending request(xid=-2): Ping()
[2018-03-27 04:55:57 +0000] [DEBUG]: Received Ping

heron-ui output

yitian@heron04:~$ heron-ui
[2018-03-27 04:54:56 +0000] [INFO]: Listening at http://0.0.0.0:8889
[2018-03-27 04:54:56 +0000] [INFO]: Using tracker url: http://127.0.0.1:8888
[2018-03-27 04:54:56 +0000] [INFO]: Using base url: 
[2018-03-27 04:54:56 +0000] [INFO]: static/
[2018-03-27 04:55:20 +0000] [INFO]: 302 GET / (218.195.228.52) 1.10ms
[2018-03-27 04:55:20 +0000] [INFO]: 304 GET /topologies (218.195.228.52) 32.23ms
[2018-03-27 04:56:18 +0000] [INFO]: 304 GET /topologies (218.195.228.52) 16.55ms
[2018-03-27 04:56:49 +0000] [INFO]: 302 GET / (218.195.228.52) 0.49ms
[2018-03-27 04:56:49 +0000] [INFO]: 304 GET /topologies (218.195.228.52) 19.84ms
[2018-03-27 04:58:31 +0000] [INFO]: 304 GET /topologies (218.195.228.52) 21.27ms
[2018-03-27 05:09:09 +0000] [INFO]: 304 GET /topologies (218.195.228.52) 17.40ms
[2018-03-27 05:09:20 +0000] [INFO]: 302 GET / (218.195.228.52) 0.58ms
[2018-03-27 05:09:20 +0000] [INFO]: 304 GET /topologies (218.195.228.52) 22.01ms
[2018-03-27 05:25:05 +0000] [INFO]: 304 GET /static/icomoon/fonts/icomoon.woff (218.195.228.52) 42.05ms
[2018-03-27 05:25:06 +0000] [INFO]: 304 GET /topologies/list.json?format=json (218.195.228.52) 8.86ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /topologies (218.195.228.52) 27.29ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/js/html5-trunk.js?v=fb4e3b19e8946427b114623ad94b0a95 (218.195.228.52) 2.58ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/icomoon/style.css?v=edd234c46bdb637f5f7e58054a65c6a2 (218.195.228.52) 1.37ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/css/bootstrap.css?v=812fbd784e634f6845fc675f491b0ac7 (218.195.228.52) 2.54ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/css/main.css?v=6d4305fc162e7355d530a5046a64ac84 (218.195.228.52) 1.42ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/js/react.0.10.0.js?v=ca46fb54cac4eb9cba1b5095165bbecc (218.195.228.52) 4.93ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/js/moment.min.2.8.3.js?v=fb1459c44efd3f78660da41d54c0334d (218.195.228.52) 2.26ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/js/jquery.min.js?v=0d33c81bb4a02431256f277ede6f7835 (218.195.228.52) 3.36ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/css/visstyle.css?v=58dca7d9ec00790a139a346c8b26ed46 (218.195.228.52) 0.78ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/js/underscore-min.1.6.0.js?v=95a2cc3b802d513c3b3f32719b8201c7 (218.195.228.52) 1.42ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/js/bootstrap.js?v=5a467e5962c007563c7f4d33e3e163aa (218.195.228.52) 1.64ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/js/jquery-ui-1.8.23.custom.min.js?v=ddaf8344c5a0ab61a60714aff9bac0b7 (218.195.228.52) 1.84ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/js/list.min.1.1.1.js?v=7793da8ec40627b4c407142ad14fb8c1 (218.195.228.52) 1.64ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/js/common.js?v=c9755e098126b1e7991a88da4f544b09 (218.195.228.52) 1.94ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/js/JSXTransformer.0.10.0.js?v=8487160f81a1070dcc65ca148f61c2ea (218.195.228.52) 2.79ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/js/d3.min.3.4.11.js?v=ab48526d94afd72181cb914f3d176ff6 (218.195.228.52) 2.00ms
[2018-03-27 05:30:57 +0000] [INFO]: 304 GET /static/js/alltopologies.js?v=f8c85a68431c733aa0781fdaa30ddd8e (218.195.228.52) 1.92ms
[2018-03-27 05:38:43 +0000] [INFO]: 304 GET /topologies (218.195.228.52) 28.70ms

Stack Overflow相关提问

https://stackoverflow.com/questions/49386914/why-opening-heron-ui-is-very-slow


补充解决方法

在尝试Stack Overflow中提问无果的情况,并且自己实在无法找到错误的情况下,试着在运行heron master主机的笔记本上(处于相同网段内),使用IP作为URL地址尝试打开heron ui的界面。

结果可以正常响应打开。因此,可以在虚拟机中的浏览器中,使用mesos和aurora,hdfs的相关页面链接。而将heron ui的页面在非虚拟机的笔记本的浏览器打开即可。

——2018-04-07

勿删,copyright占位
分享文章到微博
分享文章到朋友圈

上一篇:Java内存模型相关原则详解

下一篇:分布式文件系统ChubaoFS开源

您可能感兴趣

  • 关于前端学习路线的一些建议

    前言 对于刚开始学习前端的伙伴俩说,问得最多的问题就是 ——前端技术现在如此繁杂,我到底应该如何学习。这个话题太大了,几句话回答不好;也由于这个问题确实困扰了很多前端开发人员,所以我也就着手系统的输出这篇文章。 虽然这篇文章花了很长时间,肯定也有其局限性;希望各位不吝指出。 入题 我们俨然能感受到前端岗位现在已经发展成了最重要的研发岗位之一,所以对我们提出的要求也就越来越高。所以我们需要学的...

  • “分库分表”与“NewSQL”如何选择?

    “ 最近与同行交流,经常被问到分库分表与分布式数据库如何选择。 图片来自 Pexels 网上也有很多关于中间件+传统关系数据库(分库分表)与 NewSQL 分布式数据库的文章,但有些观点与判断是我觉得是偏激的,脱离环境去评价方案好坏其实有失公允。 本文通过对两种模式关键特性实现原理对比,希望可以尽可能客观、中立的阐明各自真实的优缺点以及适用场景。 NewSQL 数据库先进在哪儿? 首先关于“...

  • vue知识点总结

    # 1.ES6新增? *1、变量的改变* *let:代码块内有效;不能重复声明;不存在变量提升* *const:只读变量,声明之后不允许改变。意味着,一旦声明必须初始化,否则会报错。;* *2、模版字符串(``)* *3、函数* **1、箭头函数 (sender) => { } 箭头函数最直观的三个特点。 不需要function关键字 可以省略return关键字 继承当前上下文的this关键...

  • 字节跳动面经整理

    1. 操作系统: 进程和线程介绍; 进程或线程死锁介绍; 多进程,多线程的并发执行带来的问题-死锁 死锁是指多个进程(线程)在执行过程中,由于竞争资源或者彼此通信而造成的一种阻塞的现象(互相挂起等待),若无外力他们都将无法推进下去。 银行家算法 了解活锁吗?(没听过) 操作系统中的堆和栈; 栈(操作系统):由编译器自动分配释放,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中栈,...

  • 浅谈微服务体系中的分层设计和领域划分

    引言 看标题感觉这个东西很理论,比起“高并发、多线程”、“分布式CAP、一致性、Paxos”、“高可用SLA”等具体的干货技术点,软件体系知识显得很“湿”,似乎人人都有自己的认识,但又很少有人能说完整,有一点可以确定的是,如果你未来需要独立设计一个复杂的系统中台,并使之未来能快速应对各种需求变化的话,科学合理的领域划分和边界界定需要我们“处女座级”的坚持下去,这对防止人力失控、减少项目烂尾很...

  • [转载]Redis常见问题 | 缓存穿透、击穿、雪崩、预热、更新、降级及对应的解决方案

    Redis是高性能的分布式内存数据库,对于内存数据库经常会出现下面几种情况,也经常会出现在Redis面试题中:缓存穿透、缓存击穿、缓存雪崩、缓存预热、缓存更新、缓存降级。本文分别介绍这些概念以及对应的解决方案。 缓存穿透 当查询Redis中没有的数据时,该查询会下沉到数据库层,同时数据库层也没有该数据,当这种情况大量出现或被恶意攻击时,接口的访问全部透过Redis访问数据库,而数据库中也没有...

  • GitHub 上值得收藏的 100 个精选前端项目!

    点击上方“逆锋起笔”,公众号回复 PDF 领取大佬们推荐的学习资料 来 源:https://www.jianshu.com/p/72ca8192f7b8 引言 整理与收集的一些比较优秀github项目,方便自己阅读,顺便分享出来,大家一起学习,作者简书上文章会持续更新,版权归原作者所有。 最新更新 codepen 一个在线编辑前端项目的网站,其中有一些前端大神的作品,也有很多令人惊艳的前端效...

  • Android视频的操作

    上节课我们着重介绍了Android中的音频的处理,通过学习,我们已经熟悉并掌握了多媒体开发的几个操作,大致可以分为:a 播放和采集 编解码处理 算法处理,实现特殊功能 标准协议以及播放器工具类的开发 本节课我们来看一下Android的视频的相关操作。Android提供了常见的视频的编码、解码机制。使用Android自带的MediaPlayer、MediaController等类可以很方便的实...

华为云40多款云服务产品0元试用活动

免费套餐,马上领取!
CSDN

CSDN

中国开发者社区CSDN (Chinese Software Developer Network) 创立于1999年,致力为中国开发者提供知识传播、在线学习、职业发展等全生命周期服务。