Ends in:
7 DAYS
20 HRS
58 MIN
34 SEC
Ends in:
7 D
20 H
58 M
34 S
Open Closed

Slow on localhost #2114


User avatar
0
LawrenceKwan created

Hello All

I find that It is very slow for build and run the abp commercial project. Is it running slow too on localhost? anyway to improve it?Wait up to minutes to add a new menu or page, showing up the page is slow too.

  • ABP Framework version: v4.4.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

5 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @LawrenceKwan, do you use the Redis? It can be really helpful to downgrade the response time.

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hello,

    Slowness is a very relative concept, how much of a slowness are we talking about?

    I see that you are in a tiered structure. Is the Redis server up?
    If Redis is not up please see here 👉 https://stackoverflow.com/a/69371513/9922629

    If redis is up can you send logs of a run cycle, please?

  • User Avatar
    0
    LawrenceKwan created

    Hi @LawrenceKwan, do you use the Redis? It can be really helpful to downgrade the response time.

    Yes, I have redis sever now, the project run sucess.

    identity server connect redis then connect other 2021-11-11 14:09:51.824 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule ........ 2021-11-11 14:09:51.964 +08:00 [DBG] Started background worker: Volo.Abp.IdentityServer.Tokens.TokenCleanupBackgroundWorker 2021-11-11 14:09:52.147 +08:00 [INF] Starting IdentityServer4 version 4.1.1+cebd52f5bc61bdefc262fd20739d4d087c6f961f 2021-11-11 14:09:52.793 +08:00 [INF] Using the default authentication scheme Identity.Application for IdentityServer 2021-11-11 14:09:52.793 +08:00 [DBG] Using Identity.Application as default ASP.NET Core scheme for authentication 2021-11-11 14:09:52.793 +08:00 [DBG] Using Identity.External as default ASP.NET Core scheme for sign-in 2021-11-11 14:09:52.793 +08:00 [DBG] Using Identity.External as default ASP.NET Core scheme for sign-out 2021-11-11 14:09:52.793 +08:00 [DBG] Using Identity.Application as default ASP.NET Core scheme for challenge 2021-11-11 14:09:52.793 +08:00 [DBG] Using Identity.Application as default ASP.NET Core scheme for forbid 2021-11-11 14:09:53.347 +08:00 [INF] Initialized all ABP modules. 2021-11-11 14:09:53.370 +08:00 [INF] Application started. Press Ctrl+C to shut down. 2021-11-11 14:09:53.371 +08:00 [INF] Hosting environment: Development 2021-11-11 14:09:53.371 +08:00 [INF] Content root path: d:\Users\lk2555\ABPApplication\ABPApplication\aspnet-core\src\ABPApplication.IdentityServer 2021-11-11 14:09:53.389 +08:00 [INF] Request starting HTTP/2 GET https://localhost:44383/ - - 2021-11-11 14:09:55.602 +08:00 [DBG] Login Url: /Account/Login 2021-11-11 14:09:55.602 +08:00 [DBG] Login Return Url Parameter: ReturnUrl 2021-11-11 14:09:55.602 +08:00 [DBG] Logout Url: /Account/Logout 2021-11-11 14:09:55.602 +08:00 [DBG] ConsentUrl Url: /Consent 2021-11-11 14:09:55.602 +08:00 [DBG] Consent Return Url Parameter: returnUrl 2021-11-11 14:09:55.602 +08:00 [DBG] Error Url: /Account/Error 2021-11-11 14:09:55.602 +08:00 [DBG] Error Id Parameter: errorId 2021-11-11 14:09:56.667 +08:00 [INF] Executing endpoint '/Index' 2021-11-11 14:09:56.707 +08:00 [INF] Route matched with {page = "/Index", area = "", action = "", controller = ""}. Executing page /Index 2021-11-11 14:09:56.709 +08:00 [INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy 2021-11-11 14:09:56.730 +08:00 [INF] Executing handler method ABPApplication.Pages.IndexModel.OnGet - ModelState is "Valid" 2021-11-11 14:09:56.731 +08:00 [INF] Executed handler method OnGet, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult. 2021-11-11 14:09:57.148 +08:00 [DBG] Added bundle 'Lepton.Global' to the page in 31.79 ms. 2021-11-11 14:09:57.408 +08:00 [DBG] Added bundle 'Lepton.Global' to the page in 17.96 ms. 2021-11-11 14:09:57.438 +08:00 [INF] Executed page /Index in 728.1847ms 2021-11-11 14:09:57.439 +08:00 [INF] Executed endpoint '/Index' 2021-11-11 14:09:57.473 +08:00 [INF] Request finished HTTP/2 GET https://localhost:44383/ - - - 200 - text/html;+charset=utf-8 4083.9085ms

    the menu page need at least 30+ second to loading, is it mornal?

  • User Avatar
    0
    LawrenceKwan created

    Hi @LawrenceKwan, do you use the Redis? It can be really helpful to downgrade the response time.

    Sure, I have set up redis server by docker and connect well.

    2021-11-11 14:09:54.396 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule 2021-11-11 14:09:54.396 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule 2021-11-11 14:09:54.396 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule

    2021-11-11 14:09:55.549 +08:00 [DBG] Executing HealthCheck collector HostedService. 2021-11-11 14:09:55.559 +08:00 [INF] Request starting HTTP/2 GET https://localhost:44392/ - - 2021-11-11 14:09:55.565 +08:00 [INF] Entity Framework Core 5.0.12 initialized 'HealthChecksDb' using provider 'Microsoft.EntityFrameworkCore.InMemory' with options: StoreName=HealthChecksUI 2021-11-11 14:09:55.607 +08:00 [INF] Start processing HTTP request GET "https://localhost:44392/health-status" 2021-11-11 14:09:55.608 +08:00 [INF] Sending HTTP request GET "https://localhost:44392/health-status" 2021-11-11 14:09:55.678 +08:00 [INF] Application started. Press Ctrl+C to shut down. 2021-11-11 14:09:55.678 +08:00 [INF] Hosting environment: Development 2021-11-11 14:09:55.679 +08:00 [INF] Content root path: d:\Users\lk2555\ABPApplication\ABPApplication\aspnet-core\src\ABPApplication.HttpApi.Host 2021-11-11 14:09:55.788 +08:00 [INF] Request starting HTTP/1.1 GET https://localhost:44392/health-status - - 2021-11-11 14:09:57.029 +08:00 [INF] Executing endpoint 'ABPApplication.Controllers.HomeController.Index (ABPApplication.HttpApi.Host)' 2021-11-11 14:09:57.029 +08:00 [INF] Executing endpoint 'Health checks' 2021-11-11 14:09:57.072 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller ABPApplication.Controllers.HomeController (ABPApplication.HttpApi.Host). 2021-11-11 14:09:57.095 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. 2021-11-11 14:09:57.099 +08:00 [INF] Executed action ABPApplication.Controllers.HomeController.Index (ABPApplication.HttpApi.Host) in 23.162ms 2021-11-11 14:09:57.100 +08:00 [INF] Executed endpoint 'ABPApplication.Controllers.HomeController.Index (ABPApplication.HttpApi.Host)' 2021-11-11 14:09:57.124 +08:00 [INF] Request finished HTTP/2 GET https://localhost:44392/ - - - 302 - - 1566.6727ms 2021-11-11 14:09:57.126 +08:00 [INF] Request starting HTTP/2 GET https://localhost:44392/swagger/index.html - - 2021-11-11 14:09:57.199 +08:00 [INF] Request finished HTTP/2 GET https://localhost:44392/swagger/index.html - - - 200 - text/html;charset=utf-8 73.1779ms

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    I've just created a MVC Tiered application in v4.4.3 and it loaded fast as in below image. Can be your Redis cache or your RAM/disk usage is full?

    • Do you face this problem only on Cms -> Menus page?
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06