• 请不要在回答技术问题时复制粘贴 AI 生成的内容
eightqueen
V2EX  ›  程序员

如何把 netty 的线程设置为守护线程?

  •  
  •   eightqueen · Sep 22, 2015 · 2713 views
    This topic created in 3913 days ago, the information mentioned may be changed or developed.
    我是在 spring 启动容器的时候开启 netty 服务,监听某个端口,当我把 tomcat 关闭后,进程号还在, netty 服务没有退出,用 jstack 看了一下:
    "nioEventLoopGroup-2-1" prio=10
    netty 的线程不是 daemon ,应该是这个原因。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5446 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 07:56 · PVG 15:56 · LAX 00:56 · JFK 03:56
    ♥ Do have faith in what you're doing.