473,765 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Process.start() within Backgroundworke r - Memory limit??

Hi Newsgroup,

I am developing a C# Windows Forms application that launches processes within
a background worker..

The processes seem to have a memory limit of about 278mb. Some proccesses
that get to that
amount of used memory seem to hang ;-(

Is there a memory limit that can be adjusted ?? The physical machine has 3
GB RAM, should be enough...

Thanks
Sven
Jul 15 '08 #1
4 6401
Sven W. wrote:
I am developing a C# Windows Forms application that launches processes within
a background worker..

The processes seem to have a memory limit of about 278mb. Some proccesses
that get to that
amount of used memory seem to hang ;-(
I'm quite skeptical that BackgroundWorke r has anything to do with it. Can
you verify that the problem doesn't occur if you start them without using
BackgroundWorke r, or even if you start them manually?

--
J.
Jul 15 '08 #2
Hi Jeroen,

let me 1st tell you something about the application:

- windows forms application that should act quite like a batchfile ->
launching programs out of a list,
- displays list of programs in a datagridview,
- Button_Click() - backgroundworke r.RunAsync()
- backgroundworke r.DoWork() - launches item per item the programs from the
list as a process.

now, I removed the bgworker.. still the same problem.

One console program consumes about 280mb within the started process and
hangs. when launching it from normal console start>execute program .... it
consumes about 400mb and exists normally.

I think the problem is the "process class" of c#. Is it possible to adjust
its maximum memorylimit, if it has a memory limit...

Any hints ?

Sven
"Jeroen Mostert" wrote:
Sven W. wrote:
I am developing a C# Windows Forms application that launches processes within
a background worker..

The processes seem to have a memory limit of about 278mb. Some proccesses
that get to that
amount of used memory seem to hang ;-(
I'm quite skeptical that BackgroundWorke r has anything to do with it. Can
you verify that the problem doesn't occur if you start them without using
BackgroundWorke r, or even if you start them manually?

--
J.
Jul 16 '08 #3
On Wed, 16 Jul 2008 06:21:02 -0700, Sven W.
<Sv***@discussi ons.microsoft.c omwrote:
[...]
now, I removed the bgworker.. still the same problem.
As Jeroen accurately speculated. :)
One console program consumes about 280mb within the started process and
hangs. when launching it from normal console start>execute program ....it
consumes about 400mb and exists normally.

I think the problem is the "process class" of c#. Is it possible to
adjust
its maximum memorylimit, if it has a memory limit...
It doesn't, and your problem is unlikely to be specific to the Process
class.

If the processes being launched are hanging, you need to debug that. That
is, debug a hung process, not the application starting the process.
Especially since the memory consumptions you're describing are so far
below any usual limitation on a modern PC, I really doubt that you've got
a memory consumption/limit problem. There's something else going on.

Pete
Jul 16 '08 #4
There is a client heap setting you can adjust for windows applications
although it applies mainly to COM+. Have a look at this article:
http://support.microsoft.com/kb/556076

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Download OWC Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $15.00
Need a free copy of VSTS 2008 w/ MSDN Premium?
http://msmvps.com/blogs/alvin/Default.aspx
-------------------------------------------------------
"Sven W." <Sv***@discussi ons.microsoft.c omwrote in message
news:76******** *************** ***********@mic rosoft.com...
Hi Jeroen,

let me 1st tell you something about the application:

- windows forms application that should act quite like a batchfile ->
launching programs out of a list,
- displays list of programs in a datagridview,
- Button_Click() - backgroundworke r.RunAsync()
- backgroundworke r.DoWork() - launches item per item the programs from the
list as a process.

now, I removed the bgworker.. still the same problem.

One console program consumes about 280mb within the started process and
hangs. when launching it from normal console start>execute program .... it
consumes about 400mb and exists normally.

I think the problem is the "process class" of c#. Is it possible to adjust
its maximum memorylimit, if it has a memory limit...

Any hints ?

Sven
"Jeroen Mostert" wrote:
>Sven W. wrote:
I am developing a C# Windows Forms application that launches processes
within
a background worker..

The processes seem to have a memory limit of about 278mb. Some
proccesses
that get to that
amount of used memory seem to hang ;-(
I'm quite skeptical that BackgroundWorke r has anything to do with it. Can
you verify that the problem doesn't occur if you start them without using
BackgroundWork er, or even if you start them manually?

--
J.
Aug 2 '08 #5

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

Similar topics

77
4602
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the process starts is not especially important, but it must be complete within a small number of seconds. The operations I am performing do not take a long time (hundreds of milliseconds), but as each part of the process is complete, my worker thread...
22
3022
by: Zen | last post by:
Hi, My production machine has 2G of memory, when aspnet_wp.exe goes up to about ~1.2G of memory usage, I start get out-of-memory exception. Other processes don't use as much memory and I added all the peak memory usage of all the processes (including aspnet_wp.exe), it goes up to no more than 1.5. How is that possible? Would anyone know please help? thanks!
28
4944
by: Jon Davis | last post by:
We're looking at running a memory-intensive process for a web site as a Windows service in isolation of IIS because IIS refuses to consume all of the available physical RAM. Considering remoting to move data in and out of this process. Need something that's quick and dirty and easy to implement, but that's performant and secure at the same time. Any suggestions / tutorials? Would prefer not to go on the TCP/IP stack (socket) as it is not...
4
2337
by: Diego F. | last post by:
Hello. I have a process that can take a long time and I'm trying to put an animated gif while the user is waiting. I added a panel with a picturebox with the image inside. The panel is not visible when the application starts, but before the process, I make it visible. The problem is that while the long process is running, the image doesn't appear. The panel is empty.
8
3172
by: Nehil | last post by:
When a process is started three segments are created : 1) Text. 2) Stack. 3) Data. The size of First two is fixed and their upperlimit is fixed by the compiler. (Plz correct if i'm wrong) Now The Data Segment : at the start it's size is small but as the process goes on and requires Dynamic Memory allocation, its size increases.
4
5806
by: Daniel | last post by:
is there some per-process-limit on memory in .net processes? is there any way to increase it? i keep getting System.OutOfMemoryException when my box has 8 gigs of unused memory.
5
12649
by: Max2006 | last post by:
Hi, What is the limit for memory that a .NET process or AppDomain can use? Thank you, Max
32
1706
by: John Wright | last post by:
I have a long process I run that needs to be complete before the user can continue. I can change the cursor to an hourglass, but I want to update the Status Strip on the bottom during the process. I set the statusstrip label to "Downloading...", but it will not show up on the form. I need to display this message before it starts the process. I can put a thread.sleep for 1 second after I do the initial process, but that seems sloppy to me. ...
1
3204
rauty
by: rauty | last post by:
Hi all, I have a situation where I'm using BackgroundWorker to run a long process in the background. However, whenever it runs I keep getting the following error: "TargetInvocationException was unhandled" The culprit seems to be this guy: Dim GrainProcess As New Process()
0
10161
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...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9833
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8831
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
7378
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
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5421
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
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
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.