Really slow, painfullu slow asp.net web app

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,

I am trying to write an ASP.NET web app, in Visual Basic.NET, using
Visual Studio.NET 2004, .NET framework 1.1.4322 SP1
Running the project/app on localhost while in dev/write/debug stage

When I say "trying", I do have it written, and it works ... sort of,
for some cases.
The problems/issues?

1. it runs very slowly
2. it seems to either hang up/lock up aspnet_wp.exe
3. or timesouts way to soon
4. if/when it hangs/locks aspnet_wp.exe, "End Process" in Task Manager
is only way to get aspnet_wp.exe to stop (and it restarts) thus
bringing VS.NET back into "write mode" from debug mode (closing web
page or hitting stop debugging in VS.NET does not actually detach/stop
aspnet_wp.exe)

In psuedo code form my app takes several images (ideally)
for each image
go through each pixel and gets its color
if the color for the pixel is already on a dataset.table then
increment the frequency count for that color (ARGB)
if not on the table then add that color (ARGB) to the
dataset.table
next pixel
when done with that image then store the values/rows (colors &
frequencies) in the SQL Server 2000 database

next image

FIRST - let me stress it is not pulling th data from SQL Server - it is
finding/crunching the data in the image and then when done processing
the image/pixels, then at that point it rights the results to database
SECOND - it is not the writing to the db that is slow - have, in
attempt to pin issues down commented out actual writing to db

If I run my app on an image of size 100x100 pixels it runs pretty fast
Can even do a batch with 3 or 4 smaller images

But if I run it on an image of say 600 x 600 pixels ... it just bogs
down.

I can understand a larger image would have more colors, and as it loops
through the pixels, it would take longer to sort the table for that
color (to see if it needs to add or increment)

But it just comes to a grinding halt.
As it never actually finishes a larger image don't lnow exactly how
many colors it is finding, and therefore how many rows the tabel has,
but near as I can tell, on one image there is about 70,000 colors,
meaning the table would have about 70,000 lines.

Is that too big? As in too many lines for ASP.NET to handle?

And if I either:
1. just check aspnet_wp.exe while running, or
2. close the web page, or
3. stop debugging in VS.net

Mem usage for aspnet_wp.exe is psikingat like 98% of memory.
Stopping debugging does not stop aspnet_wp.exe from spiking ... even if
I give the computer/VS>NET an hour or more to actually stop debugging.

I have to go into Task Manager and end process on aspnet_wp.exe then
vs.net actually stops debugging.

I did write sort of a prototype of this as a windows app and it goes
very fast, even with very large files & a large number of files (and my
code for this protoype is way less efficient)

I would expect some slowness moving to a web app, but not for it to
just simply hang (and if I let it run long enough ... it just times out
.... with aspnet_wp.exe spiking for literally days ... e.g. I let the
app run over the weekend, came back today ... and timeout, no data and
aspnet_wp.exe still consuming 98% of mem.)

Any help appreciated
Mike

.



Relevant Pages

  • Re: Really slow, painfullu slow asp.net web app
    ... process an image pixel by pixel, you want to use unsafe code and pointer ... I am trying to write an ASP.NET web app, in Visual Basic.NET, using ... page or hitting stop debugging in VS.NET does not actually detach/stop ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: VS 05 IDE question
    ... Normally when i run a web app I get the debug message and select run without ... debugging then I'm fine, I'm able to run web apps all day without debugging ... On the desktop I can run a application without being in debug mode I ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Application Flow / security issues
    ... You won't need a special service account. ... If the use case of the app is basically to have a user log in and then loop ... I just checked with corp. and if I want to do delegation I have to ask ... - You are using integrated windows auth in your web app ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: MSAccess to Web App
    ... Online banking is really not in any way analogous to what you're ... proposing for your app. ... be happy with a web app, since they don't have to install ... there is the reality of support that comes into play. ...
    (comp.databases.ms-access)
  • Re: VB Screen Object Bug in Vista
    ... But it is in fact one of the reasons I had code in my own app to resize and reposition everything accordingly if I got a message indicating that the user or one of the running programs had made such a change while my own VB app was running. ... It's just that in this particular app I had subclass code running to set a minimum "user drag" size for the main Form such that certain specific text items and certain specific boxes that contained text items fitted in full across the width of the Form without the necessity for a horizontal scroll bar and with other text items wrapping accordingly. ... The problem is that on many of these machines there was a chance that code would be running which changed the screen resolution (screen pixel area) occasionally. ...
    (microsoft.public.vb.general.discussion)