Re: Can I abandon the lock on .SyncRoot and lock a collection directly? Less available memory in 2.0?

Tech-Archive recommends: Speed Up your PC by fixing your registry



On 6 Apr., 14:47, "Frank Hileman"
<frank...@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi DC,

Try running this program, but with a much smaller data set -- it adds a lot
of overhead.

ClrProfiler:http://www.microsoft.com/downloads/details.aspx?familyid=A362781C-387...

Log dumper for ClrProfiler logs:http://blogs.msdn.com/ricom/articles/449244.aspx

Regards,
Frank Hileman

check out VG.net:http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio graphics editor

"DC" <d...@xxxxxxxxx> wrote in message

news:1175854678.193242.150290@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



Hi,

I am porting an app from Framework 1.1 to 2.0 and I am now using
Dictionary objects instead of Hashtables. There are some

lock (theHashtable.SyncRoot)

statements in the 1.1 code and I replaced those by

lock (theDictionary)

statements. I did not note a difference, but I wanted to ask if this
generates any issues like more granular locking.

I swapped out the Hashtable in the first place because I was hoping
that this would safe some memory. I am observing the following: under
1.1, my app is using p to 1300 MB of memory and running fine. With
2.0, the app is now using about 1100 MB of memory and then starts
throwing "out of memory" exceptions (2GB RAM Windows 2003 machines). I
have not found a way to solve this by cofiguration, and I am therefore
trying to save RAM now. Can someone recommend a really easy method to
profile which objects use what amount of RAM?

TIA for any hints,

Regards
DC- Zitierten Text ausblenden -

- Zitierten Text anzeigen -

Thank you for the pointers, Frank. I am currently checking out CLR
Profiler.

Regards
DC

.



Relevant Pages

  • Re: Loading an I/O intensive program into memory
    ... explicitly loading the lot into RAM. ... You can lock programs into memory, but that may or may not help. ... It's easier to redo the main loop of code in shell than in C. ... Run your program with real input to gather the profile data. ...
    (comp.os.linux.misc)
  • Re: Can I abandon the lock on .SyncRoot and lock a collection directly? Less available memory in 2.0
    ... On 6 Apr., 14:47, "Frank Hileman" ... my app is using p to 1300 MB of memory and running fine. ... throwing "out of memory" exceptions (2GB RAM Windows 2003 machines). ... I tried CLR Profiler. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Steve Jobs demos Macintosh in 1984
    ... Woody wrote: ... Stop annoying the fucking hell out of me, ... For sure not much computer memory had been made in 1948 - but it could ... For sure you got a bit more RAM to use in the Speccy - ...
    (uk.comp.sys.mac)
  • Re: Windows uses 4 GB? Really?
    ... I bought 4 GB of RAM because I thought it would speed up my system a bit. ... Some info that is posted here as reference seems to suggest that it is a Windows issue, but others seem to suggest that it is also a hardware issue. ... "I have install total 4GB memory on my motherboard. ... On a SLI system, since PCI-Ex graphic cards will occupy around 256MB, another 256MB will be occupied after you install a 2nd PCI-Ex graphic card. ...
    (microsoft.public.windowsxp.general)
  • Re: Computer wont boot up after installing new RAM
    ... I even took a look at an old Gigabyte motherboard ... DDR2 memory stick, the notch does not line up. ... "To install the memory module, ... into the motherboard RAM slots. ...
    (microsoft.public.windowsxp.hardware)