472,958 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

Classic ASP pages living among a ASP.NET Web App

I've built a new ASP.NET web app with the CSLA framework. The site
runs fine with a small number of users, but once there is any traffic
the CPU spikes at 100%. I went through and made many updates to plug
various memory leaks. Glad that I did that and it probably helped out
some, but the issues still exists. The application was built the
proper scalable architecture but can't seem to handle the load. I've
been watching performance counters while load testing to figure things
out but have gotten no where so far.

My question is around using classic ASP pages inside the .NET web app.
I have isolated my DotNet application pool from other classic ASP-only
sites, as they should be. But I need to have some classic ASP pages
living among the ASP.NET application for redirecting bookmarks and
other hard-coded references to .asp pages.

Since they recommend that you keep Classic ASP web sites on separate
application pools from any .NET pools, is it a problem that a small
amount of classic pages live in my .NET app? Could the fight for
memory between the two different ISAPI handlers cause 100% CPU usage?
If it is recommended that classic ASP pages should not live inside an
ASP.NET web application, how can I keep my classic ASP pages available
for bookmarks and such?

Thanks

Jul 3 '07 #1
11 2240
Hello mase,

Any entries in EventLog?

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

mI've built a new ASP.NET web app with the CSLA framework. The site
mruns fine with a small number of users, but once there is any traffic
mthe CPU spikes at 100%. I went through and made many updates to plug
mvarious memory leaks. Glad that I did that and it probably helped out
msome, but the issues still exists. The application was built the
mproper scalable architecture but can't seem to handle the load. I've
mbeen watching performance counters while load testing to figure
mthings out but have gotten no where so far.
m>
mMy question is around using classic ASP pages inside the .NET web
mapp. I have isolated my DotNet application pool from other classic
mASP-only sites, as they should be. But I need to have some classic
mASP pages living among the ASP.NET application for redirecting
mbookmarks and other hard-coded references to .asp pages.
m>
mSince they recommend that you keep Classic ASP web sites on separate
mapplication pools from any .NET pools, is it a problem that a small
mamount of classic pages live in my .NET app? Could the fight for
mmemory between the two different ISAPI handlers cause 100% CPU usage?
mIf it is recommended that classic ASP pages should not live inside an
mASP.NET web application, how can I keep my classic ASP pages
mavailable for bookmarks and such?
m>
mThanks
m>
Jul 3 '07 #2
On Jul 3, 9:50 am, mase <mase....@gmail.comwrote:
I've built a new ASP.NET web app with the CSLA framework. The site
runs fine with a small number of users, but once there is any traffic
the CPU spikes at 100%. I went through and made many updates to plug
various memory leaks. Glad that I did that and it probably helped out
some, but the issues still exists. The application was built the
proper scalable architecture but can't seem to handle the load. I've
been watching performance counters while load testing to figure things
out but have gotten no where so far.

My question is around using classic ASP pages inside the .NET web app.
I have isolated my DotNet application pool from other classic ASP-only
sites, as they should be. But I need to have some classic ASP pages
living among the ASP.NET application for redirecting bookmarks and
other hard-coded references to .asp pages.

Since they recommend that you keep Classic ASP web sites on separate
application pools from any .NET pools, is it a problem that a small
amount of classic pages live in my .NET app? Could the fight for
memory between the two different ISAPI handlers cause 100% CPU usage?
If it is recommended that classic ASP pages should not live inside an
ASP.NET web application, how can I keep my classic ASP pages available
for bookmarks and such?

Thanks
Why do you think it's because of ASP, maybe it's because of ASP.NET?

Try to find what is the most critical activity

Jul 3 '07 #3
Not much. Some OutOfMemory exceptions and a few other seemingly
trivial .NET exceptions. One in particular that seems weird:

Exception type: HttpException
Exception message: Path 'OPTIONS' is forbidden.

Any ideas?

On Jul 3, 1:03 am, Michael Nemtsev <nemt...@msn.comwrote:
Hello mase,

Any entries in EventLog?

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog:http://spaces.live.com/laflour
Team blog:http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Jul 3 '07 #4
Why do you think it's because of ASP, maybe it's because of ASP.NET?
>
Try to find what is the most critical activity

I don't know that it's ASP, just trying to rule that out. I knew about
the Application Pools needing to be separate so I wasn't sure if
having them coexist in one web application was problematic?

I'm not sure what you mean what the most "critical" activity is? As in
what is most resource intensive? Or what pages are requested the most?

Jul 3 '07 #5
On Jul 3, 10:50 am, mase <mase....@gmail.comwrote:
Why do you think it's because of ASP, maybe it's because of ASP.NET?
Try to find what is the most critical activity

I don't know that it's ASP, just trying to rule that out. I knew about
the Application Pools needing to be separate so I wasn't sure if
having them coexist in one web application was problematic?

I'm not sure what you mean what the most "critical" activity is? As in
what is most resource intensive? Or what pages are requested the most?
You have a memory leak somewhere. Check date/time in the event log
when OutOfMemory is occured, check IIS log for that time to find what
was requested by users in that time (or before). Hopefully, you can
find some pages there. Check the code of these pages, (if you destroy
objects, if there no loops with no end, etc). Also try to use
Performance counters, and monitor the processes to determine which
process consumed your memory

Jul 3 '07 #6
Hello mase,

Use the profiling tools to find out what happens

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

mNot much. Some OutOfMemory exceptions and a few other seemingly
mtrivial .NET exceptions. One in particular that seems weird:
m>
mException type: HttpException
mException message: Path 'OPTIONS' is forbidden.
mAny ideas?
m>
mOn Jul 3, 1:03 am, Michael Nemtsev <nemt...@msn.comwrote:
m>
>Hello mase,

Any entries in EventLog?

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog:http://spaces.live.com/laflour
Team blog:http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high
and we miss it, but that it is too low and we reach it" (c)
Michelangelo

Jul 3 '07 #7
asp.net applications (at least until iis 7.0) do not run inside iis.
they are hosted by a seperate process, that uses named pipes to talk to
iis. asp is hosted directly by iis but can be run outside if hosted by
com+/mts.

the point is asp and asp.net never run in the same process, so a memory
eak in one does not effect the other. asp.net application pools keep one
asp.net web site from effecting each other.

there is nothing wrong with having asp and asp.net in the same vdir.

-- bruce (sqlwork.com)

mase wrote:
I've built a new ASP.NET web app with the CSLA framework. The site
runs fine with a small number of users, but once there is any traffic
the CPU spikes at 100%. I went through and made many updates to plug
various memory leaks. Glad that I did that and it probably helped out
some, but the issues still exists. The application was built the
proper scalable architecture but can't seem to handle the load. I've
been watching performance counters while load testing to figure things
out but have gotten no where so far.

My question is around using classic ASP pages inside the .NET web app.
I have isolated my DotNet application pool from other classic ASP-only
sites, as they should be. But I need to have some classic ASP pages
living among the ASP.NET application for redirecting bookmarks and
other hard-coded references to .asp pages.

Since they recommend that you keep Classic ASP web sites on separate
application pools from any .NET pools, is it a problem that a small
amount of classic pages live in my .NET app? Could the fight for
memory between the two different ISAPI handlers cause 100% CPU usage?
If it is recommended that classic ASP pages should not live inside an
ASP.NET web application, how can I keep my classic ASP pages available
for bookmarks and such?

Thanks
Jul 3 '07 #8
On Jul 3, 8:09 am, bruce barker <nos...@nospam.comwrote:
asp.net applications (at least until iis 7.0) do not run inside iis.
they are hosted by a seperate process, that uses named pipes to talk to
iis. asp is hosted directly by iis but can be run outside if hosted by
com+/mts.

the point is asp and asp.net never run in the same process, so a memory
eak in one does not effect the other. asp.net application pools keep one
asp.net web site from effecting each other.

there is nothing wrong with having asp and asp.net in the same vdir.

-- bruce (sqlwork.com)

mase wrote:
I've built a new ASP.NET web app with the CSLA framework. The site
runs fine with a small number of users, but once there is any traffic
the CPU spikes at 100%. I went through and made many updates to plug
various memory leaks. Glad that I did that and it probably helped out
some, but the issues still exists. The application was built the
proper scalable architecture but can't seem to handle the load. I've
been watching performance counters while load testing to figure things
out but have gotten no where so far.
My question is around using classic ASP pages inside the .NET web app.
I have isolated my DotNet application pool from other classic ASP-only
sites, as they should be. But I need to have some classic ASP pages
living among the ASP.NET application for redirecting bookmarks and
other hard-coded references to .asp pages.
Since they recommend that you keep Classic ASP web sites on separate
application pools from any .NET pools, is it a problem that a small
amount of classic pages live in my .NET app? Could the fight for
memory between the two different ISAPI handlers cause 100% CPU usage?
If it is recommended that classic ASP pages should not live inside an
ASP.NET web application, how can I keep my classic ASP pages available
for bookmarks and such?
Thanks
Bruce,

Thanks for your input, however what your telling me is just about
opposite of everything I've read. I have been told to isolate the two
and never let them run under the same application pool.

Also, don't ASP.NET applications run inside the w3wp.exe process in
IIS 6? I realize that IIS keeps each websites boundaries distinct to
keep them from interfering with each other, but what about when there
are ASP pages inside my .NET application. The two types of ASP pages
living side-by-side?

Jul 3 '07 #9
On Jul 3, 2:54 am, Michael Nemtsev <nemt...@msn.comwrote:
Hello mase,

Use the profiling tools to find out what happens

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog:http://spaces.live.com/laflour
Team blog:http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

mNot much. Some OutOfMemory exceptions and a few other seemingly
mtrivial .NET exceptions. One in particular that seems weird:
m>
mException type: HttpException
mException message: Path 'OPTIONS' is forbidden.
mAny ideas?
m>
mOn Jul 3, 1:03 am, Michael Nemtsev <nemt...@msn.comwrote:
m>
Hello mase,
Any entries in EventLog?
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog:http://spaces.live.com/laflour
Team blog:http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high
and we miss it, but that it is too low and we reach it" (c)
Michelangelo
Michael,

I have been using the profiling tools to figure out what's going on,
but I can't nail it down. When I see 100% CPU spike, how can I
identify the bottleneck using performance counters?

Jul 3 '07 #10
On Jul 3, 2:51 am, Alexey Smirnov <alexey.smir...@gmail.comwrote:
On Jul 3, 10:50 am, mase <mase....@gmail.comwrote:
Why do you think it's because of ASP, maybe it's because of ASP.NET?
Try to find what is the most critical activity
I don't know that it's ASP, just trying to rule that out. I knew about
the Application Pools needing to be separate so I wasn't sure if
having them coexist in one web application was problematic?
I'm not sure what you mean what the most "critical" activity is? As in
what is most resource intensive? Or what pages are requested the most?

You have a memory leak somewhere. Check date/time in the event log
when OutOfMemory is occured, check IIS log for that time to find what
was requested by users in that time (or before). Hopefully, you can
find some pages there. Check the code of these pages, (if you destroy
objects, if there no loops with no end, etc). Also try to use
Performance counters, and monitor the processes to determine which
process consumed your memory
Alexey,

I am fairly certain that I have plugged up every possible memory leak
in my application, I've combed through the code very thoroughly to
find places where I was properly releasing resources and updated
that. I will look again. I was thinking that the pages being
requested during or before the OutOfMemory exception don't necessarily
point to those pages right? The leak could be gradual and will error
out this way when any new page is requested and there isn't enough
memory to load it. Right?

I have been staring at performance counters for many days now. I know
that the process that is consuming my memory is w3wp.exe. How can I
narrow this down further? When the CPU spike occurs, what how can I
determine the culprit?

Thanks

Jul 3 '07 #11
Hello mase,

Well, I suppose you need to make a dupm of your working process and exam
it to understand what happens

I recomend to look through the Tess blog http://blog.msdn.com/tess, where
she described how to do this

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
>Use the profiling tools to find out what happens
mI have been using the profiling tools to figure out what's going on,
mbut I can't nail it down. When I see 100% CPU spike, how can I
midentify the bottleneck using performance counters?
m>
Jul 4 '07 #12

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

Similar topics

99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
5
by: Velvet | last post by:
Can someone tell me to what process I need to attach to be able to step through my classic ASP code in VS.net 2003. I'm working on an XP box with IIS installed. I also have VS.net 2005 (The...
2
by: nullref | last post by:
I'm having trouble setting up my classic ASP site to correctly handle .NET web config file for migration I need to do. If the config file is at the same level as my other pages I get the...
4
by: KJS | last post by:
Help, I'm not sure what exactly is happening but I can say this, classic asp pages are not loading on my local dev box. They use to work! Since then I have installed .NET 1.1 Studio (that is...
6
by: John | last post by:
Hello. I believe I've read somewhere that classic .asp pages will still operate correctly with no problems with the .NET 1.1 framework installed on a Windows 2000 Server server. Does anyone know...
5
by: Kent.Gallinger | last post by:
I have a web application that contains asp.net and classic asp pages. I have a vb.net function that I would like to use in one of the classic asp pages. How can I do this? Can I do this? ...
12
by: mcp6453 | last post by:
My small company has a web site that is developed in "Classic ASP", which is, I'm told, different from just "ASP". It is clear to me that we are not using ASP.NET. The site is hosted on a shared...
15
by: erik.oosterwaal | last post by:
Hi All, I have been developing websites in classic asp using VB script for a long while now. Due to the fact that I also took a detour to developing ColdFusion, and the fact the companies I...
1
by: andwan0 | last post by:
I have a legacy classic ASP website with lots of classic AJAX (many ASP files specially made for processing AJAX requests). We are slowly migrating the website to ASP.NET 2.0 and developing under...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.