Admin Page Loading takes over a minute in admin area

paul krysiak asked on July 12, 2017 22:21

Hello Everyone
I have kentico pages that take over a minute to load in the admin.
The TTFB ( Time to First Bit) take over a minute on a server that has only one instance of kentico and never goes over 50% cpu and 25% memory.
I found that the UIPage.aspx is the one that is taking so long.

do you have any ideas why?

This was the result of adding a web part and saving the page. That is it. Image Text Thanks

Paul

Recent Answers


Mike Wills answered on July 12, 2017 23:20

If you can remove the web part and verify it made the difference, then I would look closely at the web part. What kind of web part is it? What SQL queries, IO, or processing does it cause?

0 votesVote for this answer Mark as a Correct answer

paul krysiak answered on July 13, 2017 03:53

Mike
This was happening before i added the web part. This is a basic template page with no intensive parts. If you look at the screen shot i have you will notice that the file that take the most time are, UIPage , GetMetaFile and GetCss. These are not accessing any web parts at this point. Getting a css file took over 3 minutes!

0 votesVote for this answer Mark as a Correct answer

Mike Wills answered on July 13, 2017 05:28

Hi Paul, That is stunning. Hopefully someone will jump in and help you. I am on the road and will lose cell reception soon.

It might help to focus in on one of the request like the CSS file. Keep repeating that request and run sql server profiler, check the Kentico event logs, and even use sysinternals tools to watch what file IO is happening.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 13, 2017 16:48

Can you give some more info about what is happening on the server? Are you changing code in the App_Code or adding other dlls to the project? What about changing the web.config? Any of those activities will require the website to restart and recompile.

Also, what pages are causing problems? Out of the box Kentico apps or something you custom built?

One last question, what are the specs of your server?

0 votesVote for this answer Mark as a Correct answer

paul krysiak answered on July 13, 2017 17:14

Brenden
We did an out of the box solution. Over 90% of the site is default kentico.

We have only three custom components, an extended rest feed for custom tables, custom sso integration and protected media handler. Most of this is done in the code behind of the widgets (aspx.cs files). There are no custom dlls and the only files in the app code is a custom macro and a transformation.
The site is on an Azure VM 2016 r2.

We have not changed the web config too much; we have only added app settings, a few redirects and anything from iis configuration.
The front end rendering is adequate. The issue is the kentico admin load times when editing pages.

Do you need to know anything else?

Thanks
Paul

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 13, 2017 17:24

Ok when editing pages, you might want to check some of the webparts and see what you are loading. Navigation is a big one we see for issues. Sometimes nested queries or unnecessary functions being run can cause a lot of problems in the UI.

Try enabling Debug within Kentico and checking your queries and macros to see if there are any errors.

Also run the KInspector tool to give you more information on your site and what might be setup in correctly or missing.

1 votesVote for this answer Mark as a Correct answer

paul krysiak answered on July 13, 2017 18:20 (last edited on July 13, 2017 18:21)

Brenden
Thank you i was unaware of the Kinspector. I'll run through that to see what is happening with the application.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.