.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Santhakumar Munuswamy
Asad Ali
Fauzul Azmi
Post New Web Links

How to derive actual physical memory consumption by a process?

Posted By:      Posted Date: October 04, 2010    Points: 0   Category :Sql Server
 

Hello,

I am doing performance analysis of SSRS reports (2008).

Before doing anything, I check in Task Manager(Performance tab) and see that my overall physical memory which is 8GB, is already divided between available memory and system cache. I have also setup perfmon counters and logging data for available memory counter.

Now when I launch a huge report with 2 million records, it starts consuming the available memory and I notice in Task Manager(Performance tab) the available memory is reducing BUT I also notice that the system cache is also reducing (I assume that perhaps OS is borrowing memory from system cache to put it in available memory?) If my assumption is correct, then I would not be able to calculate how much physical memory my report used because it also includes a portion of system cache(?)

OR is the system cache reducing due to disk I/O?

This is getting confusing for me, please help me out experts.

Regards.

 

 




View Complete Post


More Related Resource Links

How to derive actual physical memory consumption by a process?

  

Hello,

I am doing performance analysis of SSRS reports (2008).

Before doing anything, I check in Task Manager(Performance tab) and see that my overall physical memory which is 8GB, is already divided between available memory and system cache. I have also setup perfmon counters and logging data for available memory counter.

Now when I launch a huge report with 2 million records, it starts consuming the available memory and I notice in Task Manager(Performance tab) the available memory is reducing BUT I also notice that the system cache is also reducing (I assume that perhaps OS is borrowing memory from system cache to put it in available memory?) If my assumption is correct, then I would not be able to calculate how much physical memory my report used because it also includes a portion of system cache(?)

OR is the system cache reducing due to disk I/O?

This is getting confusing for me, please help me out experts.

Regards.

 

 


Problem while creating process memory dumps.

  
Hi, I have following piece of code: Imports System Imports System.IO Imports System.Runtime.InteropServices Imports Microsoft.Win32.SafeHandles Imports System.ComponentModel Module Module1 <Flags()> Friend Enum NativeMiniDumpType MiniDumpNormal = &H0 MiniDumpWithDataSegs = &H1 MiniDumpWithFullMemory = &H2 MiniDumpWithHandleData = &H4 MiniDumpFilterMemory = &H8 MiniDumpScanMemory = &H10 MiniDumpWithUnloadedModules = &H20 MiniDumpWithIndirectlyReferencedMemory = &H4 MiniDumpFilterModulePaths = &H80 MiniDumpWithProcessThreadData = &H100 MiniDumpWithPrivateReadWriteMemory = &H200 MiniDumpWithoutOptionalData = &H400 MiniDumpWithFullMemoryInfo = &H800 MiniDumpWithThreadInfo = &H1000 MiniDumpWithCodeSegs = &H2000 MiniDumpWithoutAuxiliaryState = &H4000 MiniDumpWithFullAuxiliaryState = &H8000 End Enum <DllImport("dbghelp.dll", CharSet:=CharSet.Auto, SetLastError:=True)> Friend Function MiniDumpWriteDump(ByVal hProcess As IntPtr, ByVal processId As Int32, ByVal hFile As SafeFileHandle, ByVal dumpType As NativeMiniDumpType, ByVal exceptionParam As IntPtr, ByVal userStreamParam As IntPtr,

How to check how much memory from .NET process is allocated in pagefile?

  
Hi How to check how much memory from .NET process is allocated in pagefile? I was trying use task manager and perfmon but I could not find any counter/column that would tell me how much memory from specific .NET process is in pagefile. Regards

Accessing memory of a remote process (x64) from application (x86) - and the other way

  
Hi everyone, My program access a remote process, e.g. to get the text of ListViewItem. It uses ReadProcessMemory, WriteProcessMemory, SendMessage, LV_ITEM via PInvoke. Below is a little codesnippet. This doesnt work, when i compile for x86 and the remote process is x64 (or the other way). I know that is because the size of IntPtr - and so of the LV_ITEM-Structure - is different. Is there any way, to access x86 and x64 remote processes from the same application?  Is there any way to find out if the remote process is x86 or x64 and make my call's with a suitable LV-Item Structure? thanks Torsten Codesnippet: LV_ITEM lvitem = new LV_ITEM(); // Allocate memory in the remote process's address space string s = string.Empty; IntPtr pszTextMemory = VirtualAllocEx(hProcess,IntPtr.Zero,  1024, (int)(AllocationType.MEM_RESERVE|AllocationType.MEM_COMMIT), (int)(AccessProtectionType.PAGE_READWRITE)); lvitem.pszText = pszTextMemory; ... IntPtr pLVItemMemory = VirtualAllocEx(hProcess, IntPtr.Zero,  Marshal.SizeOf(lvitem), (int)(AllocationType.MEM_RESERVE|AllocationType.MEM_COMMIT), (int)(AccessProtectionType.PAGE_READWRITE)); IntPtr lvItemPtr = Marshal.AllocHGlobal(Marshal.SizeOf(lvitem)); Marshal.StructureToPtr(lvitem,lvItemPtr,false); WriteProcessMemory(hProcess, pLVItemMemory, ref lvitem, Marshal.SizeOf(lvitem), ref written); SendMessage(hListView, LVM_GETITEM

Reduce memory consumption

  
Hi, I'm trying to reduce the memory consumption of a large scale system. The system is based on thousands of DLLs. I'm trying to understand what actions can I take regarding the large amount of DLLs in order to reduce the memory consumption. One thought I had in mind is merging DLLs in order to minimize the meta-data stored in memory. What do you think? any other ideas? Thanks.Lior

Connection Error: (provider: Shared Memory Provider, error: 0 - No process is on the other end of th

  
Hello,Please bear with me as I am no Sql Server guru, but am getting this error that is preventing me from continuing with my development work.  I am the only developer on my team running Sql Server 2005 and it has been working just fine for the last week.  I opened the Management Studio this morning, just like every other morning and got this error:TITLE: Connect to Server------------------------------ Cannot connect to (local). ------------------------------ADDITIONAL INFORMATION: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (Microsoft SQL Server, Error: 233) Of course the help page says no help is available.  I have googled myself sick and still have not found a way so resolve this...has anyone else had this error and/or a fix?  I am using XP Pro SP2...any help would be greatly appreciated!Thanks!Steph

COM Server process compiled with /clr option doesn't unload itself from memory when last COM client

  
I created Visual C++ ATL project in VS2010, exe type, imlemented COM object, then added /clr option to project. Project uses other C# dlls (WCF service). When last COM client disconnects and last COM object instance destroys, WCF service stopped, my COM server process doesn't unload itself from memory. All managed threads in C# dll are background, COM object doesn't create threads. How can I unload server process? Thank you in advance. 

SQL Server 2008 R2 on Window Server 2008 Physical Memory keep growing

  

We are running SQL Server 2008 R2 on on Window Server 2008 (x64).

Once in every 2 weeks we end up restarting the SQL Server, due to  Physical Memory keep growing.

Is there a good way to pinpoint the problem what cause this Physical Memory to grow?

Thank you

Armine Bell


Memory error: Allocation failure : Not enough storage is available to process this command. .

  

Hi,

I get the error message above. Cube has 3 measure groups, 1 main fact and 2 many to many facts. Main fact has 450k rows, other two have 165 rows and 2200k rows. It also has 4 dimensions. Dimensions have max 10000 rows.

I get the errors when I add a "calculated" fact to the the main fact group, which is a distinct count on a key. When I remove that fact, the error is gone.

I am using sql 2005 enterprise with the latest sp's and patche on a windows 2003 server with 4GB 32 bit. Any ideas ?

Constantijn


Memory consumption comparison between WCF x Remoting on Host

  

Dear sirs,

 

I did a small winform host application to register a simple service (Hello Word) 500 times on Remoting and on WCF.

I noticed that WCF consumes much more memory than Remoting just to host the services. About 150 times over .

 

I´m just talking the necessary memory to run the following commands:

- [WCF] ServiceHost.Open   versus  [Remoting] RemotingConfiguration.RegisterWellKnownServiceType

I´m not talking about message, client x server communication...

 

Here is my sample application results summary:

-WCF Service - GC Memory (gcMemoryEnd - gcMemoryStart) : 9691 KBytes

-Remoting Service - GC Memory (gcMemoryEnd - gcMemoryStart) :61 KBytes

 

I can send to you my sample application. Just ask me. (mrctito@hotmail.com)

You can download from [http://cid-063f615d2720e2bf.office.live.com/self.aspx/P%c3%bablico/MemoryConsumptionComparisonWCFversusRemoting.zip] too.

I would be very glad for any help.

Thank you.


memory usage (consumption) of individual controls on a web form shown in a browser

  

Hi

Is there a way to check the memory usage (consumption) of individual controls on a web form shown in a browser. Like Repeater Control, Multiline Text box etc. The reason is I am putting the repeater control in session and checking the status of controls, based on which I am doing further actions.

Thanks

gsalunkhe


90% of used physical memory missing

  

I am running Analysis Services 2008 R2 on a Windows 2008 x64 SP2 box with 32 GB Ram

After the server has been running for a few hours Resource Monitor displays 99% used Physical Memory

However when I look at processes I can see msmdsrv.exe consuming around 3.8GB (Committed 3.8 GB , Working Set 3.6GB) and no other process consuming mor than 100kb. The total process barely consume more than 4GB of Ram so I am trying to see where the remaining 28GB is going

Some other posts with similar sounding problems indicated this may be due to SQL Server allocating memory from AWE but this issue occurs without SQL Server being started.

I have checked the various SSAS perfmon counters but these show a similar picture.

Is there someway to see where memory is being used?

Thanks

Patrick

 

 

 


WPF Memory consumption on scroll

  

Hi,

I have a listview in the UI, to which each item is loaded on Page Up and Page Down events.

I use Listview1.items.Clear before I add a new item or the next item in the ListView using listview1.items.Add(obj1)

Although, I am clearing the listviewitems before adding a new one, the memory keeps increasing on Page Up and Page Down actions. I have also set Isvirtualizing = true on the Listview and there is no much process involved in fetching the next listviewitem except it contains around 10 RichTexboxes and TextBoxes.

Please let me know as what to do to fix the problem.

Thanks.


How to write memory stream to a physical path

  

Hello I have the  a stream called mstream that I would like to right to a physical path.  How would I do it. 

This is my approach

 byte[] buffers = mStream.ToArray();


        using (FileStream fs = new FileStream(filePath + "emailAttachments\\calendar" + usersession + ".ics", FileMode.CreateNew))
        {
            foreach (byte[] buffer in buffers)
            {
                fs.Write(buffer, 0, buffer.Length);
            }
        }

But I'm gettin an error cannot  covert byte[] to byte.  Please assist.  Thanks.


SharePoint Tutorial -SharePoint Physical Architecture

  
The SharePoint physical architecture consists of services running on one or more servers.

Services
There are three types of services that together run the SharePoint farm: web, application and database services. Web services through Internet Information Server is what processes the ASP.Net and sends back the html to a user's browser. Application services is where the "brains" of SharePoint are located. All of the SharePoint specific logic and services are processed there. Database services are run by SQL Server and it's where all the data/content for SharePoint is stored.

ASP.NET Architecture - ASP.NET Worker Process - HTTP Pipleline - Http Modules and Handlers

  
"ASP.NET is a powerful platform for building Web applications, that provides a tremendous amount of flexibility and power for building just about any kind of Web application. Most people are familiar only with the high level frameworks like WebForms and WebServices which sit at the very top level of the ASP.NET hierarchy. In this article I'll describe the lower level aspects of ASP.NET and explain how requests move from Web Server to the ASP.NET runtime and then through the ASP.NET Http Pipeline to process requests.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend