Bug 60817 - Memory Leak with WCF simpleHttpBinding on ARM
Summary: Memory Leak with WCF simpleHttpBinding on ARM
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies ()
Version: unspecified
Hardware: Other Linux
: --- normal
Target Milestone: Future Release
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-11-22 19:56 UTC by Toni
Modified: 2017-11-23 08:25 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Sample WCF Service for Memory Test (84.80 KB, application/zip)
2017-11-22 19:56 UTC, Toni
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 60817 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Toni 2017-11-22 19:56:50 UTC
Created attachment 25804 [details]
Sample WCF Service for Memory Test

WCF Service with simpleHttpBinding running on Linux arm, is leaking memory in all versions after 4.2.4.4. The first version that starts leaking memory is 4.4.0.182.

For testing this problem, I attach a sample service with just a single method. 

 public byte[] GetSomeBytes(uint amount)
 {
   return new byte[amount];
 }

This WCF Service can be stressed with an similar like the following nodo sample. With this example the memory is increasing more or less 1Mb per second. 

var soap = require('soap');
var url = './single.xml';
soap.createClient(url, function(err, client) {
  console.dir(client);
  setInterval(function(){
    client.GetSomeBytes({"amount":10*1024},function(err,result){
      if(!err) {
        console.log("Bytes",result.GetSomeBytesResult.length);
      } else {
        console.log("Error");
      }
    });
  },50);
});
Comment 1 Toni 2017-11-22 21:03:17 UTC
simpleHttpBinding is an error, it means basicHttpBinding
Comment 2 Albert 2017-11-23 08:25:23 UTC
Don't understand why this should be fixed in a future release when the version that introduced the leak was released on March 2016 (more than a year and a half ago). 

Any workarounds available? This is also critical for our project. 

Thanks.