- ABP Framework version: v5.1.3
- UI type: MVC
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): no
- Exception message and stack trace:
- Steps to reproduce the issue:"
Database: PostgreSQL 13
So far, I have successfully solved everything through documentation or through posts, now i need your help so I can upgrade to the new version
As you can see in the picture, the loading time is 3.18 s
As you can see in the picture, the loading time is 10.77 s
Steps taken during migration:
- Changed the version of each project from 5 to 6 (after this when I start the application the speed is the same)
- Run abp update command
- Run abp install-libs
- Upgrade all nuget packages
- add-migration and update-database
I only have two changes to the code and they are:
- In: App.Domain/IdentityServer/IdentityServerDataSeedContributor.cs:
from var apiScope = await _apiScopeRepository.GetByNameAsync(name); to var apiScope = await _apiScopeRepository.FindByNameAsync(name);
- in: AppWebModule i added because of postgresql:
Configure<AbpClockOptions>(options => { options.Kind = DateTimeKind.Utc; });
I saw that you had this problem: https://support.abp.io/QA/Questions/2303/ABP-50---very-slow-when-using-the-Startup-Template
Maybe it is something like that ...
Do you have any idea to direct me where and what to look for?
Maybe to send you log files?
Since this is my first question after one year of development in the abp, I want to say all the positive impression of using abp. In 7 months we have developed the application and we have been live for 5 months now. Thanks
23 Answer(s)
-
0
Hello,
Did you check 5.0 migration guide?
-
0
Hi,
Yes I changed everything few months ago as in the description for query: https://docs.abp.io/en/abp/latest/Migration-Guides/Abp-4_2#irepository-getqueryableasync
For bootstrap 5 I haven't changed there are small changes, example: Renamed .float-left and .float-right to .float-start and .float-end.
If you think it affects, I can change it and let you know.
I didn't notice that I needed something else in the migration. Did I miss something?
-
0
Three days there is no answer?
Are you checking anything on this?
These values that I have shown you are in my local environment.
At customer in their live environment currently opens a window in 5 seconds (version 4) main window, and with the new version 5 over 15 seconds.
This is a big difference between versions 4 and 5. I think if not better at least the performance should be the same.
I fixed bootstrap 5 and the time is the same as in the pictures.
Can you help me solve this?
-
0
Have been experiencing significant performance issues since I moved to abp 5. When I used abp 3.2 everything was fast.
In .net 5 when my api get 20 api calls, iis cpu hits 100 %
Note: I created a new project for abp 5.1
-
0
This is blocking issue for me, i can't upgrade abp to new version.
Is support included in my license? Can you help me or not?
-
0
Hi @Buckoge
So far, I have successfully solved everything through documentation or through posts, now i need your help so I can upgrade to the new version
As you can see in the picture, the loading time is 3.18 s
As you can see in the picture, the loading time is 10.77 s
As an answer to performance issues, we can't say anything according to this comparison. Request-response time can be affected by many things including network bandwidth or server throughput or etc.
If you have any benchmark result that clearly shows the problem is related with ABP Framework, then we can take some action. Otherwise, we never know where the problem is.
-
0
to be able to help you, you need to specify concrete issues with screenshots, logs, reproducible steps but you mention a wide topic that involves checking your custom project and its consultancy work. one team member should work on your project.
-
0
It appears my problem is related to add the background tasks on the application service project instead of a separate project.
Any guide/ sample on how to have the background workers on a separate project in .net 5 ?
-
0
Hello guys,
I just made a simple test project with abp cli version 4 and upgrade it to version 5. I created models with abp suite.
Here are the links to the public GitHub repositories:
Link 1: AbpPerformanceTest4
Link 2: AbpPerformanceTest5
Steps:
- Clone both repositories (or upgrade 4 to version 5)
- Run migration
- In app run:
- Compare loading time in both projects and see results
In my opinion those results clearly show that the performance problem is related to ABP Framework upgrade to version 5
-
0
thanks for sharing the repos. one question: did you install Redis on your computer? if not install and test again
-
0
Hi Albert,
No, I didn't have a Redis installed.
I took the following steps: in app add package and connection string: https://docs.abp.io/en/abp/5.2/Redis-Cache
I installed: https://github.com/microsoftarchive/redis/releases https://redis.io/download/#redis-stack-downloads
In RedisInsight i add redis database
Can you send me some link on how to connect the abp app with redis?
-
0
I am not sure if redis will really improve the performance that much (depending on what is being cached and how much data your are storing in redis). This is how it is being configured and added.
https://github.com/abpframework/eShopOnAbp/blob/main/services/basket/src/EShopOnAbp.BasketService/appsettings.json "Redis": { "Configuration": "localhost:6379" },
https://github.com/abpframework/eShopOnAbp/blob/main/shared/EShopOnAbp.Shared.Hosting.Microservices/EShopOnAbpSharedHostingMicroservicesModule.cs
var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]); context.Services .AddDataProtection() .PersistKeysToStackExchangeRedis(redis, "EShopOnAbp-Protection-Keys");
-
0
Thanks Radoslav for the example
I successfully connected Redis, but unfortunately there are no changes in performance.
For performance everything is ok without Redis in version 4. Is it is possible to see why there are differences in version 5 and is it is possible to adjust it as in version 4?
-
0
do you have the same issue when you create a brand new ABP 4 and ABP 5? this will lead us to understand if it's directly related to ABP otherwise we need to focus on your custom config and code.
-
0
you can create a project from a specific version. see https://docs.abp.io/en/abp/latest/CLI-New-Command-Samples#create-a-solution-from-a-specific-version
-
0
Yes the same differences appeared during the new project
and yes i created the project via cli, this is how i created a test project and just used abp suite, and then update to 5, as I share in repos
abp new AbpPerformanceTest -u mvc --mobile none --version 4.4.4 --database-management-system PostgreSQL -csf --connection-string Host=localhost;Database=AbpPerformanceTest;Port=5432;
-
0
ok, this is good feedback, as your test result, the brand new ABP 4 and 5 are different in performance. @maliming can you please check this situation.
-
0
hi
Please do not publish the source code of the abp commercial project in Github, you can set it to private
I already downloaded the projects. Will check asap.
-
0
-
0
The page index is ok, the difference is when loading edit page.
Can you add one item (new test model) and try again (actions than edit button).
Ok, I'll remove both projects from Github
-
0
-
0
Glad to hear this
-
0
I'm happy that the latest stable version is faster than the previous versions thanks to the team!