473,602 Members | 2,846 Online
Bytes | Software Development & Data Engineering Community
+ 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 4103
..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*********@di scussions.micro soft.comwrote in message
news:BB******** *************** ***********@mic rosoft.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
1715
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 file_get_contents(). The former returns the contents as an array of lines. The latter returns the same as string. Example: $html = file_get_contents("http://www.cnn.com");
5
11186
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 after having navigated to some page, it doesn't work. It just returns to the start page or says "timeout" etc. This means that I can't read these pages from PHP with $string = file_get_contents('http://some.url/blah/deep/link');
3
4449
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 site up to this server. Now I am getting the following error: Server Error in '/' Application. --------------------------------------------------------------------------------
2
2058
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) Thanks.
1
2696
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, which I had trouble with in the past (i.e. same problem), is now partly broke. The paging no longer fully works in the gridview. The gvAwarded_RowDataBound code works to load the ddlPager with the correct number of pages.
5
2808
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 look for why it is slowing down. I thought about the DB first and added NOLOCK to a couple of stored procedures that were being run, but with no effect. Can someone offer some tips on where to start looking or how I can begin to diagnose this...
1
1059
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 in this example the "is logged on" message) before loadSummaryData() executes. Is there a way to do this? if (!IsPostBack) { lblMessages.Text = loEmployee.employeeFName + " is logged on."; loadSummaryData();
6
9984
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 refresh using various browsers: Safari ~ 0.2 s Firefox < 1s Opera ~ 1s
6
7225
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 want is to be able to change the image based on the url. Like, for e.g. www.example.com/page.php?image=1.jpg My images are like this 1, 2, 3... so I would do something like this: www.example.com/page.php?image=2.jpg...
0
7993
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8404
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
5867
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3900
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3944
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2418
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1254
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.