【问题标题】:Understanding Grizzly 1.9.36 internals了解 Grizzly 1.9.36 内部结构
【发布时间】:2015-06-09 10:00:26
【问题描述】:

我在管理网页上启用了“SNOOP”配置(在 Transports -> tcp 下),以查看 grizzly 在幕后所做的事情。一旦我应用了更改,下面的内容就会打印在 server.log 中。从日志中,我无法理解为什么 Grizzly 在仅更改一个参数时再次初始化它的配置(这也是 SNOOP)。我解释 Grizzly 已初始化自身的方式是在 server.log 中编写的以下行。这只是糟糕的日志记录还是我解释不正确的东西。为什么框架会在更改一个参数时再次创建 HTTP 侦听器。

WEB0169: Created **HTTP listener** [http-listener-1] on host/port

下面的完整日志

  [#|2015-06-09T15:10:01.189+0530|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=62;_ThreadName=pool-78-thread-1;|WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]|#]

    [#|2015-06-09T15:10:01.202+0530|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=63;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 6ms - bound to [0.0.0.0:8080]|#]

    [#|2015-06-09T15:10:01.981+0530|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=62;_ThreadName=pool-78-thread-1;|WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]|#]

    [#|2015-06-09T15:10:02.003+0530|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=64;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 5ms - bound to [0.0.0.0:8181]|#]

    [#|2015-06-09T15:10:02.313+0530|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=62;_ThreadName=pool-78-thread-1;|WEB0169: Created HTTP listener [http-download-listener-1] on host/port [0.0.0.0:8585]|#]

    [#|2015-06-09T15:10:02.329+0530|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=65;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 5ms - bound to [0.0.0.0:8085]|#]

    [#|2015-06-09T15:10:03.250+0530|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=62;_ThreadName=pool-78-thread-1;|WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]|#]

    [#|2015-06-09T15:10:03.259+0530|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=66;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 3ms - bound to [0.0.0.0:8080]|#]

    [#|2015-06-09T15:10:04.018+0530|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=62;_ThreadName=pool-78-thread-1;|WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]|#]

    [#|2015-06-09T15:10:04.035+0530|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=67;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 4ms - bound to [0.0.0.0:8181]|#]

    [#|2015-06-09T15:10:04.342+0530|INFO|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=62;_ThreadName=pool-78-thread-1;|WEB0169: Created HTTP listener [http-download-listener-1] on host/port [0.0.0.0:8585]|#]

    [#|2015-06-09T15:10:04.355+0530|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=68;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.36 started in: 2ms - bound to [0.0.0.0:8585]|#]

【问题讨论】:

    标签: configuration glassfish-3 grizzly


    【解决方案1】:

    对传输的潜在更改可能会影响在传输之上运行的所有 http 侦听器。

    【讨论】:

    • 那么特别是在这种情况下,它会以影响服务的方式重新初始化侦听器吗?
    • AFAIR 网络层肯定会重新启动,至于 web 层 - 我不确定,最好仔细检查一下。
    猜你喜欢
    • 2019-01-08
    • 2010-09-21
    • 2019-10-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-10
    • 1970-01-01
    相关资源
    最近更新 更多