You are viewing limited content. For full access, please sign in.

Question

Question

Warming up IIS applications

asked on July 7, 2016

Hi,

 

In the last few version of Laserfiche (I think since V10.0), I have seen at the end of the setup process an executable being run that recompiles IIS application and is then warming up these Virtual Directories.

This executable for WebAccess is "WebAccessOptimizer.exe".  This application seem to be calling the .Net Framework aspnet)compiler.exe for a global recompile but does also seem to be warning up these virtual directories.

Is there a method we can use to regularly launch an IIS warm up ? 

If so, what would be the best recurence setting, every few hours? once a day?

We want to be sure every users will always get a fast response loading all Laserfiche web modules, so this would apply to all Laserfiche Web Modules.

 

Regards,

 

 

0 0

Replies

replied on July 7, 2016

WebAccessOptimizer is specific to Web Access, but what it does it very simple. It runs aspnet_compiler on the /laserfiche virtual directory and makes a web request for all virtual directories containing 'laserfiche'.  The ASP.net precompilation only needs to be run once, but since the WA optimizer only does it for Web Access, you could benefit from running it on the other LF products. The syntax is C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -v <virtual directory> -c -errorstack where <virtual directory> is /Laserfiche, /WebAdmin, etc...

 

The warmup request is less useful because IIS 7.5 and newer have an Auto Start feature that you can use to avoid the cold-hit initialization delay. See this post for how to enable it.

0 0
replied on July 11, 2016

Thanks Robert for this information. 

I will take a good resolution and enable that AutoStart feature on IIS 7.5 and up for auto-warming up WebApplications.

So you say we could benefit from running that "aspnet_compiler" command on other products but its only good after initial installation or it's also good to script it and run it everytime the server gets rebooted?

0 0
replied on July 11, 2016

You only need to run the asp.net compiler once after installation. See this article for more information about asp.net complation.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.