//Cloud notes from my desk -Maheshk

"Fortunate are those who take the first steps.” ― Paulo Coelho

What is VMMap?

I know there is a bunch of free util under technet, I was not sure about VMMap until one of my manager asked me to check our product under VMMap.
-Its a process virtual and physical memory analysis utility.
– It shows a breakdown of a process’s committed virtual memory types as well as the amount of physical memory (working set) assigned by the operating system to those types.
You can use this to tool exactly to figure out amount of memory used by your process – http://technet.microsoft.com/en-us/sysinternals/dd535533

2011-09-13 Posted by | windbg | Leave a comment

What is FPort?

FPort reports all open TCP/IP and UDP ports and maps them to the owning application. This is the same information you would see using the ‘netstat -an’ command, but it also maps those ports to running processes with the PID, process name and path. Fport can be used to quickly identify unknown open ports and their associated applications.
Get it from here- http://www.mcafee.com/us/downloads/free-tools/fport.aspx

2011-09-07 Posted by | Uncategorized | | Leave a comment

What is Fix Protocol?

Yesterday I had a chat with my long time friend who is in Client place talked about ‘Fix Protocol’ first time to me.

Until yesterday I didn’t knew the importance of Fix Protocol. Read it here – http://www.fixprotocol.org/what-is-fix.shtml

Interested part – Who uses fix (Almost all major financial firms ) – http://www.fixprotocol.org/adopters/


2011-09-06 Posted by | Uncategorized | Leave a comment

Now you can Trim your .NET Application Memory easily.

Memory Trimmer

Memory Trimmer

As a part of Development using WPF,  we get complaints as ‘Memory consumption keeps increasing on time and never comes down’ and noises on Memory leakage. Ofcourse there are some loose ends in WPF design which takes developer for a ride. When we do a close analysis with tools like RedGate, we can spot those mysterious spot if we are lucky, but not always.

Back to our problem -At some point, they are forced to kill the application or Hang. Initially we don’t know because of  code or memory leakage for the root cause. The reason could be of anything and need closer investigation in both sides.

Just imagine you don’t find wrong from the developer/code side, but still you see the memory keeps up shooting up….Here is what you have to do, but not mandate to have such code always unless your ‘App’ require special trimming.

I wrote a tool (started as a POC) called Memory Trimmer, which actually has the below line,

SetProcessWorkingSetSize(Process.GetCurrentProcess().Handle, -1, -1);

Original inspiration for this tool (MemoryTrimmer) was from this blog.

Here is the sample uploaded and shared in my Skydrive.

Pls download and leave your comment/review points if you find any.

Happy Coding !!

I wrote a mail to MS (Carol Buchmiller,Senior Programming Writer, Windows Server UA) and here is the Q & A’s

Q: I’m confused of using ‘-1’ for both SetProcessWorkingSetSize(t1process.Handle, -1, -1);
Will it hurt the OS or Application performance if I set these values explicitly with -1 ?

Carol B -Answer : It depends on your application. The values (-1, -1) tell the memory manager to keep the working set as small as possible, so
the memory footprint of your application would be small. However, if your application is accessing a lot of data in memory, these values might
trigger more page faults, which causes the memory manager to have to load the page from disk. This would definitely affect the performance.

The best recommendation is to try it and see what effect it has on the performance of your application.

Thanks Carol B for the reply.

2011-09-01 Posted by | Uncategorized | Leave a comment


%d bloggers like this: