473,396 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 2273
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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
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...

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.