You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "vivian123an (via GitHub)" <gi...@apache.org> on 2023/04/20 09:41:30 UTC

[GitHub] [dubbo] vivian123an opened a new issue, #12149: main thread blocked

vivian123an opened a new issue, #12149:
URL: https://github.com/apache/dubbo/issues/12149

   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.1.5
   * Java version: 1.8
   * Spring Boot: 2.3.4
   * RocketMQ: 4.7.1
   
   ### Steps to reproduce this issue
   
   1. start application
   2. main thread blocked
   3. http /actuactor/health timeout
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### application startup normal 
   
   <!-- What do you expect from the above steps?-->
   
   ### application startup failed with timeout
   
   <!-- What actually happens? -->
   
   If there is an exception, please attach the exception trace:
   
   ```
   "main" Id=1 BLOCKED on [java.util.concurrent.ConcurrentHashMap@84acfcd](https://wiki.was.ink/display/DEV/java.util.concurrent.ConcurrentHashMap@84acfcd) owned by "ConsumeMessageThread_10" Id=188
       at [org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:191)](https://wiki.was.ink/display/DEV/org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:191))
       -  blocked on [java.util.concurrent.ConcurrentHashMap@84acfcd](https://wiki.was.ink/display/DEV/java.util.concurrent.ConcurrentHashMap@84acfcd)
       at [org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:134)](https://wiki.was.ink/display/DEV/org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:134))
       at [org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404)](https://wiki.was.ink/display/DEV/org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404))
       at [org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361)](https://wiki.was.ink/display/DEV/org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361))
       at [org.apache.dubbo.config.spring.ServiceBean.publishExportEvent(ServiceBean.java:133)](https://wiki.was.ink/display/DEV/org.apache.dubbo.config.spring.ServiceBean.publishExportEvent(ServiceBean.java:133))
       at [org.apache.dubbo.config.spring.ServiceBean.exported(ServiceBean.java:125)](https://wiki.was.ink/display/DEV/org.apache.dubbo.config.spring.ServiceBean.exported(ServiceBean.java:125))
       at [org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:392)](https://wiki.was.ink/display/DEV/org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:392))
       at [org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:243)](https://wiki.was.ink/display/DEV/org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:243))
       at [org.apache.dubbo.config.deploy.DefaultModuleDeployer.exportServiceInternal(DefaultModuleDeployer.java:350)](https://wiki.was.ink/display/DEV/org.apache.dubbo.config.deploy.DefaultModuleDeployer.exportServiceInternal(DefaultModuleDeployer.java:350))
       at [org.apache.dubbo.config.deploy.DefaultModuleDeployer.exportServices(DefaultModuleDeployer.java:322)](https://wiki.was.ink/display/DEV/org.apache.dubbo.config.deploy.DefaultModuleDeployer.exportServices(DefaultModuleDeployer.java:322))
       at [org.apache.dubbo.config.deploy.DefaultModuleDeployer.startSync(DefaultModuleDeployer.java:158)](https://wiki.was.ink/display/DEV/org.apache.dubbo.config.deploy.DefaultModuleDeployer.startSync(DefaultModuleDeployer.java:158))
       at [org.apache.dubbo.config.deploy.DefaultModuleDeployer.start(DefaultModuleDeployer.java:139)](https://wiki.was.ink/display/DEV/org.apache.dubbo.config.deploy.DefaultModuleDeployer.start(DefaultModuleDeployer.java:139))
       at [org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onContextRefreshedEvent(DubboDeployApplicationListener.java:113)](https://wiki.was.ink/display/DEV/org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onContextRefreshedEvent(DubboDeployApplicationListener.java:113))
       at [org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:102)](https://wiki.was.ink/display/DEV/org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:102))
       at [org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:47)](https://wiki.was.ink/display/DEV/org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:47))
       at [org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)](https://wiki.was.ink/display/DEV/org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172))
       at [org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)](https://wiki.was.ink/display/DEV/org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165))
       at [org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)](https://wiki.was.ink/display/DEV/org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139))
       at [org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404)](https://wiki.was.ink/display/DEV/org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404))
       at [org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361)](https://wiki.was.ink/display/DEV/org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361))
       at [org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:898)](https://wiki.was.ink/display/DEV/org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:898))
       at [org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554)](https://wiki.was.ink/display/DEV/org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554))
       at [org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)](https://wiki.was.ink/display/DEV/org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143))
       at [org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)](https://wiki.was.ink/display/DEV/org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758))
       at [org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)](https://wiki.was.ink/display/DEV/org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750))
       at [org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)](https://wiki.was.ink/display/DEV/org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397))
       at [org.springframework.boot.SpringApplication.run(SpringApplication.java:315)](https://wiki.was.ink/display/DEV/org.springframework.boot.SpringApplication.run(SpringApplication.java:315))
       at [org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)](https://wiki.was.ink/display/DEV/org.springframework.boot.SpringApplication.run(SpringApplication.java:1237))
       at [org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)](https://wiki.was.ink/display/DEV/org.springframework.boot.SpringApplication.run(SpringApplication.java:1226))
       at [com.watsons.membership.app.MembershipMain.main(MembershipMain.java:28)](https://wiki.was.ink/display/DEV/com.watsons.membership.app.MembershipMain.main(MembershipMain.java:28))
       at [sun.reflect.NativeMethodAccessorImpl.invoke0(Native](https://wiki.was.ink/display/DEV/sun.reflect.NativeMethodAccessorImpl.invoke0(Native) Method)
       at [sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)](https://wiki.was.ink/display/DEV/sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62))
       at [sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)](https://wiki.was.ink/display/DEV/sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43))
       at [java.lang.reflect.Method.invoke(Method.java:498)](https://wiki.was.ink/display/DEV/java.lang.reflect.Method.invoke(Method.java:498))
       at [org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)](https://wiki.was.ink/display/DEV/org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49))
       at [org.springframework.boot.loader.Launcher.launch(Launcher.java:107)](https://wiki.was.ink/display/DEV/org.springframework.boot.loader.Launcher.launch(Launcher.java:107))
       at [org.springframework.boot.loader.Launcher.launch(Launcher.java:58)](https://wiki.was.ink/display/DEV/org.springframework.boot.loader.Launcher.launch(Launcher.java:58))
       at [org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)](https://wiki.was.ink/display/DEV/org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88))
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #12149: publishExportEvent blocked spring main thread

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #12149:
URL: https://github.com/apache/dubbo/issues/12149#issuecomment-1521108966

   Could you please provide the stack trace of `ConsumeMessageThread_10`?
   
   Seems block due to spring


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] publishExportEvent blocked spring main thread [dubbo]

Posted by "CrazyHZM (via GitHub)" <gi...@apache.org>.
CrazyHZM closed issue #12149: publishExportEvent blocked spring main thread
URL: https://github.com/apache/dubbo/issues/12149


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org