Comments (8)
Update: I remember seeing warnings about dtrace missing when I was building v8.
Could this make the difference? I've found this pyv8 binary maintainer's commit
that seems to link the two issues together:
https://github.com/taguchimail/pyv8-linux-x64/commit/aaae4b4c2cac88bc78a87e711c8
18bed7a6bccd6.
Original comment by [email protected]
on 29 Mar 2014 at 7:27
from pyv8.
I've tested it with this binary distribution now - same effect. My solution for
now will be to monitor the PyV8 process and restart it on OS level when the
memory consumption has become too high.
Original comment by [email protected]
on 29 Mar 2014 at 9:32
from pyv8.
Since taguchimail's binary repo comes with a 'stable' branch (PyV8 429 / V8
r10452), I had to try this out as well. This has been an improvement as in the
empty evals at least didn't show a leak anymore - the whole application still
leaks however, so I'm trying to isolate new test cases now. In other words, the
reported behavior above must have come in somewhere between 429 and 557.
Original comment by [email protected]
on 2 Apr 2014 at 6:07
from pyv8.
[deleted comment]
from pyv8.
[deleted comment]
from pyv8.
[deleted comment]
from pyv8.
[deleted comment]
from pyv8.
Update: Wrapping the JSContext inside the wrapper as posted below and using
PyV8 r428 / V8 r10452 solves the memory leak issues for me. I have to say
though that the garbage collection is relatively slow this way, so I have to do
it in a background process.
Original comment by [email protected]
on 10 Jun 2014 at 2:27
Attachments:
from pyv8.
Related Issues (20)
- LookupError: unknown encoding: HOT 5
- New function to modify the maximum call stack size limit HOT 4
- Can't override eval method when inheriting JSClass HOT 2
- Compilation error HOT 7
- Compilation issue on Ubuntu 13.10 - no matching function for call to ‘CAstVisitor::InitializeAstVisitor(v8::internal::Isolate*)’ HOT 2
- Symbol not found: __ZSt20__throw_length_errorPKc HOT 2
- Builds HOT 5
- Memory leak with evaluating pure JS HOT 3
- How to load contents of alert screen ?
- Update version on PyPI
- error: 'CLASSIC_MODE' is not a member of 'v8i' v8 API change ?
- REVISION
- AST can't visit object properties: No to_python (by-value) converter found for C++ type: v8::internal::ObjectLiteralProperty*
- src/Context.h:66:114: error: no member named 'HasOutOfMemoryException' in 'v8::Context'
- Help !!
- Precompiled for Debain x64 HOT 1
- Failed to pip install/build under linux x64 — lot of errors in src/Wrapper.cpp HOT 1
- segfault
- compile failed with error code 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyv8.