473,725 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asp.net out of memory on transform why? Is there thread limit?

I'm creating Word 2007 reports in asp.net 1.1 via xml transform.
I get data from the SQL server in .5 sec., first transform takes less than a
sec. and uses 10MB.
I have 900MB free memory of the 2GB memory.
On following reports generations, I get out of memory on the transform
command and only half the file is written before it breaks.
The asp.net memory limit isn't at 60%, I even set it to 100% but still get
the same error.

Is there a thread memory limit?
Any help would be appreciated.

Thanks in advance,

Donald
Mar 27 '07 #1
2 1443
Afraid you will need to post "just enough" sample code on this so people can
see what you are doing. Most likely there's an error in your code - not
closing or disposing some object, or the like. When you say "uses 10MB" -
what criteria are you using to determine this?
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Donald Adams" wrote:
I'm creating Word 2007 reports in asp.net 1.1 via xml transform.
I get data from the SQL server in .5 sec., first transform takes less than a
sec. and uses 10MB.
I have 900MB free memory of the 2GB memory.
On following reports generations, I get out of memory on the transform
command and only half the file is written before it breaks.
The asp.net memory limit isn't at 60%, I even set it to 100% but still get
the same error.

Is there a thread memory limit?
Any help would be appreciated.

Thanks in advance,

Donald

Mar 28 '07 #2

I will post some code later, but if it works ok on first try (as in first
person to touch the web), should not each new connection be a new thread and
also in that sense be as the first? Even if I wasn't disposing (I am) that
should only be the problem for that thread. Even if I did not release
memory why does it say out of memory on the transform when I have 900MB
free?
I have try catches for each step, getting data from SQL, etc. It's on the
transform that it gets caught and displays the error.
I watched the actual aspnet process and it increased 10MB in memory... and
I'm the only one using the webserver. I know it's just a rough estimate.
The point is it that the process increased 10MB, second time increased that
much more and got memory error while 900MB free.

,,,Donald
"Peter Bromberg [C# MVP]" <pb*******@yaho o.yabbadabbadoo .comwrote in
message news:2D******** *************** ***********@mic rosoft.com...
Afraid you will need to post "just enough" sample code on this so people
can
see what you are doing. Most likely there's an error in your code - not
closing or disposing some object, or the like. When you say "uses
10MB" -
what criteria are you using to determine this?
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Donald Adams" wrote:
>I'm creating Word 2007 reports in asp.net 1.1 via xml transform.
I get data from the SQL server in .5 sec., first transform takes less
than a
sec. and uses 10MB.
I have 900MB free memory of the 2GB memory.
On following reports generations, I get out of memory on the transform
command and only half the file is written before it breaks.
The asp.net memory limit isn't at 60%, I even set it to 100% but still
get
the same error.

Is there a thread memory limit?
Any help would be appreciated.

Thanks in advance,

Donald

Mar 30 '07 #3

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

Similar topics

31
9820
by: lawrence | last post by:
I'm not sure how this is normally done, on a large site, perhaps one running Phorum. Occassionally a thread will have hundreds of entries, perhaps a meg or two worth of data. You won't necessarily print all that to the screen, but PHP has to hold it in memory. Run some operations on it, or, more likely, have an array that you keep adding things to, and very soon you run into the 8 meg limit that is the default limit for PHP scripts. ...
11
2799
by: jong | last post by:
I have a problem with an C# application. The application is a 24x7 low volume message processing server. The server has a single thread of processing, running in a continuous loop, for each iteration thread sleeping for 5 seconds and than reading textual message files from a Windows Folder and applying them to a database. From an external view, the server appears to have a memory-leek, continuously consuming RAM in a near linier fashion as...
1
5510
by: 1944USA | last post by:
I have a C# application written as a Windows Service. It spawns a number of threads, each thread has very large memory intensive processes running on it. I can keep adding threads as long as the "committed byte" utilization of the server stays below 2.5 gigs As soon as we go over that amount we receive "System.OutOfMemoryException" exceptions. I'm not sure what causes the 2.5 gig limit but we consistently hit it on all of our ...
1
1716
by: Yuriy | last post by:
Hi, Can anybody explain the following? Say I have the following source XML and XSLT (see below). No matter what this XSLT does. It is just a sample to show a problem. the idea is that XSLT transforms small XML into quite big XML. Now, I have a straightforward C# (see below) code that does this transform and writes result into XmlTextWriter. (Oleg's NXSLT.EXE is also suitable).
15
2177
by: Alexis | last post by:
Hello, I'm working on a project that uses over a hundred XLSs for transforming xml documents. The project consists of several webservices (IIS) calling a few dlls. This dlls make the business logic and are the ones that do the transformation, so the XLSs are used by these dlls. Right now we have the XSLs files on hard disk. This means there is lots of reading from disk. Since reading from disk is much slower than reading from memory I am...
10
3826
by: VM | last post by:
How can I limit the use of the PC's virtual memory? I'm running a process that basically takes a txt file and loads it to a datatable. The problem is that the file is over 400,000 lines long (77 MB) and after a while I get the Windows message saying that the virtual memory's getting really low. Plus the machine gets really sluggish (with multi-threading). Is it possible to use the virtual memory until it reaches a certain limit and then use...
0
1874
by: Tomas | last post by:
I have two questions: (1) How (if possible) can you, with ASP.NET (and with the IIS 5 included with win2000) specify an maximum limit of the memory that a web application may consume, as an absolute number of megabytes ??? ( I am aware of the "memoryLimit" attribute in the "processModel" element in the Web.config but that only specifies the maximum allowed memory size, as a percentage of total system memory, and I don't want a...
7
1697
by: Malcolm Klotz | last post by:
Hello, I have created a Windows Service application in VB.Net 2005. The service is pretty basic, it uses the System.Timers.Timer class to poll a database that checks for jobs to perform. Upon finding a job, the System.Timers.ElapsedEventHandler creates a new thread to execute the job. The job is pretty basic, it uses and xml document and applies it to an XSLT document using the XSLTransform class.
81
4554
by: Peter Olcott | last post by:
It looks like System::Collections::Generic.List throws and OUT_OF_MEMORY exception whenever memory allocated exceeds 256 MB. I have 1024 MB on my system so I am not even out of physical RAM, much less virtual memory. Are other people experiencing this same problem?
0
8752
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9179
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8099
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.