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

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

  •  
  •   eightqueen · Sep 22, 2015 · 2698 views
    This topic created in 3896 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   ·   2888 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 254ms · UTC 06:41 · PVG 14:41 · LAX 23:41 · JFK 02:41
    ♥ Do have faith in what you're doing.