jpillora/chisel High RAM usage on ARM by ChiselHow to measure actual memory usage of an application or process?How to get current CPU and RAM usage in Python?MySQL maximum memory usageHow do I discover memory usage of my application in Android?Python large variable RAM usageHow to see top processes sorted by actual memory usage?firefox high memory (RAM) usage, how to free with javascript?Sorting 1 million 8-digit numbers in 1 MB of RAMC++ -Sorting a Big List (RAM USAGE HIGH!)High RAM Consumption with MariaDB

Does a dangling wire really electrocute me if I'm standing in water?

Lied on resume at previous job

Can a planet have a different gravitational pull depending on its location in orbit around its sun?

Crop image to path created in TikZ?

How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?

What is the offset in a seaplane's hull?

Why is the design of haulage companies so “special”?

How to answer pointed "are you quitting" questioning when I don't want them to suspect

Extreme, but not acceptable situation and I can't start the work tomorrow morning

Landlord wants to switch my lease to a "Land contract" to "get back at the city"

What are the advantages and disadvantages of running one shots compared to campaigns?

Domain expired, GoDaddy holds it and is asking more money

What is it called when one voice type sings a 'solo'?

LWC and complex parameters

Pristine Bit Checking

Where else does the Shulchan Aruch quote an authority by name?

"My colleague's body is amazing"

How would photo IDs work for shapeshifters?

Can I find out the caloric content of bread by dehydrating it?

Symmetry in quantum mechanics

Could Giant Ground Sloths have been a good pack animal for the ancient Mayans?

What do the Banks children have against barley water?

How could a lack of term limits lead to a "dictatorship?"

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine



jpillora/chisel High RAM usage on ARM by Chisel


How to measure actual memory usage of an application or process?How to get current CPU and RAM usage in Python?MySQL maximum memory usageHow do I discover memory usage of my application in Android?Python large variable RAM usageHow to see top processes sorted by actual memory usage?firefox high memory (RAM) usage, how to free with javascript?Sorting 1 million 8-digit numbers in 1 MB of RAMC++ -Sorting a Big List (RAM USAGE HIGH!)High RAM Consumption with MariaDB






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I am using jpillora's Chisel for WebSockets. I needed to use Chisel on ARM. I cross compiled it and reduced the binary size using the following two commands:



env GOOS=linux GOARCH=arm go build -ldflags "-w -s"
~/go/src/github.com/pwaller/goupx/goupx --brute chisel


However, when I run the chisel binary on the ARM board (512MB RAM), I find that it is taking a huge amount of RAM.



The "top" yields an output of usage of 161% and 775m! However, the difference of output of "free" command taken before and after the execution of chisel client is ~6MB.



I ran strace too, and the sum of all mmap2 memory allocated is 700MB+.
The command I executed to connect to the server:



./chisel client --fingerprint <> 10.137.12.88:2002 127.0.0.1:9191:10.137.12.88:9191


Is there some way to optimize / reduce the RAM usage on Chisel?



Any pointers would be helpful!



Thanks,










share|improve this question






























    1















    I am using jpillora's Chisel for WebSockets. I needed to use Chisel on ARM. I cross compiled it and reduced the binary size using the following two commands:



    env GOOS=linux GOARCH=arm go build -ldflags "-w -s"
    ~/go/src/github.com/pwaller/goupx/goupx --brute chisel


    However, when I run the chisel binary on the ARM board (512MB RAM), I find that it is taking a huge amount of RAM.



    The "top" yields an output of usage of 161% and 775m! However, the difference of output of "free" command taken before and after the execution of chisel client is ~6MB.



    I ran strace too, and the sum of all mmap2 memory allocated is 700MB+.
    The command I executed to connect to the server:



    ./chisel client --fingerprint <> 10.137.12.88:2002 127.0.0.1:9191:10.137.12.88:9191


    Is there some way to optimize / reduce the RAM usage on Chisel?



    Any pointers would be helpful!



    Thanks,










    share|improve this question


























      1












      1








      1








      I am using jpillora's Chisel for WebSockets. I needed to use Chisel on ARM. I cross compiled it and reduced the binary size using the following two commands:



      env GOOS=linux GOARCH=arm go build -ldflags "-w -s"
      ~/go/src/github.com/pwaller/goupx/goupx --brute chisel


      However, when I run the chisel binary on the ARM board (512MB RAM), I find that it is taking a huge amount of RAM.



      The "top" yields an output of usage of 161% and 775m! However, the difference of output of "free" command taken before and after the execution of chisel client is ~6MB.



      I ran strace too, and the sum of all mmap2 memory allocated is 700MB+.
      The command I executed to connect to the server:



      ./chisel client --fingerprint <> 10.137.12.88:2002 127.0.0.1:9191:10.137.12.88:9191


      Is there some way to optimize / reduce the RAM usage on Chisel?



      Any pointers would be helpful!



      Thanks,










      share|improve this question
















      I am using jpillora's Chisel for WebSockets. I needed to use Chisel on ARM. I cross compiled it and reduced the binary size using the following two commands:



      env GOOS=linux GOARCH=arm go build -ldflags "-w -s"
      ~/go/src/github.com/pwaller/goupx/goupx --brute chisel


      However, when I run the chisel binary on the ARM board (512MB RAM), I find that it is taking a huge amount of RAM.



      The "top" yields an output of usage of 161% and 775m! However, the difference of output of "free" command taken before and after the execution of chisel client is ~6MB.



      I ran strace too, and the sum of all mmap2 memory allocated is 700MB+.
      The command I executed to connect to the server:



      ./chisel client --fingerprint <> 10.137.12.88:2002 127.0.0.1:9191:10.137.12.88:9191


      Is there some way to optimize / reduce the RAM usage on Chisel?



      Any pointers would be helpful!



      Thanks,







      memory websocket ram






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 22 at 1:43









      Chick Markley

      1,657911




      1,657911










      asked Mar 21 at 3:50









      Chatur GChatur G

      61




      61






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55273503%2fjpillora-chisel-high-ram-usage-on-arm-by-chisel%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55273503%2fjpillora-chisel-high-ram-usage-on-arm-by-chisel%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript