Connecting Tech Pros Worldwide Help | Site Map

MQ memory leak

José Joye
Guest
 
Posts: n/a
#1: Nov 15 '05
Hi,

I have implemented a Service that is responsible for getting messages from a
MS MQ located on a remote machine. I'm getting memory leak from time to time
(???). In some situation, it is easier to reproduce (e.g.: remote machine
not available). After about 1 day, I get a usage of 300MB of memory.
I have used .NET Memory Profiler tool to try to see where the leak is
located. For all the leaky instances, I can see the following (I should say
that is not too clear what it is trying to show...):

Message..ctor(MessagePropertyFilter)
MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR, MessagePropertyFilter,
......)
MessageQueue.Receive(TimeSpan)
MQEvlReceiver.Receive(int) <--------My appl.
MQReception.DoWork() <--------My appl.

I have check and re-check my code, I cannot see any problem with it.

Does anyone knows about a leak with MQ in a similar case?

Here is my config:
W2K sp3 english
..NET 1.1

Thanks,
José


Nicholas Paldino [.NET/C# MVP]
Guest
 
Posts: n/a
#2: Nov 15 '05

re: MQ memory leak


Jose,

Are you calling Dispose on all of the classes that you are using? For
example, are you calling Dispose on the MessageQueue instance you are using?
This could be a major source of any leaks you might be seeing.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com

"José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...[color=blue]
> Hi,
>
> I have implemented a Service that is responsible for getting messages from[/color]
a[color=blue]
> MS MQ located on a remote machine. I'm getting memory leak from time to[/color]
time[color=blue]
> (???). In some situation, it is easier to reproduce (e.g.: remote machine
> not available). After about 1 day, I get a usage of 300MB of memory.
> I have used .NET Memory Profiler tool to try to see where the leak is
> located. For all the leaky instances, I can see the following (I should[/color]
say[color=blue]
> that is not too clear what it is trying to show...):
>
> Message..ctor(MessagePropertyFilter)
> MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR, MessagePropertyFilter,
> .....)
> MessageQueue.Receive(TimeSpan)
> MQEvlReceiver.Receive(int) <--------My appl.
> MQReception.DoWork() <--------My appl.
>
> I have check and re-check my code, I cannot see any problem with it.
>
> Does anyone knows about a leak with MQ in a similar case?
>
> Here is my config:
> W2K sp3 english
> .NET 1.1
>
> Thanks,
> José
>
>[/color]


José Joye
Guest
 
Posts: n/a
#3: Nov 15 '05

re: MQ memory leak


In fact, before entering my loop, I create an instance of a class that will
try to fetch messages. This class has a private member :
private MessageQueue m_mq;

Within the method called by the main loop, whenever I try to fetch a
message, I use m_mq.Receive(TimeToWait).
In case a message is retrieved, I pass it back to my main loop. In any other
situation, I return a null.

There is a situation where I call Dispose() method on my "m_mq" member. This
is when I get an error of type MessageQueueErrorCode.QueueNotAvailable. In
such a case, I apply the following algorithm:
m_mq.Dispose();
m_mq=null;
MessageQueue.ClearConnectionCache();
m_mq = new MessageQueue(m_strQueueName);
MessageQueue.EnableConnection = true;


When the main loop receive the answer (either a message or a null), it will
process the message and call the method again to get the next message.

In that sense, I think I did not forgot to call any Dispose().

José

"Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> a écrit
dans le message de news:etz8QE6rDHA.2208@TK2MSFTNGP10.phx.gbl...[color=blue]
> Jose,
>
> Are you calling Dispose on all of the classes that you are using? For
> example, are you calling Dispose on the MessageQueue instance you are[/color]
using?[color=blue]
> This could be a major source of any leaks you might be seeing.
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mvp@spam.guard.caspershouse.com
>
> "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...[color=green]
> > Hi,
> >
> > I have implemented a Service that is responsible for getting messages[/color][/color]
from[color=blue]
> a[color=green]
> > MS MQ located on a remote machine. I'm getting memory leak from time to[/color]
> time[color=green]
> > (???). In some situation, it is easier to reproduce (e.g.: remote[/color][/color]
machine[color=blue][color=green]
> > not available). After about 1 day, I get a usage of 300MB of memory.
> > I have used .NET Memory Profiler tool to try to see where the leak is
> > located. For all the leaky instances, I can see the following (I should[/color]
> say[color=green]
> > that is not too clear what it is trying to show...):
> >
> > Message..ctor(MessagePropertyFilter)
> > MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR,[/color][/color]
MessagePropertyFilter,[color=blue][color=green]
> > .....)
> > MessageQueue.Receive(TimeSpan)
> > MQEvlReceiver.Receive(int) <--------My appl.
> > MQReception.DoWork() <--------My appl.
> >
> > I have check and re-check my code, I cannot see any problem with it.
> >
> > Does anyone knows about a leak with MQ in a similar case?
> >
> > Here is my config:
> > W2K sp3 english
> > .NET 1.1
> >
> > Thanks,
> > José
> >
> >[/color]
>
>[/color]


Muscha
Guest
 
Posts: n/a
#4: Nov 15 '05

re: MQ memory leak


>[color=blue]
> Are you calling Dispose on all of the classes that you are using? For
> example, are you calling Dispose on the MessageQueue instance you are[/color]
using?[color=blue]
> This could be a major source of any leaks you might be seeing.[/color]

Why should we call Dispose() manually? Shouldn't be calling Close() is
enough? I thought dispose will be called when the object is about to be
garbage collected and shouldn't be called manualy.

/m
[color=blue]
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mvp@spam.guard.caspershouse.com
>
> "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...[color=green]
> > Hi,
> >
> > I have implemented a Service that is responsible for getting messages[/color][/color]
from[color=blue]
> a[color=green]
> > MS MQ located on a remote machine. I'm getting memory leak from time to[/color]
> time[color=green]
> > (???). In some situation, it is easier to reproduce (e.g.: remote[/color][/color]
machine[color=blue][color=green]
> > not available). After about 1 day, I get a usage of 300MB of memory.
> > I have used .NET Memory Profiler tool to try to see where the leak is
> > located. For all the leaky instances, I can see the following (I should[/color]
> say[color=green]
> > that is not too clear what it is trying to show...):
> >
> > Message..ctor(MessagePropertyFilter)
> > MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR,[/color][/color]
MessagePropertyFilter,[color=blue][color=green]
> > .....)
> > MessageQueue.Receive(TimeSpan)
> > MQEvlReceiver.Receive(int) <--------My appl.
> > MQReception.DoWork() <--------My appl.
> >
> > I have check and re-check my code, I cannot see any problem with it.
> >
> > Does anyone knows about a leak with MQ in a similar case?
> >
> > Here is my config:
> > W2K sp3 english
> > .NET 1.1
> >
> > Thanks,
> > José
> >
> >[/color]
>
>[/color]


Nicholas Paldino [.NET/C# MVP]
Guest
 
Posts: n/a
#5: Nov 15 '05

re: MQ memory leak


Muscha,

They are doing the same thing. For some classes though, it fits better
to have a method named "Close" as opposed to "Dispose" when dealing with the
resource (for example, on a FileStream, if you Dispose it, it might indicate
you are getting rid of the file, as opposed to closing it).


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com

"Muscha" <muscha@no.spam.net> wrote in message
news:ObV6p27rDHA.684@TK2MSFTNGP09.phx.gbl...[color=blue][color=green]
> >
> > Are you calling Dispose on all of the classes that you are using?[/color][/color]
For[color=blue][color=green]
> > example, are you calling Dispose on the MessageQueue instance you are[/color]
> using?[color=green]
> > This could be a major source of any leaks you might be seeing.[/color]
>
> Why should we call Dispose() manually? Shouldn't be calling Close() is
> enough? I thought dispose will be called when the object is about to be
> garbage collected and shouldn't be called manualy.
>
> /m
>[color=green]
> >
> > Hope this helps.
> >
> >
> > --
> > - Nicholas Paldino [.NET/C# MVP]
> > - mvp@spam.guard.caspershouse.com
> >
> > "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> > news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...[color=darkred]
> > > Hi,
> > >
> > > I have implemented a Service that is responsible for getting messages[/color][/color]
> from[color=green]
> > a[color=darkred]
> > > MS MQ located on a remote machine. I'm getting memory leak from time[/color][/color][/color]
to[color=blue][color=green]
> > time[color=darkred]
> > > (???). In some situation, it is easier to reproduce (e.g.: remote[/color][/color]
> machine[color=green][color=darkred]
> > > not available). After about 1 day, I get a usage of 300MB of memory.
> > > I have used .NET Memory Profiler tool to try to see where the leak is
> > > located. For all the leaky instances, I can see the following (I[/color][/color][/color]
should[color=blue][color=green]
> > say[color=darkred]
> > > that is not too clear what it is trying to show...):
> > >
> > > Message..ctor(MessagePropertyFilter)
> > > MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR,[/color][/color]
> MessagePropertyFilter,[color=green][color=darkred]
> > > .....)
> > > MessageQueue.Receive(TimeSpan)
> > > MQEvlReceiver.Receive(int) <--------My appl.
> > > MQReception.DoWork() <--------My appl.
> > >
> > > I have check and re-check my code, I cannot see any problem with it.
> > >
> > > Does anyone knows about a leak with MQ in a similar case?
> > >
> > > Here is my config:
> > > W2K sp3 english
> > > .NET 1.1
> > >
> > > Thanks,
> > > José
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Doron Juster [MSFT]
Guest
 
Posts: n/a
#6: Nov 15 '05

re: MQ memory leak


Are you receiving from a remote computer ?
If yes, does the leak happen when remote is not available ?

Thanks, Doron
--
This posting is provided "AS IS" with no warranties, and confers no rights.
..

"José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...[color=blue]
> Hi,
>
> I have implemented a Service that is responsible for getting messages from[/color]
a[color=blue]
> MS MQ located on a remote machine. I'm getting memory leak from time to[/color]
time[color=blue]
> (???). In some situation, it is easier to reproduce (e.g.: remote machine
> not available). After about 1 day, I get a usage of 300MB of memory.
> I have used .NET Memory Profiler tool to try to see where the leak is
> located. For all the leaky instances, I can see the following (I should[/color]
say[color=blue]
> that is not too clear what it is trying to show...):
>
> Message..ctor(MessagePropertyFilter)
> MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR, MessagePropertyFilter,
> .....)
> MessageQueue.Receive(TimeSpan)
> MQEvlReceiver.Receive(int) <--------My appl.
> MQReception.DoWork() <--------My appl.
>
> I have check and re-check my code, I cannot see any problem with it.
>
> Does anyone knows about a leak with MQ in a similar case?
>
> Here is my config:
> W2K sp3 english
> .NET 1.1
>
> Thanks,
> José
>
>[/color]


José Joye
Guest
 
Posts: n/a
#7: Nov 15 '05

re: MQ memory leak


As far as I see it, it append "only" when the remote is not available

José
"Doron Juster [MSFT]" <DoronJ@Online.Microsoft.com> wrote in message
news:empA6GqsDHA.1788@tk2msftngp13.phx.gbl...[color=blue]
> Are you receiving from a remote computer ?
> If yes, does the leak happen when remote is not available ?
>
> Thanks, Doron
> --
> This posting is provided "AS IS" with no warranties, and confers no[/color]
rights.[color=blue]
> .
>
> "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...[color=green]
> > Hi,
> >
> > I have implemented a Service that is responsible for getting messages[/color][/color]
from[color=blue]
> a[color=green]
> > MS MQ located on a remote machine. I'm getting memory leak from time to[/color]
> time[color=green]
> > (???). In some situation, it is easier to reproduce (e.g.: remote[/color][/color]
machine[color=blue][color=green]
> > not available). After about 1 day, I get a usage of 300MB of memory.
> > I have used .NET Memory Profiler tool to try to see where the leak is
> > located. For all the leaky instances, I can see the following (I should[/color]
> say[color=green]
> > that is not too clear what it is trying to show...):
> >
> > Message..ctor(MessagePropertyFilter)
> > MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR,[/color][/color]
MessagePropertyFilter,[color=blue][color=green]
> > .....)
> > MessageQueue.Receive(TimeSpan)
> > MQEvlReceiver.Receive(int) <--------My appl.
> > MQReception.DoWork() <--------My appl.
> >
> > I have check and re-check my code, I cannot see any problem with it.
> >
> > Does anyone knows about a leak with MQ in a similar case?
> >
> > Here is my config:
> > W2K sp3 english
> > .NET 1.1
> >
> > Thanks,
> > José
> >
> >[/color]
>
>[/color]


Doron Juster [MSFT]
Guest
 
Posts: n/a
#8: Nov 15 '05

re: MQ memory leak


Thanks, I'll see if I can reproduce this.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
..

"José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
news:uzRWa4qsDHA.2400@tk2msftngp13.phx.gbl...[color=blue]
> As far as I see it, it append "only" when the remote is not available
>
> José
> "Doron Juster [MSFT]" <DoronJ@Online.Microsoft.com> wrote in message
> news:empA6GqsDHA.1788@tk2msftngp13.phx.gbl...[color=green]
> > Are you receiving from a remote computer ?
> > If yes, does the leak happen when remote is not available ?
> >
> > Thanks, Doron
> > --
> > This posting is provided "AS IS" with no warranties, and confers no[/color]
> rights.[color=green]
> > .
> >
> > "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> > news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...[color=darkred]
> > > Hi,
> > >
> > > I have implemented a Service that is responsible for getting messages[/color][/color]
> from[color=green]
> > a[color=darkred]
> > > MS MQ located on a remote machine. I'm getting memory leak from time[/color][/color][/color]
to[color=blue][color=green]
> > time[color=darkred]
> > > (???). In some situation, it is easier to reproduce (e.g.: remote[/color][/color]
> machine[color=green][color=darkred]
> > > not available). After about 1 day, I get a usage of 300MB of memory.
> > > I have used .NET Memory Profiler tool to try to see where the leak is
> > > located. For all the leaky instances, I can see the following (I[/color][/color][/color]
should[color=blue][color=green]
> > say[color=darkred]
> > > that is not too clear what it is trying to show...):
> > >
> > > Message..ctor(MessagePropertyFilter)
> > > MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR,[/color][/color]
> MessagePropertyFilter,[color=green][color=darkred]
> > > .....)
> > > MessageQueue.Receive(TimeSpan)
> > > MQEvlReceiver.Receive(int) <--------My appl.
> > > MQReception.DoWork() <--------My appl.
> > >
> > > I have check and re-check my code, I cannot see any problem with it.
> > >
> > > Does anyone knows about a leak with MQ in a similar case?
> > >
> > > Here is my config:
> > > W2K sp3 english
> > > .NET 1.1
> > >
> > > Thanks,
> > > José
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


José Joye
Guest
 
Posts: n/a
#9: Nov 15 '05

re: MQ memory leak


Any news?

By the way, I have posted a detail about what I do just above in the same
thread.

José
"Doron Juster [MSFT]" <DoronJ@Online.Microsoft.com> wrote in message
news:uGGL8l2sDHA.2088@TK2MSFTNGP09.phx.gbl...[color=blue]
> Thanks, I'll see if I can reproduce this.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no[/color]
rights.[color=blue]
> .
>
> "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> news:uzRWa4qsDHA.2400@tk2msftngp13.phx.gbl...[color=green]
> > As far as I see it, it append "only" when the remote is not available
> >
> > José
> > "Doron Juster [MSFT]" <DoronJ@Online.Microsoft.com> wrote in message
> > news:empA6GqsDHA.1788@tk2msftngp13.phx.gbl...[color=darkred]
> > > Are you receiving from a remote computer ?
> > > If yes, does the leak happen when remote is not available ?
> > >
> > > Thanks, Doron
> > > --
> > > This posting is provided "AS IS" with no warranties, and confers no[/color]
> > rights.[color=darkred]
> > > .
> > >
> > > "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> > > news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...
> > > > Hi,
> > > >
> > > > I have implemented a Service that is responsible for getting[/color][/color][/color]
messages[color=blue][color=green]
> > from[color=darkred]
> > > a
> > > > MS MQ located on a remote machine. I'm getting memory leak from time[/color][/color]
> to[color=green][color=darkred]
> > > time
> > > > (???). In some situation, it is easier to reproduce (e.g.: remote[/color]
> > machine[color=darkred]
> > > > not available). After about 1 day, I get a usage of 300MB of memory.
> > > > I have used .NET Memory Profiler tool to try to see where the leak[/color][/color][/color]
is[color=blue][color=green][color=darkred]
> > > > located. For all the leaky instances, I can see the following (I[/color][/color]
> should[color=green][color=darkred]
> > > say
> > > > that is not too clear what it is trying to show...):
> > > >
> > > > Message..ctor(MessagePropertyFilter)
> > > > MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR,[/color]
> > MessagePropertyFilter,[color=darkred]
> > > > .....)
> > > > MessageQueue.Receive(TimeSpan)
> > > > MQEvlReceiver.Receive(int) <--------My appl.
> > > > MQReception.DoWork() <--------My appl.
> > > >
> > > > I have check and re-check my code, I cannot see any problem with it.
> > > >
> > > > Does anyone knows about a leak with MQ in a similar case?
> > > >
> > > > Here is my config:
> > > > W2K sp3 english
> > > > .NET 1.1
> > > >
> > > > Thanks,
> > > > José
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Doron Juster [MSFT]
Guest
 
Posts: n/a
#10: Nov 15 '05

re: MQ memory leak


Not yet, sorry.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
..

"José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
news:uz0kPUCtDHA.2308@TK2MSFTNGP11.phx.gbl...[color=blue]
> Any news?
>
> By the way, I have posted a detail about what I do just above in the same
> thread.
>
> José
> "Doron Juster [MSFT]" <DoronJ@Online.Microsoft.com> wrote in message
> news:uGGL8l2sDHA.2088@TK2MSFTNGP09.phx.gbl...[color=green]
> > Thanks, I'll see if I can reproduce this.
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no[/color]
> rights.[color=green]
> > .
> >
> > "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> > news:uzRWa4qsDHA.2400@tk2msftngp13.phx.gbl...[color=darkred]
> > > As far as I see it, it append "only" when the remote is not available
> > >
> > > José
> > > "Doron Juster [MSFT]" <DoronJ@Online.Microsoft.com> wrote in message
> > > news:empA6GqsDHA.1788@tk2msftngp13.phx.gbl...
> > > > Are you receiving from a remote computer ?
> > > > If yes, does the leak happen when remote is not available ?
> > > >
> > > > Thanks, Doron
> > > > --
> > > > This posting is provided "AS IS" with no warranties, and confers no
> > > rights.
> > > > .
> > > >
> > > > "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> > > > news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...
> > > > > Hi,
> > > > >
> > > > > I have implemented a Service that is responsible for getting[/color][/color]
> messages[color=green][color=darkred]
> > > from
> > > > a
> > > > > MS MQ located on a remote machine. I'm getting memory leak from[/color][/color][/color]
time[color=blue][color=green]
> > to[color=darkred]
> > > > time
> > > > > (???). In some situation, it is easier to reproduce (e.g.: remote
> > > machine
> > > > > not available). After about 1 day, I get a usage of 300MB of[/color][/color][/color]
memory.[color=blue][color=green][color=darkred]
> > > > > I have used .NET Memory Profiler tool to try to see where the leak[/color][/color]
> is[color=green][color=darkred]
> > > > > located. For all the leaky instances, I can see the following (I[/color]
> > should[color=darkred]
> > > > say
> > > > > that is not too clear what it is trying to show...):
> > > > >
> > > > > Message..ctor(MessagePropertyFilter)
> > > > > MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR,
> > > MessagePropertyFilter,
> > > > > .....)
> > > > > MessageQueue.Receive(TimeSpan)
> > > > > MQEvlReceiver.Receive(int) <--------My appl.
> > > > > MQReception.DoWork() <--------My appl.
> > > > >
> > > > > I have check and re-check my code, I cannot see any problem with[/color][/color][/color]
it.[color=blue][color=green][color=darkred]
> > > > >
> > > > > Does anyone knows about a leak with MQ in a similar case?
> > > > >
> > > > > Here is my config:
> > > > > W2K sp3 english
> > > > > .NET 1.1
> > > > >
> > > > > Thanks,
> > > > > José
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


jeff
Guest
 
Posts: n/a
#11: Nov 15 '05

re: MQ memory leak


Hi, it is very similar to the case what we have run to. One question, does
your Service open database connection and access database? It seems not
related to the memory leak, but we found it is.

-jeff



"José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...[color=blue]
> Hi,
>
> I have implemented a Service that is responsible for getting messages from[/color]
a[color=blue]
> MS MQ located on a remote machine. I'm getting memory leak from time to[/color]
time[color=blue]
> (???). In some situation, it is easier to reproduce (e.g.: remote machine
> not available). After about 1 day, I get a usage of 300MB of memory.
> I have used .NET Memory Profiler tool to try to see where the leak is
> located. For all the leaky instances, I can see the following (I should[/color]
say[color=blue]
> that is not too clear what it is trying to show...):
>
> Message..ctor(MessagePropertyFilter)
> MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR, MessagePropertyFilter,
> .....)
> MessageQueue.Receive(TimeSpan)
> MQEvlReceiver.Receive(int) <--------My appl.
> MQReception.DoWork() <--------My appl.
>
> I have check and re-check my code, I cannot see any problem with it.
>
> Does anyone knows about a leak with MQ in a similar case?
>
> Here is my config:
> W2K sp3 english
> .NET 1.1
>
> Thanks,
> José
>
>[/color]


José Joye
Guest
 
Posts: n/a
#12: Nov 15 '05

re: MQ memory leak


Hi,

No, I do not access any dB from that Service.¨

Anyway, thanks!

José
"jeff" <afjlee@hotmail.com> wrote in message
news:e5uU%23BsuDHA.2448@TK2MSFTNGP09.phx.gbl...[color=blue]
> Hi, it is very similar to the case what we have run to. One question, does
> your Service open database connection and access database? It seems not
> related to the memory leak, but we found it is.
>
> -jeff
>
>
>
> "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...[color=green]
> > Hi,
> >
> > I have implemented a Service that is responsible for getting messages[/color][/color]
from[color=blue]
> a[color=green]
> > MS MQ located on a remote machine. I'm getting memory leak from time to[/color]
> time[color=green]
> > (???). In some situation, it is easier to reproduce (e.g.: remote[/color][/color]
machine[color=blue][color=green]
> > not available). After about 1 day, I get a usage of 300MB of memory.
> > I have used .NET Memory Profiler tool to try to see where the leak is
> > located. For all the leaky instances, I can see the following (I should[/color]
> say[color=green]
> > that is not too clear what it is trying to show...):
> >
> > Message..ctor(MessagePropertyFilter)
> > MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR,[/color][/color]
MessagePropertyFilter,[color=blue][color=green]
> > .....)
> > MessageQueue.Receive(TimeSpan)
> > MQEvlReceiver.Receive(int) <--------My appl.
> > MQReception.DoWork() <--------My appl.
> >
> > I have check and re-check my code, I cannot see any problem with it.
> >
> > Does anyone knows about a leak with MQ in a similar case?
> >
> > Here is my config:
> > W2K sp3 english
> > .NET 1.1
> >
> > Thanks,
> > José
> >
> >[/color]
>
>[/color]


jeff
Guest
 
Posts: n/a
#13: Nov 15 '05

re: MQ memory leak


Hi, Please check out this artile:
http://groups.google.com/groups?hl=e...readm=cax673%2
4fCHA.1524%40cpmsftngxa08&rnum=8&prev=/groups%3Fq%3Dopen%2Bconnection%2Bmsmq
%2Bmessage%2Bmemory%26ie%3DUTF-8%26oe%3DUTF-8%26hl%3Den

We had exactly the same situation the article says. And we found a work
around is if you open DB connection in another thread, there will not be
memory leak.

Hope this is a clue. Good luck!

-jeff

"José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
news:#W12xFzuDHA.2432@TK2MSFTNGP10.phx.gbl...[color=blue]
> Hi,
>
> No, I do not access any dB from that Service.¨
>
> Anyway, thanks!
>
> José
> "jeff" <afjlee@hotmail.com> wrote in message
> news:e5uU%23BsuDHA.2448@TK2MSFTNGP09.phx.gbl...[color=green]
> > Hi, it is very similar to the case what we have run to. One question,[/color][/color]
does[color=blue][color=green]
> > your Service open database connection and access database? It seems not
> > related to the memory leak, but we found it is.
> >
> > -jeff
> >
> >
> >
> > "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> > news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...[color=darkred]
> > > Hi,
> > >
> > > I have implemented a Service that is responsible for getting messages[/color][/color]
> from[color=green]
> > a[color=darkred]
> > > MS MQ located on a remote machine. I'm getting memory leak from time[/color][/color][/color]
to[color=blue][color=green]
> > time[color=darkred]
> > > (???). In some situation, it is easier to reproduce (e.g.: remote[/color][/color]
> machine[color=green][color=darkred]
> > > not available). After about 1 day, I get a usage of 300MB of memory.
> > > I have used .NET Memory Profiler tool to try to see where the leak is
> > > located. For all the leaky instances, I can see the following (I[/color][/color][/color]
should[color=blue][color=green]
> > say[color=darkred]
> > > that is not too clear what it is trying to show...):
> > >
> > > Message..ctor(MessagePropertyFilter)
> > > MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR,[/color][/color]
> MessagePropertyFilter,[color=green][color=darkred]
> > > .....)
> > > MessageQueue.Receive(TimeSpan)
> > > MQEvlReceiver.Receive(int) <--------My appl.
> > > MQReception.DoWork() <--------My appl.
> > >
> > > I have check and re-check my code, I cannot see any problem with it.
> > >
> > > Does anyone knows about a leak with MQ in a similar case?
> > >
> > > Here is my config:
> > > W2K sp3 english
> > > .NET 1.1
> > >
> > > Thanks,
> > > José
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


José Joye
Guest
 
Posts: n/a
#14: Nov 15 '05

re: MQ memory leak


Thanks,

However, the problem I face occurs only when the machine where the queue is
not located is not reachable.
Otherwise, I do not see any leak.
In my context, the queue is located on the machine writter and the reader
needs to remotly access it.

The machine where the reader is located is a production server where no dB
is installed.

José

"jeff" <afjlee@hotmail.com> wrote in message
news:OfU9PP0uDHA.2352@TK2MSFTNGP09.phx.gbl...[color=blue]
> Hi, Please check out this artile:
>[/color]
http://groups.google.com/groups?hl=e...readm=cax673%2[color=blue]
>[/color]
4fCHA.1524%40cpmsftngxa08&rnum=8&prev=/groups%3Fq%3Dopen%2Bconnection%2Bmsmq[color=blue]
> %2Bmessage%2Bmemory%26ie%3DUTF-8%26oe%3DUTF-8%26hl%3Den
>
> We had exactly the same situation the article says. And we found a work
> around is if you open DB connection in another thread, there will not be
> memory leak.
>
> Hope this is a clue. Good luck!
>
> -jeff
>
> "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> news:#W12xFzuDHA.2432@TK2MSFTNGP10.phx.gbl...[color=green]
> > Hi,
> >
> > No, I do not access any dB from that Service.¨
> >
> > Anyway, thanks!
> >
> > José
> > "jeff" <afjlee@hotmail.com> wrote in message
> > news:e5uU%23BsuDHA.2448@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > > Hi, it is very similar to the case what we have run to. One question,[/color][/color]
> does[color=green][color=darkred]
> > > your Service open database connection and access database? It seems[/color][/color][/color]
not[color=blue][color=green][color=darkred]
> > > related to the memory leak, but we found it is.
> > >
> > > -jeff
> > >
> > >
> > >
> > > "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> > > news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...
> > > > Hi,
> > > >
> > > > I have implemented a Service that is responsible for getting[/color][/color][/color]
messages[color=blue][color=green]
> > from[color=darkred]
> > > a
> > > > MS MQ located on a remote machine. I'm getting memory leak from time[/color][/color]
> to[color=green][color=darkred]
> > > time
> > > > (???). In some situation, it is easier to reproduce (e.g.: remote[/color]
> > machine[color=darkred]
> > > > not available). After about 1 day, I get a usage of 300MB of memory.
> > > > I have used .NET Memory Profiler tool to try to see where the leak[/color][/color][/color]
is[color=blue][color=green][color=darkred]
> > > > located. For all the leaky instances, I can see the following (I[/color][/color]
> should[color=green][color=darkred]
> > > say
> > > > that is not too clear what it is trying to show...):
> > > >
> > > > Message..ctor(MessagePropertyFilter)
> > > > MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR,[/color]
> > MessagePropertyFilter,[color=darkred]
> > > > .....)
> > > > MessageQueue.Receive(TimeSpan)
> > > > MQEvlReceiver.Receive(int) <--------My appl.
> > > > MQReception.DoWork() <--------My appl.
> > > >
> > > > I have check and re-check my code, I cannot see any problem with it.
> > > >
> > > > Does anyone knows about a leak with MQ in a similar case?
> > > >
> > > > Here is my config:
> > > > W2K sp3 english
> > > > .NET 1.1
> > > >
> > > > Thanks,
> > > > José
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


jeff
Guest
 
Posts: n/a
#15: Nov 15 '05

re: MQ memory leak


Hi, Jose,

Since we were investigating our MSMQ memory leak problem these days. We have
a simple test program to repeat our problem. I modified the test program to
simulate your situation, and we also use Memory Profiler to monitor the
memory.

Test program runs on one machine, and the public queue is on another
machine. At beginning, Test program can send and read messages just fine. No
memory leak as you said. Then I unpluged the network cable of the test
program machine, make the public queue mahcine unreachable, and the Test
program got "Error occurs when reading from a queue on a remote computer"
error. But still, I didn't see any memory leak, and GC worked just fine.
So, if you have a small test program which can repeat your problem, that
could be little easier to figure it out.

good luck,

-jeff

"José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
news:eTYPrV0uDHA.424@TK2MSFTNGP11.phx.gbl...[color=blue]
> Thanks,
>
> However, the problem I face occurs only when the machine where the queue[/color]
is[color=blue]
> not located is not reachable.
> Otherwise, I do not see any leak.
> In my context, the queue is located on the machine writter and the reader
> needs to remotly access it.
>
> The machine where the reader is located is a production server where no dB
> is installed.
>
> José
>
> "jeff" <afjlee@hotmail.com> wrote in message
> news:OfU9PP0uDHA.2352@TK2MSFTNGP09.phx.gbl...[color=green]
> > Hi, Please check out this artile:
> >[/color]
>[/color]
http://groups.google.com/groups?hl=e...readm=cax673%2[color=blue][color=green]
> >[/color]
>[/color]
4fCHA.1524%40cpmsftngxa08&rnum=8&prev=/groups%3Fq%3Dopen%2Bconnection%2Bmsmq[color=blue][color=green]
> > %2Bmessage%2Bmemory%26ie%3DUTF-8%26oe%3DUTF-8%26hl%3Den
> >
> > We had exactly the same situation the article says. And we found a work
> > around is if you open DB connection in another thread, there will not be
> > memory leak.
> >
> > Hope this is a clue. Good luck!
> >
> > -jeff
> >
> > "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> > news:#W12xFzuDHA.2432@TK2MSFTNGP10.phx.gbl...[color=darkred]
> > > Hi,
> > >
> > > No, I do not access any dB from that Service.¨
> > >
> > > Anyway, thanks!
> > >
> > > José
> > > "jeff" <afjlee@hotmail.com> wrote in message
> > > news:e5uU%23BsuDHA.2448@TK2MSFTNGP09.phx.gbl...
> > > > Hi, it is very similar to the case what we have run to. One[/color][/color][/color]
question,[color=blue][color=green]
> > does[color=darkred]
> > > > your Service open database connection and access database? It seems[/color][/color]
> not[color=green][color=darkred]
> > > > related to the memory leak, but we found it is.
> > > >
> > > > -jeff
> > > >
> > > >
> > > >
> > > > "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> > > > news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...
> > > > > Hi,
> > > > >
> > > > > I have implemented a Service that is responsible for getting[/color][/color]
> messages[color=green][color=darkred]
> > > from
> > > > a
> > > > > MS MQ located on a remote machine. I'm getting memory leak from[/color][/color][/color]
time[color=blue][color=green]
> > to[color=darkred]
> > > > time
> > > > > (???). In some situation, it is easier to reproduce (e.g.: remote
> > > machine
> > > > > not available). After about 1 day, I get a usage of 300MB of[/color][/color][/color]
memory.[color=blue][color=green][color=darkred]
> > > > > I have used .NET Memory Profiler tool to try to see where the leak[/color][/color]
> is[color=green][color=darkred]
> > > > > located. For all the leaky instances, I can see the following (I[/color]
> > should[color=darkred]
> > > > say
> > > > > that is not too clear what it is trying to show...):
> > > > >
> > > > > Message..ctor(MessagePropertyFilter)
> > > > > MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR,
> > > MessagePropertyFilter,
> > > > > .....)
> > > > > MessageQueue.Receive(TimeSpan)
> > > > > MQEvlReceiver.Receive(int) <--------My appl.
> > > > > MQReception.DoWork() <--------My appl.
> > > > >
> > > > > I have check and re-check my code, I cannot see any problem with[/color][/color][/color]
it.[color=blue][color=green][color=darkred]
> > > > >
> > > > > Does anyone knows about a leak with MQ in a similar case?
> > > > >
> > > > > Here is my config:
> > > > > W2K sp3 english
> > > > > .NET 1.1
> > > > >
> > > > > Thanks,
> > > > > José
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


José Joye
Guest
 
Posts: n/a
#16: Nov 15 '05

re: MQ memory leak


Hello again,

I think you are right, I have to make a small program to prove what I said.
The only problem is that I'm currently under stress regarding the project. I
will do it at a later stage.

José
"jeff" <afjlee@hotmail.com> wrote in message
news:OfIKe70uDHA.2360@TK2MSFTNGP10.phx.gbl...[color=blue]
> Hi, Jose,
>
> Since we were investigating our MSMQ memory leak problem these days. We[/color]
have[color=blue]
> a simple test program to repeat our problem. I modified the test program[/color]
to[color=blue]
> simulate your situation, and we also use Memory Profiler to monitor the
> memory.
>
> Test program runs on one machine, and the public queue is on another
> machine. At beginning, Test program can send and read messages just fine.[/color]
No[color=blue]
> memory leak as you said. Then I unpluged the network cable of the test
> program machine, make the public queue mahcine unreachable, and the Test
> program got "Error occurs when reading from a queue on a remote computer"
> error. But still, I didn't see any memory leak, and GC worked just[/color]
fine.[color=blue]
> So, if you have a small test program which can repeat your problem, that
> could be little easier to figure it out.
>
> good luck,
>
> -jeff
>
> "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> news:eTYPrV0uDHA.424@TK2MSFTNGP11.phx.gbl...[color=green]
> > Thanks,
> >
> > However, the problem I face occurs only when the machine where the queue[/color]
> is[color=green]
> > not located is not reachable.
> > Otherwise, I do not see any leak.
> > In my context, the queue is located on the machine writter and the[/color][/color]
reader[color=blue][color=green]
> > needs to remotly access it.
> >
> > The machine where the reader is located is a production server where no[/color][/color]
dB[color=blue][color=green]
> > is installed.
> >
> > José
> >
> > "jeff" <afjlee@hotmail.com> wrote in message
> > news:OfU9PP0uDHA.2352@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > > Hi, Please check out this artile:
> > >[/color]
> >[/color]
>[/color]
http://groups.google.com/groups?hl=e...readm=cax673%2[color=blue][color=green][color=darkred]
> > >[/color]
> >[/color]
>[/color]
4fCHA.1524%40cpmsftngxa08&rnum=8&prev=/groups%3Fq%3Dopen%2Bconnection%2Bmsmq[color=blue][color=green][color=darkred]
> > > %2Bmessage%2Bmemory%26ie%3DUTF-8%26oe%3DUTF-8%26hl%3Den
> > >
> > > We had exactly the same situation the article says. And we found a[/color][/color][/color]
work[color=blue][color=green][color=darkred]
> > > around is if you open DB connection in another thread, there will not[/color][/color][/color]
be[color=blue][color=green][color=darkred]
> > > memory leak.
> > >
> > > Hope this is a clue. Good luck!
> > >
> > > -jeff
> > >
> > > "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> > > news:#W12xFzuDHA.2432@TK2MSFTNGP10.phx.gbl...
> > > > Hi,
> > > >
> > > > No, I do not access any dB from that Service.¨
> > > >
> > > > Anyway, thanks!
> > > >
> > > > José
> > > > "jeff" <afjlee@hotmail.com> wrote in message
> > > > news:e5uU%23BsuDHA.2448@TK2MSFTNGP09.phx.gbl...
> > > > > Hi, it is very similar to the case what we have run to. One[/color][/color]
> question,[color=green][color=darkred]
> > > does
> > > > > your Service open database connection and access database? It[/color][/color][/color]
seems[color=blue][color=green]
> > not[color=darkred]
> > > > > related to the memory leak, but we found it is.
> > > > >
> > > > > -jeff
> > > > >
> > > > >
> > > > >
> > > > > "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> > > > > news:e7Zevs5rDHA.1764@TK2MSFTNGP10.phx.gbl...
> > > > > > Hi,
> > > > > >
> > > > > > I have implemented a Service that is responsible for getting[/color]
> > messages[color=darkred]
> > > > from
> > > > > a
> > > > > > MS MQ located on a remote machine. I'm getting memory leak from[/color][/color]
> time[color=green][color=darkred]
> > > to
> > > > > time
> > > > > > (???). In some situation, it is easier to reproduce (e.g.:[/color][/color][/color]
remote[color=blue][color=green][color=darkred]
> > > > machine
> > > > > > not available). After about 1 day, I get a usage of 300MB of[/color][/color]
> memory.[color=green][color=darkred]
> > > > > > I have used .NET Memory Profiler tool to try to see where the[/color][/color][/color]
leak[color=blue][color=green]
> > is[color=darkred]
> > > > > > located. For all the leaky instances, I can see the following (I
> > > should
> > > > > say
> > > > > > that is not too clear what it is trying to show...):
> > > > > >
> > > > > > Message..ctor(MessagePropertyFilter)
> > > > > > MessageQueue.ReceiveCurrent(TimeSpan, int, IntPTR,
> > > > MessagePropertyFilter,
> > > > > > .....)
> > > > > > MessageQueue.Receive(TimeSpan)
> > > > > > MQEvlReceiver.Receive(int) <--------My appl.
> > > > > > MQReception.DoWork() <--------My appl.
> > > > > >
> > > > > > I have check and re-check my code, I cannot see any problem with[/color][/color]
> it.[color=green][color=darkred]
> > > > > >
> > > > > > Does anyone knows about a leak with MQ in a similar case?
> > > > > >
> > > > > > Here is my config:
> > > > > > W2K sp3 english
> > > > > > .NET 1.1
> > > > > >
> > > > > > Thanks,
> > > > > > José
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


jeff
Guest
 
Posts: n/a
#17: Nov 15 '05

re: MQ memory leak


Please also check out this post, it may relate to your problem.
http://groups.google.com/groups?hl=e...ition=us&threa
dm=ef9gTVwLDHA.1720%40TK2MSFTNGP11.phx.gbl&rnum=1& prev=/groups%3Fq%3Ddb%2Bco
nnection%2Bqueue%2Bmessage%2Bmemory%26hl%3Den%26lr %3D%26ie%3DUTF-8%26oe%3DUT
F-8%26edition%3Dus%26selm%3Def9gTVwLDHA.1720%2540TK2 MSFTNGP11.phx.gbl%26rnum
%3D1


good luck,

-jeff

"José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
news:ungCU6VvDHA.2448@TK2MSFTNGP09.phx.gbl...[color=blue]
> Hello again,
>
> I think you are right, I have to make a small program to prove what I[/color]
said.[color=blue]
> The only problem is that I'm currently under stress regarding the project.[/color]
I[color=blue]
> will do it at a later stage.
>
> José
> "jeff" <afjlee@hotmail.com> wrote in message
> news:OfIKe70uDHA.2360@TK2MSFTNGP10.phx.gbl...[color=green]
> > Hi, Jose,
> >
> > Since we were investigating our MSMQ memory leak problem these days. We[/color]
> have[color=green]
> > a simple test program to repeat our problem. I modified the test program[/color]
> to[color=green]
> > simulate your situation, and we also use Memory Profiler to monitor the
> > memory.
> >
> > Test program runs on one machine, and the public queue is on another
> > machine. At beginning, Test program can send and read messages just[/color][/color]
fine.[color=blue]
> No[color=green]
> > memory leak as you said. Then I unpluged the network cable of the test
> > program machine, make the public queue mahcine unreachable, and the Test
> > program got "Error occurs when reading from a queue on a remote[/color][/color]
computer"[color=blue][color=green]
> > error. But still, I didn't see any memory leak, and GC worked just[/color]
> fine.[color=green]
> > So, if you have a small test program which can repeat your problem, that
> > could be little easier to figure it out.
> >
> > good luck,
> >
> > -jeff
> >
> > "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> > news:eTYPrV0uDHA.424@TK2MSFTNGP11.phx.gbl...[color=darkred]
> > > Thanks,
> > >
> > > However, the problem I face occurs only when the machine where the[/color][/color][/color]
queue[color=blue][color=green]
> > is[color=darkred]
> > > not located is not reachable.
> > > Otherwise, I do not see any leak.
> > > In my context, the queue is located on the machine writter and the[/color][/color]
> reader[color=green][color=darkred]
> > > needs to remotly access it.
> > >
> > > The machine where the reader is located is a production server where[/color][/color][/color]
no[color=blue]
> dB[color=green][color=darkred]
> > > is installed.
> > >
> > > José
> > >
> > > "jeff" <afjlee@hotmail.com> wrote in message
> > > news:OfU9PP0uDHA.2352@TK2MSFTNGP09.phx.gbl...
> > > > Hi, Please check out this artile:
> > > >
> > >[/color][/color][/color]



José Joye
Guest
 
Posts: n/a
#18: Nov 15 '05

re: MQ memory leak


Thanks,

I will try this

José
"jeff" <afjlee@hotmail.com> wrote in message
news:%23NqhdTbvDHA.2540@TK2MSFTNGP10.phx.gbl...[color=blue]
> Please also check out this post, it may relate to your problem.
>[/color]
http://groups.google.com/groups?hl=e...ition=us&threa[color=blue]
>[/color]
dm=ef9gTVwLDHA.1720%40TK2MSFTNGP11.phx.gbl&rnum=1& prev=/groups%3Fq%3Ddb%2Bco[color=blue]
>[/color]
nnection%2Bqueue%2Bmessage%2Bmemory%26hl%3Den%26lr %3D%26ie%3DUTF-8%26oe%3DUT[color=blue]
>[/color]
F-8%26edition%3Dus%26selm%3Def9gTVwLDHA.1720%2540TK2 MSFTNGP11.phx.gbl%26rnum[color=blue]
> %3D1
>
>
> good luck,
>
> -jeff
>
> "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> news:ungCU6VvDHA.2448@TK2MSFTNGP09.phx.gbl...[color=green]
> > Hello again,
> >
> > I think you are right, I have to make a small program to prove what I[/color]
> said.[color=green]
> > The only problem is that I'm currently under stress regarding the[/color][/color]
project.[color=blue]
> I[color=green]
> > will do it at a later stage.
> >
> > José
> > "jeff" <afjlee@hotmail.com> wrote in message
> > news:OfIKe70uDHA.2360@TK2MSFTNGP10.phx.gbl...[color=darkred]
> > > Hi, Jose,
> > >
> > > Since we were investigating our MSMQ memory leak problem these days.[/color][/color][/color]
We[color=blue][color=green]
> > have[color=darkred]
> > > a simple test program to repeat our problem. I modified the test[/color][/color][/color]
program[color=blue][color=green]
> > to[color=darkred]
> > > simulate your situation, and we also use Memory Profiler to monitor[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > memory.
> > >
> > > Test program runs on one machine, and the public queue is on another
> > > machine. At beginning, Test program can send and read messages just[/color][/color]
> fine.[color=green]
> > No[color=darkred]
> > > memory leak as you said. Then I unpluged the network cable of the test
> > > program machine, make the public queue mahcine unreachable, and the[/color][/color][/color]
Test[color=blue][color=green][color=darkred]
> > > program got "Error occurs when reading from a queue on a remote[/color][/color]
> computer"[color=green][color=darkred]
> > > error. But still, I didn't see any memory leak, and GC worked just[/color]
> > fine.[color=darkred]
> > > So, if you have a small test program which can repeat your problem,[/color][/color][/color]
that[color=blue][color=green][color=darkred]
> > > could be little easier to figure it out.
> > >
> > > good luck,
> > >
> > > -jeff
> > >
> > > "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> > > news:eTYPrV0uDHA.424@TK2MSFTNGP11.phx.gbl...
> > > > Thanks,
> > > >
> > > > However, the problem I face occurs only when the machine where the[/color][/color]
> queue[color=green][color=darkred]
> > > is
> > > > not located is not reachable.
> > > > Otherwise, I do not see any leak.
> > > > In my context, the queue is located on the machine writter and the[/color]
> > reader[color=darkred]
> > > > needs to remotly access it.
> > > >
> > > > The machine where the reader is located is a production server where[/color][/color]
> no[color=green]
> > dB[color=darkred]
> > > > is installed.
> > > >
> > > > José
> > > >
> > > > "jeff" <afjlee@hotmail.com> wrote in message
> > > > news:OfU9PP0uDHA.2352@TK2MSFTNGP09.phx.gbl...
> > > > > Hi, Please check out this artile:
> > > > >
> > > >[/color][/color]
>
>
>[/color]


Closed Thread


Similar C# / C Sharp bytes