[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-c-user
Subject:    RE: memory leak
From:       "Theron Virgin" <tvirgin () fdecorp ! com>
Date:       2005-02-03 19:48:44
Message-ID: 200502031453554.SM03824 () STUDENTSTATION
[Download RAW message or body]

Ken:

 

I haven't gotten into that much detail.  I've just been watching memory
usage on the Widows Task manager Performance window and seen it jumping up
continuously as the client runs.  Maintains the memory level when it stops
and climbs again when I restart the client.  I only reclaim the memory when
I stop the Apache service.

 

Thanks,

Theron

 

  _____  

From: Kenneth F. Krutsch [mailto:ken@krutsch.com] 
Sent: Thursday, February 03, 2005 12:39 PM
To: 'Apache AXIS C User List'
Subject: RE: memory leak

 

Theron:

 

How are you measuring the memory leak on the server-side?  That is, is it a
constant leak per transaction or does the amount of memory leaked vary?

 

Thanks, Ken Krutsch

 

  _____  

From: Theron Virgin [mailto:tvirgin@fdecorp.com] 
Sent: Thursday, February 03, 2005 1:22 PM
To: 'Apache AXIS C User List'
Subject: RE: memory leak

Yea

 So if I run this is the client side code using a fresh generated Calculator
skeleton. Same on the server side with the addition of the code listed in
the documentation.

void main() 

{ 

      Calculator cal; 

      for (int y = 0; y < 10000; y++)

      {

            int result = cal.add(0, y); 

            printf(" %d \n",result); 

            //if (y % 10 == 0) printf ("\n");

      }

}

 

Thanks much

Theron

 

  _____  

From: John Hawkins [mailto:HAWKINSJ@uk.ibm.com] 
Sent: Thursday, February 03, 2005 11:37 AM
To: Apache AXIS C User List
Subject: Re: memory leak

 


Hi, 

Could you give us the complete scenario please. 
Are you creating an instance of the stub and then calling the same method
repeatedly or creating multiple instances of the stub ? 

Perhaps you could just attach the code here? 

cheers, 
John. 




"Theron Virgin" <tvirgin@fdecorp.com> 

03/02/2005 17:46 


Please respond to
"Apache AXIS C User List"


To

<axis-c-user@ws.apache.org> 


cc

 


Subject

memory leak

 


 

 




I was setting up my web service and I noticed that when I sent repetitive
calls into the service I was getting a significant memory leak.  I decided
to go back and check against the calculator example and I noticed that it
also had the same problem with consistent memory loss when being used.  Is
there some memory that I need to be freeing up somewhere that I don't know
about that isn't handled in the calculator example?  Any help would be
greatly appreciated as this needs to be a fairly stable service.  The
service and client are running on separate machines so I'm sure the memory
leak is caused by the service though I also get a memory leak with the
client. 
  
Thanks 
Theron 


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:st1="urn:schemas-microsoft-com:office:smarttags" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p
	{mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle18
	{mso-style-type:personal;
	font-family:Arial;
	color:navy;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Ken:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I haven&#8217;t gotten into that much
detail.&nbsp; I&#8217;ve just been watching memory usage on the Widows Task
manager Performance window and seen it jumping up continuously as the client
runs.&nbsp; Maintains the memory level when it stops and climbs again when I
restart the client.&nbsp; I only reclaim the memory when I stop the Apache
service.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Theron<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Kenneth F.
Krutsch [mailto:ken@krutsch.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, February 03, 2005
12:39 PM<br>
<b><span style='font-weight:bold'>To:</span></b> 'Apache AXIS C User List'<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: memory \
leak</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Times New Roman"><span
style='font-size:10.0pt;color:blue'>Theron:</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Times New Roman"><span
style='font-size:10.0pt;color:blue'>How are you measuring the memory leak on
the server-side?&nbsp; That is, is it a constant leak per transaction or does
the amount of memory leaked vary?</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Times New Roman"><span
style='font-size:10.0pt;color:blue'>Thanks, Ken Krutsch</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabIndex=-1>

</span></font></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
 size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Theron
Virgin [mailto:<st1:PersonName w:st="on">tvirgin@fdecorp.com</st1:PersonName>] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, February 03, 2005
1:22 PM<br>
<b><span style='font-weight:bold'>To:</span></b> 'Apache AXIS C User List'<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: memory \
leak</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>Yea<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;So if I run this is the client side code using
a fresh generated Calculator skeleton. Same on the server side with the
addition of the code listed in the documentation.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>void</span></font><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>
main() <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>{ <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Calculator cal; \
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=blue><span
style='color:blue'>for</span></font> (<font color=blue><span \
style='color:blue'>int</span></font> y = 0; y &lt; 10000; \
y++)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
{<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier \
New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font \
color=blue><span style='color:blue'>int</span></font> result = cal.add(0, y); \
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier \
New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
printf(&quot; %d \n&quot;,result); <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier \
New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font \
color=maroon><span style='color:maroon'>//if (y % 10 == 0) printf \
(&quot;\n&quot;);<o:p></o:p></span></font></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
}<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>}<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>Thanks much<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>Theron</span></font><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p></o:p></span></font></p>


<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabIndex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> John Hawkins
[mailto:HAWKINSJ@uk.ibm.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, February 03, 2005
11:37 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Apache AXIS C User List<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: memory \
leak</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:
Arial'>Hi,</span></font> <br>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Could
you give us the complete scenario please.</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Are
you creating an instance of the stub and then calling the same method
repeatedly or creating multiple instances of the stub ?</span></font> <br>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Perhaps
you could just attach the code here?</span></font> <br>
<br>
<font size=2 face=Arial><span \
style='font-size:10.0pt;font-family:Arial'>cheers,</span></font> <br>
<font size=2 face=Arial><span \
style='font-size:10.0pt;font-family:Arial'>John.</span></font> <br>
<br>
<o:p></o:p></p>

<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
 style='width:100.0%'>
 <tr>
  <td width="40%" valign=top style='width:40.0%;padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><b><font size=1 face=Arial><span style='font-size:7.5pt;
  font-family:Arial;font-weight:bold'>&quot;Theron Virgin&quot; &lt;<st1:PersonName
  w:st="on">tvirgin@fdecorp.com</st1:PersonName>&gt;</span></font></b><font
  size=1 face=Arial><span style='font-size:7.5pt;font-family:Arial'> \
</span></font><o:p></o:p></p>  <p><font size=1 face=Arial><span \
style='font-size:7.5pt;font-family:Arial'>03/02/2005  17:46</span></font> \
<o:p></o:p></p>  <table class=MsoNormalTable border=1 cellpadding=0>
   <tr>
    <td valign=top bgcolor=white style='background:white;padding:.75pt .75pt .75pt \
.75pt'>  <p class=MsoNormal align=center style='text-align:center'><font size=1
    face=Arial><span style='font-size:7.5pt;font-family:Arial'>Please respond
    to<br>
    &quot;Apache AXIS C User List&quot;</span></font><o:p></o:p></p>
    </td>
   </tr>
  </table>
  <p><font size=3 face="Times New Roman"><span \
style='font-size:12.0pt'><o:p></o:p></span></font></p>  </td>
  <td width="59%" valign=top style='width:59.0%;padding:.75pt .75pt .75pt .75pt'>
  <table class=MsoNormalTable border=0 cellpadding=0 width="100%"
   style='width:100.0%'>
   <tr>
    <td style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal align=right style='text-align:right'><font size=1
    face=Arial><span \
style='font-size:7.5pt;font-family:Arial'>To</span></font><o:p></o:p></p>  </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
    font-family:Arial'>&lt;axis-c-user@ws.apache.org&gt;</span></font> \
<o:p></o:p></p>  </td>
   </tr>
   <tr>
    <td style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal align=right style='text-align:right'><font size=1
    face=Arial><span \
style='font-size:7.5pt;font-family:Arial'>cc</span></font><o:p></o:p></p>  </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=3 face="Times New Roman"><span
    style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
    </td>
   </tr>
   <tr>
    <td style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal align=right style='text-align:right'><font size=1
    face=Arial><span \
style='font-size:7.5pt;font-family:Arial'>Subject</span></font><o:p></o:p></p>  </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
    font-family:Arial'>memory leak</span></font><o:p></o:p></p>
    </td>
   </tr>
  </table>
  <p class=MsoNormal><font size=3 face="Times New Roman"><span
  style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
  <table class=MsoNormalTable border=0 cellpadding=0>
   <tr>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=3 face="Times New Roman"><span
    style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
    </td>
    <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
    <p class=MsoNormal><font size=3 face="Times New Roman"><span
    style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>
    </td>
   </tr>
  </table>
  <p class=MsoNormal><font size=3 face="Times New Roman"><span
  style='font-size:12.0pt'><o:p></o:p></span></font></p>
  </td>
 </tr>
</table>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
<br>
</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:
Arial'>I was setting up my web service and I noticed that when I sent
repetitive calls into the service I was getting a significant memory leak.
&nbsp;I decided to go back and check against the calculator example and I
noticed that it also had the same problem with consistent memory loss when
being used. &nbsp;Is there some memory that I need to be freeing up somewhere
that I don&#8217;t know about that isn&#8217;t handled in the calculator
example? &nbsp;Any help would be greatly appreciated as this needs to be a
fairly stable service. &nbsp;The service and client are running on separate
machines so I&#8217;m sure the memory leak is caused by the service though I
also get a memory leak with the client.</span></font> <br>
<font size=2 face=Arial><span \
style='font-size:10.0pt;font-family:Arial'>&nbsp;</span></font> <br>
<font size=2 face=Arial><span \
style='font-size:10.0pt;font-family:Arial'>Thanks</span></font> <br>
<font size=2 face=Arial><span \
style='font-size:10.0pt;font-family:Arial'>Theron</span></font> <o:p></o:p></p>

</div>

</body>

</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic