473,467 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Why is page display so slow from precompiled site?

Hi all,

Within an IFRAME of a standard site constructed of mostly static HTM type
pages, I am calling up one page from a large ASP.NET 3.5 site. I have
precompiled the ASP.NET site and published. "Allow precompiled site to be
updateable" is NOT checked. "Enable strong naming on precompiled assemblies"
is NOT checked. However, "Use fixed naming and single page assemblies" IS
checked. I did with the idea that if I call a single page from another site
it will display faster if it is contained in its own assembly and maybe I am
entirely wrong on that account.

In the web.config of the development machine where I precompile the site I
have
<compilation debug="true" strict="false" explicit="true">

I precompile to a local folder then ftp the site to the production server.

However when I upload the precompiled site the web.config on the production
server has
<compilation debug="false" strict="false" explicit="true">

Maybe I need to change my dev machine web.config every time I precompile for
publishing?

There are 182 objects in the bin folder of the precompiled site. 92 objects
are dll assemblies. 84 objects are small files with .compiled as the
extension. Other files are 3rd party licenses and a couple XML files. There
are no .vb files in the entire deployed site

It takes 15 seconds to load that single page the first time in the morning.
Subsequent calls to that page (even after session timeout) take 2-3 seconds
max. The page uses Session state. It also calls 4 other pages if the user
clicks on certain links. It almost seems as if the entire site is being
recompiled by calling that single initial page.

The page runs 2 simple SQL queries to display all the managed properties
held by the owner of the public site within a grid and then allows searching
to narrow down the selection. I just tested both queries on our slower SQL
Server here at the office and they each took less than 1 second as the first
queries in the AM.

I understand that there are many factors that determine how quickly a page
arrives at the browser.

Can anyone suggest what I might do with the precompile deployment that would
speed things up? I think I must be making a big mistake somewhere.

Thanks for any help with this.
Sep 30 '08 #1
3 4083
..net code has two compiel steps. the first produces a dll/exe with il code
which is machine independent. when you first run a .net app, it need to
convert the il code to machine code, this is done evreytime you run the app.

in asp.net when you first hit a site it does a lot of work. it creates an
appdomain to run the .net code in. it loads and compiles (called jit) all
dll's in the bin folder. it also resolves and load any reference to a gac
assembly.

you can speed up startup a little by using aspnet_merge to produce one
assembly. also you shoudl stepa heath tester that hits your site an reports
on health. this will have the side benefit of keeping the site loaded.
-- bruce (sqlwork.com)
"John Kotuby" wrote:
Hi all,

Within an IFRAME of a standard site constructed of mostly static HTM type
pages, I am calling up one page from a large ASP.NET 3.5 site. I have
precompiled the ASP.NET site and published. "Allow precompiled site to be
updateable" is NOT checked. "Enable strong naming on precompiled assemblies"
is NOT checked. However, "Use fixed naming and single page assemblies" IS
checked. I did with the idea that if I call a single page from another site
it will display faster if it is contained in its own assembly and maybe I am
entirely wrong on that account.

In the web.config of the development machine where I precompile the site I
have
<compilation debug="true" strict="false" explicit="true">

I precompile to a local folder then ftp the site to the production server.

However when I upload the precompiled site the web.config on the production
server has
<compilation debug="false" strict="false" explicit="true">

Maybe I need to change my dev machine web.config every time I precompile for
publishing?

There are 182 objects in the bin folder of the precompiled site. 92 objects
are dll assemblies. 84 objects are small files with .compiled as the
extension. Other files are 3rd party licenses and a couple XML files. There
are no .vb files in the entire deployed site

It takes 15 seconds to load that single page the first time in the morning.
Subsequent calls to that page (even after session timeout) take 2-3 seconds
max. The page uses Session state. It also calls 4 other pages if the user
clicks on certain links. It almost seems as if the entire site is being
recompiled by calling that single initial page.

The page runs 2 simple SQL queries to display all the managed properties
held by the owner of the public site within a grid and then allows searching
to narrow down the selection. I just tested both queries on our slower SQL
Server here at the office and they each took less than 1 second as the first
queries in the AM.

I understand that there are many factors that determine how quickly a page
arrives at the browser.

Can anyone suggest what I might do with the precompile deployment that would
speed things up? I think I must be making a big mistake somewhere.

Thanks for any help with this.
Sep 30 '08 #2
Thanks Bruce,
I guess setting up a site "health" tester would keep the site "warm" as I've
read in an article. Thanks for the quick explanation.

"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:BB**********************************@microsof t.com...
.net code has two compiel steps. the first produces a dll/exe with il code
which is machine independent. when you first run a .net app, it need to
convert the il code to machine code, this is done evreytime you run the
app.

in asp.net when you first hit a site it does a lot of work. it creates an
appdomain to run the .net code in. it loads and compiles (called jit) all
dll's in the bin folder. it also resolves and load any reference to a gac
assembly.

you can speed up startup a little by using aspnet_merge to produce one
assembly. also you shoudl stepa heath tester that hits your site an
reports
on health. this will have the side benefit of keeping the site loaded.
-- bruce (sqlwork.com)
"John Kotuby" wrote:
>Hi all,

Within an IFRAME of a standard site constructed of mostly static HTM type
pages, I am calling up one page from a large ASP.NET 3.5 site. I have
precompiled the ASP.NET site and published. "Allow precompiled site to be
updateable" is NOT checked. "Enable strong naming on precompiled
assemblies"
is NOT checked. However, "Use fixed naming and single page assemblies" IS
checked. I did with the idea that if I call a single page from another
site
it will display faster if it is contained in its own assembly and maybe I
am
entirely wrong on that account.

In the web.config of the development machine where I precompile the site
I
have
<compilation debug="true" strict="false" explicit="true">

I precompile to a local folder then ftp the site to the production
server.

However when I upload the precompiled site the web.config on the
production
server has
<compilation debug="false" strict="false" explicit="true">

Maybe I need to change my dev machine web.config every time I precompile
for
publishing?

There are 182 objects in the bin folder of the precompiled site. 92
objects
are dll assemblies. 84 objects are small files with .compiled as the
extension. Other files are 3rd party licenses and a couple XML files.
There
are no .vb files in the entire deployed site

It takes 15 seconds to load that single page the first time in the
morning.
Subsequent calls to that page (even after session timeout) take 2-3
seconds
max. The page uses Session state. It also calls 4 other pages if the user
clicks on certain links. It almost seems as if the entire site is being
recompiled by calling that single initial page.

The page runs 2 simple SQL queries to display all the managed properties
held by the owner of the public site within a grid and then allows
searching
to narrow down the selection. I just tested both queries on our slower
SQL
Server here at the office and they each took less than 1 second as the
first
queries in the AM.

I understand that there are many factors that determine how quickly a
page
arrives at the browser.

Can anyone suggest what I might do with the precompile deployment that
would
speed things up? I think I must be making a big mistake somewhere.

Thanks for any help with this.

Sep 30 '08 #3
I had the same problem. The reason is that the application domain
times out every 20 mins if there is no activity, the first request
after the timeout can force a recompile and reload of cache. Changing
some settings in the machine.config file will solve the problem;
unfortunately for me my hosting provider would not allow me to make
this change. I found this utility to be useful.
http://www.spikesolutions.net/ViewSo...2-05f6eded3b82

Essentially it "Pings" my home page every few mins so the application
domain does not time out. The utility can also be configured to ping
more than one page so that auxiliary pages are fast too.
Oct 7 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chung Leong | last post by:
My contribution to the comp.lang.php FAQ: ------------------------------------------------------------- Q: How do I retrieve a page from a web site? A: Pass a URL to file() or...
5
by: David Rasmussen | last post by:
Some sites seem to be session driven in the sense that if I visit the homepage and do a few clicks I can navigate anywhere I want, but if I paste the current location into a new browser window...
3
by: eswanson | last post by:
I have a site that has multiple web site projects. I got it working on my windows xp sp2 computer in pre-compiled mode. I created a new site on a windows 2003 server and copied the pre-compiled...
2
by: \A_Michigan_User\ | last post by:
*WITHOUT* using: ValidateRequest="False" for the whole page (or my whole site).... How would I trap/detect that a textBox contains some illegal characters? (I'm using asp.net v1.1 and vb.net)...
1
by: mark4asp | last post by:
I moved a page to another web-site and now it's broke! I had 5 pages in their own web-site. These pages have now been moved to another web-site. Everything is fine except that one of the pages,...
5
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
We have a page that is loading very slow. There is not a lot of data, not a lot of users are connected at the same time and the page does not produce an error, so I am not sure where to start to...
1
by: RichGK | last post by:
In the following code loadSummaryData() is quite a slow SQL query and it prevents the page from displaying until the query has finished. I want the user to be able to log on and see the page (i.e...
6
by: mark4asp | last post by:
Why is this page so slow to render in Internet Explorer? <http://mark4asp.freehostingnow.com/Search.html> When browsing the page locally, this is my estimated time that the page takes to...
6
by: londres9b | last post by:
Let's say I have a page called page.php. And let's also say I have an images folder. How can I make the php page display the images on the folder? But that's not the whole thing... What I really...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.