GithubHelp home page GithubHelp logo

Comments (9)

leahxschmidt avatar leahxschmidt commented on June 5, 2024

This is caused by some sort of leak with JMX. I'm investigating the JMX story a bit further, but if you want to temporarily patch it, just comment out HttpRequestHandler.java line 215.

from littleproxy.

leahxschmidt avatar leahxschmidt commented on June 5, 2024

Pull request #51 fixes this.

from littleproxy.

adamfisk avatar adamfisk commented on June 5, 2024

The only odd part about this is that JMX is disabled by default.

from littleproxy.

leahxschmidt avatar leahxschmidt commented on June 5, 2024

I checked littleproxy.properties, and JMX is in fact enabled by default.

from littleproxy.

md-5 avatar md-5 commented on June 5, 2024

Should probably disabled it by default in this PR

from littleproxy.

adamfisk avatar adamfisk commented on June 5, 2024

Hmn..yes it is -- we should definitely change that. How is that causing OOME?

from littleproxy.

leahxschmidt avatar leahxschmidt commented on June 5, 2024

Apparently, JMX is retaining references to the HttpRequestHandlers. I looked in VisualVM, saw the memory usage rising (even after a forced GC), and looked at what object was largest. Tracing from there got me to the leak.

It would be nice if there were a way to do weak refs in JMX, but I couldn't see how.

from littleproxy.

adamfisk avatar adamfisk commented on June 5, 2024

Very interesting - makes sense. I'll apply the patch, and we'll go from
there! Thank you sir.

On Tuesday, December 18, 2012, Leah X Schmidt wrote:

Apparently, JMX is retaining references to the HttpRequestHandlers. I
looked in VisualVM, saw the memory usage rising (even after a forced GC),
and looked at what object was largest. Tracing from there got me to the
leak.

It would be nice if there were a way to do weak refs in JMX, but I
couldn't see how.


Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-11471418.

Sent from Gmail Mobile

from littleproxy.

leahxschmidt avatar leahxschmidt commented on June 5, 2024

Ma'am.

from littleproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.