Developer forum

Forum » Feature requests » Improve application startup time

Improve application startup time

Morten Bengtson
Reply

It would be great if you could improve the startup time in DW. We have some sites where it takes more than 20 minutes before DW is ready to serve pages.

I understand that you need to cache various data in order to improve the performance of the running site, but maybe you could lazy load some stuff or cache some of the data on a separate thread running in the background?

Example: Is it really necessary to cache all data from user management (including values from all custom fields) in memory before you can serve the first page?

Please let me know if you have any suggestions for changes that we can make ourselves (IIS or DW configuration etc.) in order to improve the startup time.


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Morten

It should not be anywhere near that time to startup a Dynamicweb solution.

IIS app pool + ASP.NET pipeline needs to start, that takes a little time (<10 seconds). Then Dynamicweb needs to start and it caches some things, but it should be nowhere over 30 seconds.

And no, it is not necessay to load users - that must be an error that I will have someone look into right away.

Can you maybe send me a link to the solution that you have the issue with? Would be nice to see the data in there to be able to find the issues.

Thanks, Nicolai

 
Morten Bengtson
Reply

It seems that the long startup time was primarily caused by some locking and ressource limitations on the sql server. After changing the configuration and re-indexing all tables the startup time has improved a lot. I will post an update here if we see any problems related to DW :)

 
Nicolai Høeg Pedersen
Reply

Hi Morten

Thank you for the update. keep us posted if you find DW related issues!

Have a nice weekend.

Nicolai

 
Morten Bengtson
Reply

Loading all users on startup seems to be causing a long application load time on a site we are currently working on. It' takes about 2 minutes to load the first page, which is probably not that bad, but it's not impressive either :)

Some approx. stats for this website:

  • 4.000 pages (many with permissions set up)
  • 10.000 page views per day
  • 19.000 users in 160 groups
  • 55 custom user fields
  • 2 ecom shops with 2000 products in 90 groups
  • A lot of custom extensions (the load time issue also occurs if we run it on a clean standard application though).

I think this is where is all happens, but I'm not sure...

Dynamicweb.Frontend.ApplicationLoad+UserManagementPermissionsContainer.GetPermissions(System.Int32 pageID)

Is there anything that can be done to improve the application load time?

 
Morten Bengtson
Reply

oops, double posted by mistake

 
Nicolai Høeg Pedersen
Reply

Bug. Will have it registered and fixed...

Waht version are you on?

 
Morten Bengtson
Reply

It is currently on version 8.4.1.18

 
Nicolai Høeg Pedersen
Reply

Ok. It is off for investigation and when we have the result we will probably fix the bug.

 
Morten Bengtson
Reply

Sounds great. Thanks

 
Nicolai Høeg Pedersen
Reply

Hi Morten

This issue has TFS#15755 (investigation issue) and is still being investigated by a dev. Will keep you posted.

Nicolai