Memory leak inside Loop shape!
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Memory leak inside Loop shape!




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Memory leak inside Loop shape!  
Yar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-19-05 12:46 PM

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 m
y
code that running in this loop, but after some investigation i can't find an
y
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.






[ Post a follow-up to this message ]



    Re: Memory leak inside Loop shape!  
Jon Flanders[DevelopMentor]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-19-05 10: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.
>







[ Post a follow-up to this message ]



    Re: Memory leak inside Loop shape!  
Yar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-05 12:47 PM

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 an
y
> 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... 
>
>
>





[ Post a follow-up to this message ]



    Re: Memory leak inside Loop shape!  
Tolga Yildirim [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-23-05 11: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] 






[ Post a follow-up to this message ]



    Re: Memory leak inside Loop shape!  
Yar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-24-05 12:47 PM

Turn off HAT... You mean unchecking "Service Start and Stop events" in Healt
h
and Activitiy Tracking -> Configuration -> Orchestrations?

"Tolga Yildirim [MSFT]" wrote:

> Can you turn off HAT tracking and try again? The issue might be, by defaul
t
> 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 fo
r
> 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 
>
>





[ Post a follow-up to this message ]



    Re: Memory leak inside Loop shape!  
Tolga Yildirim [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-28-05 11: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] 






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:07 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register