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


9 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?

  • 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.

  • 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

  • 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.

  • 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

  • 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.

    Screenshot 2025-04-10 at 12.42.37.png

    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?

  • 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

  • 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.

  • 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

    image.png

    Thanks.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13