You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Theron Virgin <tv...@fdecorp.com> on 2005/02/03 18:46:03 UTC

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


RE: memory leak

Posted by Theron Virgin <tv...@fdecorp.com>.
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" <tv...@fdecorp.com> 

03/02/2005 17:46 


Please respond to
"Apache AXIS C User List"


To

<ax...@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 


RE: memory leak

Posted by "Kenneth F. Krutsch" <ke...@krutsch.com>.
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" <tv...@fdecorp.com> 

03/02/2005 17:46 


Please respond to
"Apache AXIS C User List"


To

<ax...@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 


RE: memory leak

Posted by Theron Virgin <tv...@fdecorp.com>.
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" <tv...@fdecorp.com> 

03/02/2005 17:46 


Please respond to
"Apache AXIS C User List"


To

<ax...@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 


Re: memory leak

Posted by John Hawkins <HA...@uk.ibm.com>.
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" <tv...@fdecorp.com> 
03/02/2005 17:46
Please respond to
"Apache AXIS C User List"


To
<ax...@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