469,138 Members | 1,311 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,138 developers. It's quick & easy.

optimizing aspnet application - speed up

Hi

I noticed that all my ASPNET applications (+ MSSQL Server - I checked the
database and it is ok) run very slowly (especially from the beginning). I
made comparison to other applications (not mine) on another servers. I
wonder how could I boost the applications. The only thing I suspect is that
in configuration manager in my VS2003 I have got debug.

Could you tell me your suggestions please?

Regards

Darek T.
Apr 10 '06 #1
5 1399
Create a simple one line test.aspx page

<% response.write ("hello world") %>

and go from there

"Dariusz Tomon" <d.*****@mazars.pl> wrote in message
news:Ot**************@TK2MSFTNGP02.phx.gbl...
Hi

I noticed that all my ASPNET applications (+ MSSQL Server - I checked the
database and it is ok) run very slowly (especially from the beginning). I
made comparison to other applications (not mine) on another servers. I
wonder how could I boost the applications. The only thing I suspect is
that in configuration manager in my VS2003 I have got debug.

Could you tell me your suggestions please?

Regards

Darek T.

Apr 10 '06 #2
With VS 2005 you can minimize it a little, but the first time the page is
render in a session it will be a slower, after that it is pretty fast. To
speed things up a little, look into deploying your ASP 2.0 app using a
pre-compile approach

aspnet_compiler -v [Application Name} -p[Physical location] [Target}

Your aspx files are now just headers -- you can rename HTML, XML, XSD,
web.config and Text files to .aspx to take advantage of the obfuscating
also. Runs faster overall.

Rob

"Dariusz Tomon" <d.*****@mazars.pl> wrote in message
news:Ot**************@TK2MSFTNGP02.phx.gbl...
Hi

I noticed that all my ASPNET applications (+ MSSQL Server - I checked the
database and it is ok) run very slowly (especially from the beginning). I
made comparison to other applications (not mine) on another servers. I
wonder how could I boost the applications. The only thing I suspect is
that in configuration manager in my VS2003 I have got debug.

Could you tell me your suggestions please?

Regards

Darek T.

Apr 10 '06 #3
Nice joke ... really.

"Jeff Dillon" <je********@hotmail.com> wrote in message
news:OX**************@TK2MSFTNGP03.phx.gbl...
Create a simple one line test.aspx page

<% response.write ("hello world") %>

and go from there

"Dariusz Tomon" <d.*****@mazars.pl> wrote in message
news:Ot**************@TK2MSFTNGP02.phx.gbl...
Hi

I noticed that all my ASPNET applications (+ MSSQL Server - I checked the
database and it is ok) run very slowly (especially from the beginning). I
made comparison to other applications (not mine) on another servers. I
wonder how could I boost the applications. The only thing I suspect is
that in configuration manager in my VS2003 I have got debug.

Could you tell me your suggestions please?

Regards

Darek T.


Apr 10 '06 #4
There's lots of things you can take advantage of to make things run
faster. Are you using Page and Application Caching, effective
ViewState & Session usage

Things will always initially be slow. If the ASP.NET pages have
changed then they will need to be loaded into memory and re-compiled
(due to on-demand dynamic compilation)

If you're using IIS6 you can increase the recycle timeout to prevent
asp.net from being recycled and hence having to recomple after
restarting.

I've seen it suggested that you should use a script to automatically
call the popular pages in your application as soon as you deploy new
versions so that the first visitors don't experience the delay

Also, have you added Trace="True" to your Page Directive to get a
better idea of timings?

Finally, I've used ANTS Profiler from www.red-gate.com to get an exact
idea of which methods are taking time and how often they get called.
Redgate also have ANTS Loads to stress test web apps. The Profiler
saved me days in trying to tune .Net apps

Jason

Apr 11 '06 #5
I wasn't joking! This would tell if the server itself was slow. Start with a
simple page (basic troubleshooting) then add your code till you find the
problem.

Jeff

"Dariusz Tomon" <d.*****@mazars.pl> wrote in message
news:Oy**************@TK2MSFTNGP05.phx.gbl...
Nice joke ... really.

"Jeff Dillon" <je********@hotmail.com> wrote in message
news:OX**************@TK2MSFTNGP03.phx.gbl...
Create a simple one line test.aspx page

<% response.write ("hello world") %>

and go from there

"Dariusz Tomon" <d.*****@mazars.pl> wrote in message
news:Ot**************@TK2MSFTNGP02.phx.gbl...
Hi

I noticed that all my ASPNET applications (+ MSSQL Server - I checked
the database and it is ok) run very slowly (especially from the
beginning). I made comparison to other applications (not mine) on
another servers. I wonder how could I boost the applications. The only
thing I suspect is that in configuration manager in my VS2003 I have got
debug.

Could you tell me your suggestions please?

Regards

Darek T.



Apr 11 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by ArShAm | last post: by
2 posts views Thread by sameer | last post: by
reply views Thread by sameer | last post: by
4 posts views Thread by MichaƂ Januszczyk | last post: by
24 posts views Thread by Richard G. Riley | last post: by
1 post views Thread by Jason Huang | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.