Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
.Net app using whole memory available
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Marcin Ochocki  
View profile  
 More options Oct 24, 5:12 am
Newsgroups: microsoft.public.dotnet.framework
From: Marcin Ochocki <ocho...@gmail.com>
Date: Fri, 23 Oct 2009 12:12:51 -0700 (PDT)
Local: Sat, Oct 24 2009 5:12 am
Subject: .Net app using whole memory available
Hi,

I have a heterogeneous application: a win32 app hosting .net service.
Under a heavy load the .net part is consuming 100% of available
memory. Of course after a moment GC runs and situation goes back to
normal. But during this few seconds other apps running on this machine
are experiencing problems.

The question is: can I configure .net application by setting maximum
of memory it can use? For example I'd like the application to use max
80% of available memory and when it will happen, the GC should do it's
work.

thanx
M.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gregory A. Beamer  
View profile  
 More options Oct 27, 3:57 am
Newsgroups: microsoft.public.dotnet.framework
From: "Gregory A. Beamer" <NoSpamMgbwo...@comcast.netNoSpamM>
Date: Mon, 26 Oct 2009 09:57:48 -0700
Local: Tues, Oct 27 2009 3:57 am
Subject: Re: .Net app using whole memory available
Marcin Ochocki <ocho...@gmail.com> wrote in news:61fed606-d299-4c3b-b6cd-
58d664a08...@d4g2000vbm.googlegroups.com:

> I have a heterogeneous application: a win32 app hosting .net service.
> Under a heavy load the .net part is consuming 100% of available
> memory. Of course after a moment GC runs and situation goes back to
> normal. But during this few seconds other apps running on this machine
> are experiencing problems.

> The question is: can I configure .net application by setting maximum
> of memory it can use? For example I'd like the application to use max
> 80% of available memory and when it will happen, the GC should do it's
> work.

The only ways I know of is hosting the .NET bits in IIS or possibly COM+
(Enterprise Service). You can then throttle the memory. This gives me a
TODO of checking if 4.0 has any provisions for this, however. ;-)

Peace and Grace,

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
|      Think outside the box!             |
*******************************************


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Patrice  
View profile  
 More options Oct 27, 5:01 am
Newsgroups: microsoft.public.dotnet.framework
From: "Patrice" <http://scribe-en.blogspot.com/>
Date: Mon, 26 Oct 2009 19:01:12 +0100
Local: Tues, Oct 27 2009 5:01 am
Subject: Re: .Net app using whole memory available

> The question is: can I configure .net application by setting maximum
> of memory it can use? For example I'd like the application to use max
> 80% of available memory and when it will happen, the GC should do it's
> work.

Try perhaps :
http://msdn.microsoft.com/en-us/library/system.gc.addmemorypressure.aspx.

It allows to add an "unmanaged memory pressure" to the GC. It could help to
trigger GC earlier (never tried myself).

--
Patrice


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google