By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,364 Members | 1,518 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,364 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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 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.
Jul 15 '08 #2

P: n/a
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
"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 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.
Jul 16 '08 #3

P: n/a
On Wed, 16 Jul 2008 06:21:02 -0700, Sven W.
<Sv***@discussions.microsoft.comwrote:
[...]
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

P: n/a
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***@discussions.microsoft.comwrote in message
news:76**********************************@microsof t.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() - 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
"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 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.
Aug 2 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.