Giter Site home page Giter Site logo

Memory Leak on pm2 about proxy-chain HOT 7 CLOSED

apify avatar apify commented on August 11, 2024
Memory Leak on pm2

from proxy-chain.

Comments (7)

mnmkng avatar mnmkng commented on August 11, 2024

Hi @NicolasBrondin, thanks for reporting this.

The message you are seeing is not an actual error, but a warning message that a memory leak may be present in the system (caused by repeatedly attaching event listeners to a given EventEmitter). This may be a cause for concern, but more often than not, it's just a harmless warning.

With that being said, your process must have died for other reasons, because this warning does not kill the process by itself. If you could provide more info on why and how the process died, we could find out if it were a proxy-chain related issue.

from proxy-chain.

NicolasBrondin avatar NicolasBrondin commented on August 11, 2024

Thank you for your answer, and you're right the real issue was hidden by all the warning, this is the log of the exceptions thrown by the proxy:

TypeError: Cannot read property '_httpMessage' of null at ServerResponse.detachSocket (_http_server.js:217:17) at HandlerTunnelDirect.onTrgSocketConnect (/home/ubuntu/proxy/node_modules/proxy-chain/build/handler_tunnel_direct.js:67:30) at Object.onceWrapper (events.js:291:20) at Socket.emit (events.js:203:13) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1042:10) (node:1436) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

Error [ERR_STREAM_WRITE_AFTER_END]: write after end at write_ (_http_outgoing.js:566:17) at ServerResponse.write (_http_outgoing.js:561:10) at IncomingMessage.ondata (_stream_readable.js:713:22) at IncomingMessage.emit (events.js:203:13) at IncomingMessage.Readable.read (_stream_readable.js:508:10) at flow (_stream_readable.js:977:34) at ServerResponse.pipeOnDrainFunctionResult (_stream_readable.js:781:7) at ServerResponse.emit (events.js:203:13) at Socket.ondrain (internal/http.js:32:44) at Socket.emit (events.js:208:15) at onwriteDrain (_stream_writable.js:493:12) at afterWrite (_stream_writable.js:481:5) at onwrite (_stream_writable.js:474:7) at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:92:10)

from proxy-chain.

jancurn avatar jancurn commented on August 11, 2024

You're right, this is related to issue #27, we plan to fix this. PRs are welcome :)

from proxy-chain.

jancurn avatar jancurn commented on August 11, 2024

The issue #27 has been fixed in the latest release, please can you try it again?

from proxy-chain.

sergebuilds avatar sergebuilds commented on August 11, 2024

Still happening. @NicolasBrondin have you managed to solve this?

from proxy-chain.

NicolasBrondin avatar NicolasBrondin commented on August 11, 2024

No sorry, I switched to a turnkey solution for proxy as a solution !

from proxy-chain.

jancurn avatar jancurn commented on August 11, 2024

Should be fixed in #146, reopen if the issue persists

from proxy-chain.

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.