When Redis cache is enabled, the urls that use the cache become slow , example is this url, which is a built in ABP method, can you please advise ? https://localhost:44374/api/abp/application-configuration?includeLocalizationResources=false
ABP version : 8.2.1
21 Answer(s)
-
0
Hi,
Can you share the logs of your application (log.txt) located under Logs folder?
-
0
Here is the log after calling this method : 025-04-08 09:33:16.095 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 11:25:52.195 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 11:34:50.867 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 11:38:00.856 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 11:44:06.664 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 12:54:23.527 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 13:50:29.554 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 13:57:41.272 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 14:26:11.671 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 15:08:47.859 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 15:12:42.677 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 15:15:09.521 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 15:18:32.809 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 15:24:26.036 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 16:31:25.838 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 16:43:29.578 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 16:51:41.995 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 16:53:19.587 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 20:40:01.685 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host. 2025-04-08 20:44:42.667 -04:00 [INF] Starting Cao.CatOs.HttpApi.Host.
-
0
I know these logs are not that helpful, but even in verbose mode , nothing outputted, Let me know how can we have more detailed log
-
0
Hi
To understand the problem better, could you please try creating a new ABP solution (with the same version and configration), and test if the same issue happens when Redis is enabled?
This will help us see if the problem is in your current project or something more general.
-
0
Hi , there is the log with verbose level , during this log, I have requested the API mentioned mentioned above . https://condominiumauthorityontario.sharepoint.com/:t:/s/ITDeptExternalSharingSite/EcT_lo1I5-NPtNPXN_MbWXsBnZgrf-tgWJMMkktq7U1-iA?e=dC0tNc
-
0
I reviewed the log you shared and saw that the request completed in 6.5 seconds. There are no connection issues with Redis or any other errors.
In general, this kind of response time may be related to the characteristics of your machine, as there are no unusual log entries.
Have you tried running the same project on a teammate’s computer? Also, do you observe similar response times when running a fresh ABP project created from scratch?
-
0
We run it on multiple machine even on azure instance, the Redis is not busy and there is no explanation why request takes all this time, and when we disable the Redis the request get served faster
-
0
hi
Can I reproduce it by connection your redis server?
If so, please share a connection info.
liming.ma@volosoft.com
Thanks.
-
0
-
0
hi sinancondo
Can you share debug logs that use the local Redis server?
liming.ma@volosoft.com
Thanks.
-
0
hi sinancondo
You can try running a Redis server in a local Docker container.
docker run -p 6379:6379 --name redis -d redis:alpine
-
0
I shared the log where redis is run locally Please check your email
-
0
hi
I didn't receive your mail.
Can you share it by https://wetransfer.com/
Thanks.
-
0
hi
Request finished HTTP/2 GET https://localhost:44374/api/abp/application-configuration?includeLocalizationResources=false - 200 null application/json; charset=utf-8 6670.617ms
Can you share a project? I will download and test it locally.
You can share it by Github or email.
Thanks.
-
0
I have to get approval to share the project , can you confirm you got the log file ? also would you be able to point me where in the source code this method use cache in ABP source code ? I want to have a look.
-
0
hi
Request finished HTTP/2 GET https://localhost:44374/api/abp/application-configuration?includeLocalizationResources=false - 200 null application/json; charset=utf-8 6670.617ms
You can override this
AbpApplicationConfigurationAppService
to debug and see which method takes too much time.Auth = await GetAuthConfigAsync(), Features = await GetFeaturesConfigAsync(), GlobalFeatures = await GetGlobalFeaturesConfigAsync(), Localization = await GetLocalizationConfigAsync(options), CurrentUser = GetCurrentUser(), Setting = await GetSettingConfigAsync(), MultiTenancy = GetMultiTenancy(), CurrentTenant = GetCurrentTenant(), Timing = await GetTimingConfigAsync(), Clock = GetClockConfig(), ObjectExtensions = _cachedObjectExtensionsDtoService.Get(), ExtraProperties = new ExtraPropertyDictionary()
https://github.com/abpframework/abp/blob/rel-8.2/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationConfigurations/AbpApplicationConfigurationAppService.cs#L86-L123
-
0
Application was sent to your email , please let me know if you have any finding.
-
0
hi
Thanks. I will check your project.
-
0
-
0
Can you please share your hardware configuration that the Redis server was running on ? (CPU/RAM)
-
0