M
michael
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
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