You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Failed to refresh live data from process 12704 - com.xxxx.xx.xxx.BillingServiceApp after retries: 10 #748
changed the title [-]Failed to refresh live data from process 12704 - com.chinasoft.fuhsi.billing.BillingServiceApp after retries: 10[/-][+]Failed to refresh live data from process 12704 - com.xxxx.xx.xxx.BillingServiceApp after retries: 10[/+]on Mar 29, 2022
With the latest update to the Spring Tools for VSCode, this is triggered automatically after you launched a Spring Boot application, but it looks like this doesn't work somehow.
In order to disable this automatic behavior, you can go to the preferences and disable Live Information -> Automatic Tracking.
In order to solve the underlying issue, we need a few more details here:
does your project have Spring Boot Actuator on the dependency list?
how does the beginning on the log output looks like when you start the application (the command that is executed including the JVM options set)
Reacted by João Pedro de Moura Góes, hxhue and David Rodríguez
@Yaegar Maybe you can provide a small sample application that reproduces the behavior you are seeing?
And is there maybe a security setting on the machine that prevents the started app from being accessed va JMX from the tooling?
@sbreakey From the launch args it looks like the necessary args to enable this feature as not set automatically. How do you launch the app? And can you provide a sample app and a few steps how to reproduce this?
There is a preference to disable the automatic launch args settings and the automatic attempt to connect to the process to show live data in the preferences Boot-Java -> Live Information -> Automatic Connection - if you want to avoid this automatic connection and the error message from showing up.
But it would be good to find the root cause here in order to fix the underlying problem, so more details would be very much appreciated here.
And can you provide a sample app and a few steps how to reproduce this?
Sure here you go. It's literally an absolute bare bones gradle based, springboot 2.7.0 app generated by the initializer. Just open the "Run and Debug" screen in vscode and click "Run and Debug".
@sbreakey Thanks for the additional details, we will take a closer look here. The project doesn't have spring-boot-actuators in the classpath, so live hovers won't show up anyway, but the tooling should be smart enough to not make any attempts in that direction in such a situation. But lets have a closer look first.
Tried running a spring boot application on vscode and got Failed to refresh live data from process 12243 after retries: 10 - Source spring boot tools extension. Live hovers were not possible. I added actuator and also added -Dspring.liveBeansView.mbeanDomain and "vmArgs": "-Dspring.jmx.enabled=true" in the 'launch.json' file as described. But did not get any beans info or live hovers. It used to work on vscode 1.72 and spring boot 2.7.4.+ I now decided to migrate the code to spring boot 3.0.0 and vscode 1.73+ but I double if this issue is because of the versions.
Same problem here.
Spring Boot 3.0.0-RC2, vscode 1.73.1
Fedora 36, jdk 17
Failed to refresh live data from process 55015 after retries: 10
2022-11-14T11:00:39.055+01:00 INFO 55015 --- [ main] com.crud.tasks.TasksApplication : Starting TasksApplication using Java 17.0.5 with PID 55015 (/home/jarek/Dokumenty/markownie-webserwis/module_19.2/tasks/bin/main started by jarek in /home/jarek/Dokumenty/markownie-webserwis/module_19.2/tasks)
2022-11-14T11:00:39.060+01:00 INFO 55015 --- [ main] com.crud.tasks.TasksApplication : No active profile set, falling back to 1 default profile: "default"
2022-11-14T11:00:40.078+01:00 INFO 55015 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'management.metrics-org.springframework.boot.actuate.autoconfigure.metrics.MetricsProperties' of type [org.springframework.boot.actuate.autoconfigure.metrics.MetricsProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-11-14T11:00:40.396+01:00 INFO 55015 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2022-11-14T11:00:40.413+01:00 INFO 55015 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-11-14T11:00:40.414+01:00 INFO 55015 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.1]
2022-11-14T11:00:40.576+01:00 INFO 55015 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-11-14T11:00:40.576+01:00 INFO 55015 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1442 ms
2022-11-14T11:00:41.252+01:00 INFO 55015 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 1 endpoint(s) beneath base path '/actuator'
2022-11-14T11:00:41.328+01:00 INFO 55015 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2022-11-14T11:00:41.345+01:00 INFO 55015 --- [ main] com.crud.tasks.TasksApplication : Started TasksApplication in 2.684 seconds (process running for 3.239)
@iwangbowen We fixed this a while ago, the property is usually added automatically now when launching a Spring Boot app in VSCode (in case you have the Spring Boot Tools installed). Can you provide further details, maybe a sample app, and some steps how to reproduce this?
i got a similar error Failed to refresh live data from process service:jmx:rmi:///jndi/rmi://127.0.0.1:45557/jmxrmi after retries: 10 when i am running api gateway , here is my config file :
@phamtranxuantan This is related to the mechanism that automatically tries to connect the IDE to the running Spring Boot process to fetch live information from the running process. You can disable this mechanism. If you are using the Spring Tools in an Eclipse environment, you can uncheck the Auto connect to fetch live data option in the launch configuration of your Spring Boot app. If you are using Spring Tools in VSCode, there is a preference in the live-information category as well.
In addition to that, we could also try to find out why the IDE seems to fail to connect to your app. For that, it would be awesome if you could share a sample project that reproduces this.
Side note: the Spring Boot version that you are using (looks like you have 2.1.5 in use) is quite old and no longer maintained/supported, so I would recommend to upgrade to a more recent Spring Boot 3.4 version instead.
Activity
[-]Failed to refresh live data from process 12704 - com.chinasoft.fuhsi.billing.BillingServiceApp after retries: 10[/-][+]Failed to refresh live data from process 12704 - com.xxxx.xx.xxx.BillingServiceApp after retries: 10[/+]martinlippert commentedon Mar 29, 2022
This happens when the Spring Tools in VSCode try to fetch live information from the running app (in order to show live hovers): https://github.com/spring-projects/sts4/wiki/Live-Application-Information
With the latest update to the Spring Tools for VSCode, this is triggered automatically after you launched a Spring Boot application, but it looks like this doesn't work somehow.
In order to disable this automatic behavior, you can go to the preferences and disable
Live Information -> Automatic Tracking.In order to solve the underlying issue, we need a few more details here:
Carson-yy commentedon Mar 30, 2022
Spring Boot Actuator exists.
The beginning of the log is also normal.
martinlippert commentedon Mar 30, 2022
@Yaegar Can you paste the beginning of the log when starting the app here (the section that contains the launch arguments)?
martinlippert commentedon Mar 30, 2022
@Yaegar Maybe you can provide a small sample application that reproduces the behavior you are seeing?
And is there maybe a security setting on the machine that prevents the started app from being accessed va JMX from the tooling?
sbreakey commentedon May 26, 2022
I get this too.
Versions:
Vscode Version: 1.67.2 (Universal)
Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
Date: 2022-05-17T18:20:57.384Z (1 wk ago)
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Darwin x64 21.3.0
Launch args:
cd /Users/me/my-proj ; /usr/bin/env 'SOME_VAR=someval' /usr/local/Cellar/openjdk/17.0.2/libexec/openjdk.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:58218 -XX:+ShowCodeDetailsInExceptionMessages @/var/folders/d3/yzvcd0ws7nv56wfg9z_h7vtm0000gr/T/cp_15dsny3wqaz08lv5lggsbrp17.argfile com.example.myapp.MyAppServiceApplication --spring.profiles.active=localmartinlippert commentedon May 31, 2022
@sbreakey From the launch args it looks like the necessary args to enable this feature as not set automatically. How do you launch the app? And can you provide a sample app and a few steps how to reproduce this?
There is a preference to disable the automatic launch args settings and the automatic attempt to connect to the process to show live data in the preferences
Boot-Java -> Live Information -> Automatic Connection- if you want to avoid this automatic connection and the error message from showing up.But it would be good to find the root cause here in order to fix the underlying problem, so more details would be very much appreciated here.
sbreakey commentedon May 31, 2022
I use the vscode debugger (using the Microsoft "Debugger for Java" extension: vscjava.vscode-java-debug). My launch configuration is:
Sure here you go. It's literally an absolute bare bones gradle based, springboot 2.7.0 app generated by the initializer. Just open the "Run and Debug" screen in vscode and click "Run and Debug".
1 remaining item
martinlippert commentedon May 31, 2022
@sbreakey Thanks for the additional details, we will take a closer look here. The project doesn't have spring-boot-actuators in the classpath, so live hovers won't show up anyway, but the tooling should be smart enough to not make any attempts in that direction in such a situation. But lets have a closer look first.
BoykoAlex commentedon May 31, 2022
Fixed with 24117a4
negwu01 commentedon Nov 10, 2022
Tried running a spring boot application on vscode and got
Failed to refresh live data from process 12243 after retries: 10 - Source spring boot tools extension. Live hovers were not possible. I added actuator and also added-Dspring.liveBeansView.mbeanDomainand"vmArgs": "-Dspring.jmx.enabled=true"in the 'launch.json' file as described. But did not get any beans info or live hovers. It used to work on vscode 1.72 and spring boot 2.7.4.+ I now decided to migrate the code to spring boot 3.0.0 and vscode 1.73+ but I double if this issue is because of the versions.jarhuba commentedon Nov 14, 2022
Same problem here.
Spring Boot 3.0.0-RC2, vscode 1.73.1
Fedora 36, jdk 17
Failed to refresh live data from process 55015 after retries: 10
2022-11-14T11:00:39.055+01:00 INFO 55015 --- [ main] com.crud.tasks.TasksApplication : Starting TasksApplication using Java 17.0.5 with PID 55015 (/home/jarek/Dokumenty/markownie-webserwis/module_19.2/tasks/bin/main started by jarek in /home/jarek/Dokumenty/markownie-webserwis/module_19.2/tasks)
2022-11-14T11:00:39.060+01:00 INFO 55015 --- [ main] com.crud.tasks.TasksApplication : No active profile set, falling back to 1 default profile: "default"
2022-11-14T11:00:40.078+01:00 INFO 55015 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'management.metrics-org.springframework.boot.actuate.autoconfigure.metrics.MetricsProperties' of type [org.springframework.boot.actuate.autoconfigure.metrics.MetricsProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-11-14T11:00:40.396+01:00 INFO 55015 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2022-11-14T11:00:40.413+01:00 INFO 55015 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-11-14T11:00:40.414+01:00 INFO 55015 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.1]
2022-11-14T11:00:40.576+01:00 INFO 55015 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-11-14T11:00:40.576+01:00 INFO 55015 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1442 ms
2022-11-14T11:00:41.252+01:00 INFO 55015 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 1 endpoint(s) beneath base path '/actuator'
2022-11-14T11:00:41.328+01:00 INFO 55015 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2022-11-14T11:00:41.345+01:00 INFO 55015 --- [ main] com.crud.tasks.TasksApplication : Started TasksApplication in 2.684 seconds (process running for 3.239)
martinlippert commentedon Nov 14, 2022
@jarhuba @negwu01 In case you are running a Spring Boot 3 application, you might run into this issue: https://twitter.com/springtools4/status/1589591973878714368. So can you add this additional config to your
application.propertiesfile?management.endpoints.jmx.exposure.include=*to see if that fixes the issue?
jarhuba commentedon Nov 15, 2022
After adding this line vscode works correctly. Thank you.
iwangbowen commentedon Oct 15, 2024
I encountered the same issue
martinlippert commentedon Oct 21, 2024
@iwangbowen We fixed this a while ago, the property is usually added automatically now when launching a Spring Boot app in VSCode (in case you have the Spring Boot Tools installed). Can you provide further details, maybe a sample app, and some steps how to reproduce this?
BoykoAlex commentedon Oct 21, 2024
@iwangbowen it'd be great if you could share your Eclipse workspace folder zip in the case of Eclipse :-)
phamtranxuantan commentedon Jan 9, 2025
i got a similar error Failed to refresh live data from process service:jmx:rmi:///jndi/rmi://127.0.0.1:45557/jmxrmi after retries: 10 when i am running api gateway , here is my config file :
12 Greenwich.SR2 org.springframework.boot spring-boot-starter-actuator org.springframework.boot spring-boot-starter-data-redis org.springframework.boot spring-boot-starter-security org.springframework.boot spring-boot-starter-web org.springframework.cloud spring-cloud-starter-netflix-eureka-client org.springframework.cloud spring-cloud-starter-netflix-hystrix org.springframework.cloud spring-cloud-starter-netflix-ribbon org.springframework.cloud spring-cloud-starter-netflix-zuul org.springframework.session spring-session-data-redis org.springframework.session spring-session-jdbc org.springframework.cloud spring-cloud-starter-gateway com.microsoft.sqlserver mssql-jdbc runtime org.projectlombok lombok true org.springframework.boot spring-boot-starter-test test org.springframework.security spring-security-test test redis.clients jedis org.springframework.cloud spring-cloud-dependencies ${spring-cloud.version} pom import org.springframework.boot spring-boot-maven-plugin Someone please save me this error4.0.0
org.springframework.boot
spring-boot-starter-parent
2.1.5.RELEASE
com.rainbowforest
api-gateway
0.0.1-SNAPSHOT
api-gateway
Demo project for Spring Boot
martinlippert commentedon Jan 10, 2025
@phamtranxuantan This is related to the mechanism that automatically tries to connect the IDE to the running Spring Boot process to fetch live information from the running process. You can disable this mechanism. If you are using the Spring Tools in an Eclipse environment, you can uncheck the
Auto connect to fetch live dataoption in the launch configuration of your Spring Boot app. If you are using Spring Tools in VSCode, there is a preference in thelive-informationcategory as well.In addition to that, we could also try to find out why the IDE seems to fail to connect to your app. For that, it would be awesome if you could share a sample project that reproduces this.
Side note: the Spring Boot version that you are using (looks like you have
2.1.5in use) is quite old and no longer maintained/supported, so I would recommend to upgrade to a more recent Spring Boot 3.4 version instead.