|
Home > Archive > BizTalk Server Orchestration > March 2005 > Memory leak inside Loop shape!
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Memory leak inside Loop shape!
|
|
|
| I have an orchestration that processes some items in a loop.
When i start testing it, i found that on ~700000 iteration BizTalk service
shuts down because of 'Out of memory Exception'. I thought that problem in my
code that running in this loop, but after some investigation i can't find any
possible memory leaks in it.
So i made infinite loop with simple expression shape in it that contains
just nothing: "Var1=Var1;". And what did i see - memory leak appears again.
Any one knows why it's happens and how solve this problem?
P.S. I look inside the BizTalk process using Memory Profiler, and found
where possible can be memory leak. While my infinite loop runs there was
stable increase of undisposed instances of System.IO.BinaryWriter.
| |
| Jon Flanders[DevelopMentor] 2005-03-19, 5:48 pm |
| Can you attach a copy of a simple orchestration that causes this to happen?
And are you running .NET 2.0 (any beta version) on this same machine by any
chance?
--
Jon Flanders [DevelopMentor]
http://staff.develop.com/jfland/
http://www.develop.com/courses/biztalk
"Yar" <Yar@discussions.microsoft.com> wrote in message
news:E25832D7-DE87-4C42-9FA2-38C0F7F500A7@microsoft.com...
>I have an orchestration that processes some items in a loop.
> When i start testing it, i found that on ~700000 iteration BizTalk service
> shuts down because of 'Out of memory Exception'. I thought that problem in
> my
> code that running in this loop, but after some investigation i can't find
> any
> possible memory leaks in it.
> So i made infinite loop with simple expression shape in it that contains
> just nothing: "Var1=Var1;". And what did i see - memory leak appears
> again.
>
> Any one knows why it's happens and how solve this problem?
>
> P.S. I look inside the BizTalk process using Memory Profiler, and found
> where possible can be memory leak. While my infinite loop runs there was
> stable increase of undisposed instances of System.IO.BinaryWriter.
>
| |
|
| No, there is no .NET 2.0 on my machines.
Simple orchestration causes this memory loss sent to you by e-mail.
"Jon Flanders[DevelopMentor]" wrote:
> Can you attach a copy of a simple orchestration that causes this to happen?
>
> And are you running .NET 2.0 (any beta version) on this same machine by any
> chance?
>
> --
> Jon Flanders [DevelopMentor]
> http://staff.develop.com/jfland/
> http://www.develop.com/courses/biztalk
> "Yar" <Yar@discussions.microsoft.com> wrote in message
> news:E25832D7-DE87-4C42-9FA2-38C0F7F500A7@microsoft.com...
>
>
>
| |
| Tolga Yildirim [MSFT] 2005-03-23, 6:01 pm |
| Can you turn off HAT tracking and try again? The issue might be, by default
all start and end points of the shapes are tracked. Since your loop
iterates 700,000 times, and if you have at least 1 shape in it, there will
be 4 points that the data is tracked (1 start/end for loop, 1 start/end for
the shape). BizTalk keeps this information in a virtual stream. A virtual
stream uses memory up to a point and then begins writing the data on disk.
That can very welll be the reason why you're seeing System.IO.BinaryWriter
objects around.
Regards,
Tolga Yildirim
Microsoft BizTalk Server
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------[vbcol=seagreen]
<OxjkbiKLFHA.904@tk2msftngp13.phx.gbl>[vbcol=seagreen]
happen?[vbcol=seagreen]
any[vbcol=seagreen]
service[vbcol=seagreen]
problem in[vbcol=seagreen]
find[vbcol=seagreen]
contains[vbcol=seagreen]
found[vbcol=seagreen]
was[vbcol=seagreen]
| |
|
| Turn off HAT... You mean unchecking "Service Start and Stop events" in Health
and Activitiy Tracking -> Configuration -> Orchestrations?
"Tolga Yildirim [MSFT]" wrote:
> Can you turn off HAT tracking and try again? The issue might be, by default
> all start and end points of the shapes are tracked. Since your loop
> iterates 700,000 times, and if you have at least 1 shape in it, there will
> be 4 points that the data is tracked (1 start/end for loop, 1 start/end for
> the shape). BizTalk keeps this information in a virtual stream. A virtual
> stream uses memory up to a point and then begins writing the data on disk.
> That can very welll be the reason why you're seeing System.IO.BinaryWriter
> objects around.
>
> Regards,
> Tolga Yildirim
> Microsoft BizTalk Server
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> --------------------
> <OxjkbiKLFHA.904@tk2msftngp13.phx.gbl>
> happen?
> any
> service
> problem in
> find
> contains
> found
> was
>
>
| |
| Tolga Yildirim [MSFT] 2005-03-28, 6:12 pm |
| Yes, I meant that. You can only uncheck "Shape Start and End" option since
actually that is the one which tracks information about all the shapes.
Regards,
Tolga Yildirim
Microsoft BizTalk Server
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------[vbcol=seagreen]
<OxjkbiKLFHA.904@tk2msftngp13.phx.gbl>
<81E4C58E-861B-47D7-941C-C6F44AA8F7D0@microsoft.com>
<vfcd9m$LFHA.1016@TK2MSFTNGXA03.phx.gbl>[vbcol=seagreen]
Health[vbcol=seagreen]
default[vbcol=seagreen]
will[vbcol=seagreen]
for[vbcol=seagreen]
virtual[vbcol=seagreen]
disk.[vbcol=seagreen]
System.IO.BinaryWriter[vbcol=seagreen]
rights.[vbcol=seagreen]
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl[vbcol=seagreen]
microsoft.public.biztalk.orchestration:10706[vbcol=seagreen]
machine by[vbcol=seagreen]
BizTalk[vbcol=seagreen]
can't[vbcol=seagreen]
appears[vbcol=seagreen]
there[vbcol=seagreen]
|
|
|
|
|