Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

App Delay at Server on Accessing Gallery after a Rest Period
mjtruiz
#1 Posted : Wednesday, 10 August 2011 9:16:40 AM(UTC)
Rank: Newbie

Joined: 22/05/2011(UTC)
Posts: 2

Hi,

I am evaluating your wonderful program for possible use at my historical research site at a university. I am consistently getting a 10-second delay when calling up the gallery on our Windows 2008 R2 server. Then, the link works quickly after the first time. I can go downstairs to another computer and access is fast. Then, if there is some rest period when the app is not used, the 10 second delay again occurs, but only on the first access.

Has anyone encountered this problem? Is there any way to eliminate this delay on app start up?

Thanks for any assistance.

Michael Ruiz
Professor, UNC Asheville
Roger Martin
#2 Posted : Wednesday, 10 August 2011 9:38:08 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Your IIS application pool shuts down after an idle period to conserve system resources. You can increase this if you want. In IIS7, the property is called Idle Time-out and you'll find it in the advanced settings window for the application pool in IIS Manager.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
mjtruiz
#3 Posted : Thursday, 11 August 2011 4:45:16 PM(UTC)
Rank: Newbie

Joined: 22/05/2011(UTC)
Posts: 2

Thanks Roger. I played around today with settings. By disabling the idle time-out (setting time to 0 apparently is the way to do this) for gallery, asp.net4, and the default application pool, I reduced the start time from 10 seconds to about 5 seconds. I also tried disabling batch compile but that did not seem to matter. There must be something else going on. With all my regular web pages, I can access quickly. Gallery Server Pro is my first experience with an application. Everything else I have done in the past has been classic asp pages for my courses and these are posting relatively fast. I would like to get Gallery to post within 2 seconds. I will keep experimenting. Thanks for pointing me in the right direction.

Michael Ruiz
Professor, UNC Asheville
Roger Martin
#4 Posted : Thursday, 11 August 2011 9:43:48 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

If you are seeing a delay on the first page load and subsequent page loads are fast, then I suspect the app pool is still shutting down. There really aren't any other explanations.

One thing that *might* help is configuring auto-start.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
dalepres
#5 Posted : Tuesday, 16 August 2011 12:40:59 PM(UTC)
Rank: Member

Joined: 24/09/2008(UTC)
Posts: 5
Location: Oklahoma

Roger Martin;7638 wrote:
If you are seeing a delay on the first page load and subsequent page loads are fast, then I suspect the app pool is still shutting down. There really aren't any other explanations.

One thing that *might* help is configuring auto-start.



Just to add for the OP, because you are right that there is no other "reason" for the delay but there is more of an explanation. :)

For the OP, this is a known condition with .Net and has been in ASP.Net since 1.0 in 2002. In pretending to be like Java, Microsoft created the idea of an Intermediate Language, or MSIL. When you compile a .Net program, it isn't really compiled to machine code, it is compiled to MSIL. When the application first starts, the MSIL is compiled to machine code. The app pool in IIS, to better share limited resources like memory, shuts down idle applications after the configured time - and you want this; it keeps the running copy cleaned up. But the result of this shut down is that when someone access the site again, after the app pool shut down, then the MSIL is compiled again into machine code on that first access. Once the app is running then successive requests are fact because no more recompiling is required until the app pool shuts down again.

So, Roger is correct, it is the app pool. But now you know why the app pool resetting causes the delay.

Hope this helps.

Dale
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.