V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
eightqueen
V2EX  ›  程序员

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

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