Open Closed

API become slow after enabling Redis server. #9088


User avatar
0
sinancondo created

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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

21 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hi,

    Can you share the logs of your application (log.txt) located under Logs folder?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sinancondo created

    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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sinancondo created

    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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sinancondo created

    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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    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?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sinancondo created

    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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can I reproduce it by connection your redis server?

    If so, please share a connection info.

    liming.ma@volosoft.com

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I can't connect with your Redis server. So I can't test the application speed.

    Can you use local Redis to test? We can make sure the problem is about remote Redis.

    docker run -p 6379:6379 --name redis -d redis:alpine

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi sinancondo

    Can you share debug logs that use the local Redis server?

    liming.ma@volosoft.com

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi sinancondo

    You can try running a Redis server in a local Docker container.

    docker run -p 6379:6379 --name redis -d redis:alpine

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sinancondo created

    I shared the log where redis is run locally Please check your email

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I didn't receive your mail.

    Can you share it by https://wetransfer.com/

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sinancondo created

    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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sinancondo created

    Application was sent to your email , please let me know if you have any finding.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Thanks. I will check your project.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I run your app locally with Docker Redis. It is very fast.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    sinancondo created

    Can you please share your hardware configuration that the Redis server was running on ? (CPU/RAM)

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    My computer is just an ordinary machine. I run other apps at the same speed, and no one has reported that the local Redis is slow. Maybe you can create a new template project to test Redis on another PC.

    Thanks

    docker run -p 6379:6379 --name redis -d redis:alpine

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 21, 2026, 06:18
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.