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

SpingBoot 项目整合 rabbitmq,启动速度慢

  •  
  •   sun1992 · Mar 22, 2018 · 3870 views
    This topic created in 2962 days ago, the information mentioned may be changed or developed.

    SpringBoot + Rabbitmq,启动的时候发现速度贼慢,和 mq 服务器的连接创建之后项目会卡一分钟。

    在下面这条日志出现后会卡一分钟。

    2018-03-22 20:42:56.467 [INFO] [org.springframework.amqp.rabbit.connection.CachingConnectionFactory:359] Created new connection: SimpleConnection@392543a5 [delegate=amqp://[email protected]:5672/, localPort= 51495]
    

    另外,如果配置两个队列,这两个队列在同一个服务器上,则后一个队列初始化时无卡顿;如果是在两个服务器上,则各卡一分钟。

    如果启动时把 mq 服务器关掉,则不会出现卡顿。

    想请教下有没有大佬碰到过这样的问题,或者有解决的思路?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2455 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 11:40 · PVG 19:40 · LAX 04:40 · JFK 07:40
    ♥ Do have faith in what you're doing.