Comments (5)
你可以将dump给我,我帮你分析一下
from apollo.net.
文件太大了 压缩后71M
传不上去
from apollo.net.
from apollo.net.
我貌似找到原因了,同事对你们的客户端代码进行了封装,每次调用配置的时候都走了一遍 var builder = AddJsonConfig(); IConfiguration apolloConfiguration = builder.Build().GetSection("apollo"); try { IApolloConfigurationBuilder apolloBuilder = builder.AddApollo(apolloConfiguration);//注意:如果配置文件中没有添加apollo的配置,这里会异常 if (string.IsNullOrEmpty(namespaceName)) { apolloBuilder.AddDefault(); } else { apolloBuilder.AddNamespace(namespaceName); } config= builder.Build(); } catch (Exception ex) { config= builder.Build(); }
我猜想很有可能是每次都是创建了一个新的客户端与服务器的链接了导致的
我给他改了一下 加了一个静态字典存储起来以namespace为key下次要使用的话直接从字典里面获取
昨天测了一下内存情况是没有了,等下测试下配置修改了的话客户端能否拿到最新的配置
from apollo.net.
我按照我的思路测试了一下 阿波罗的功能都是正常的,的确是我同事代码有问题 已经改过来了
from apollo.net.
Related Issues (20)
- 能否提供“自动将配置Key中的点(.)转换成冒号(:)?” HOT 1
- apollo最新版本2.8.0热更新失效问题 HOT 1
- Apollo配置能否调整优先级低于本地文件appsettings.json配置和命令行 HOT 8
- .Framework4.5 中无法获取带Secret 的配置 HOT 2
- Update apollo demo server address
- .net6 客户端动态更新连接字符串等 HOT 1
- 怎么触发emergency pull over场景? HOT 3
- .netcore3.1启动初始化apollo要20多分钟 HOT 2
- .net6 使用WebApplication构建,热更新失败 HOT 4
- 更新至.netcore 7后,aspnetcore项目启动无法读取配置 HOT 5
- 希望提供一个winform的连接demo HOT 1
- 怎么让apollo的配置优先级高于配置文件appsettings.json呢 HOT 2
- Com.Ctrip.Framework.Apollo.OpenApi v2.1.1
- openapi release namespace issue HOT 10
- 同一个配置项,在不同命名空间时,优先级问题。 HOT 3
- dear 当我在apollo配置中心添加了一个json文件,IConfigurationRoot 无法获取json中的全部数据 HOT 3
- 在k8s环境中第一次拉取配置会偶尔失败 HOT 1
- dotnet获取apollo中的json配置的时候会乱码 HOT 10
- dotnet使用apollo的时候 发布配置项是json格式的数据,但是请求这个配置的时候获取数据乱码 HOT 5
- dotnet连接配置中心通过官方提供的SDK注入后 获取json配置乱码 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo.net.