.NET Framework - Process.start() within Backgroundworker - Memory limit??

Asked By Sven
15-Jul-08 05:29 PM
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
BackgroundWorker
(1)
ASP.NET
(1)
Button
(1)
Process.start
(1)
Download
(1)
DoWork
(1)
Backgroundworker.RunAsync
(1)
Backgroundworker.DoWork
(1)
  Jeroen Mostert replied...
15-Jul-08 05:43 PM
I'm quite skeptical that BackgroundWorker has anything to do with it. Can
you verify that the problem doesn't occur if you start them without using
BackgroundWorker, or even if you start them manually?

--
J.
  Sven replied...
16-Jul-08 09:21 AM
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() - backgroundworker.RunAsync()
- backgroundworker.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
  Peter Duniho replied...
16-Jul-08 12:56 PM
On Wed, 16 Jul 2008 06:21:02 -0700, Sven W.


As Jeroen accurately speculated.  :)


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
  Alvin Bruney [ASP.NET MVP] replied...
02-Aug-08 05:47 AM
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
-------------------------------------------------------
  Jamie Wallace replied...
28-Feb-09 03:59 AM
Hi Sve,

Did you ever find a solution to your problem, I am experiencing a very simialr issue.

Thanks
Jamie
Create New Account
help
Free asp.net forum software? .NET Framework Hi all does anyone know of any good free open source forumsoftware? Google did not really return anything good apart from the original 1.1 ASP., NET version which I installed. http: / / www.asp.net / Forums / Download I now get a problem where when a person logs in they get about a better free forum or how to solve the above problem appreciated Cheers Markus ASP.NET Discussions ASP.NET (1) Site (1) Download (1) Community Server has replaced asp.net.forums
vbCrLf .NET Framework What is this? vbCrLf ASP.NET Discussions ASP.NET (1) VB.NET (1) MailFormat (1) SmtpMail (1) DateTime (1) MailMessage (1) MailPriority (1) EventArgs (1) vbCrLf = Visual Basic Carriage Return Line Feed. Juan T. Llibre, asp.net MVP asp.net faq : http: / / asp.net.do / faq / foros de asp.net, en español : http: / / asp.net
The Dino Esposito ASP.NET books are still the ones I always returnto. . . .NET Framework The Dino Esposito ASP.NET books are still the ones I always return to. . . ASP.NET Discussions ASP.NET (1) Ever since I stopped writing, I recommend Dino's books, too. Juan T. Llibre
asp.net: Change .NET version in Web.config .NET Framework Can I select version of .NET compiler to run my ASP.NET web application? I thought I can select version of compiler by config in Web.config when I need to change between 1.0 or 1.1 But in ASP.NET 2.0, Can I choose? I see the way to change only in IIS but cannot see at this moment. Anybody find the way to set, pls let me know. ASP.NET Discussions ASP.NET (1) IIS (1) Site (1) I don't think it can be