Closed GoogleCodeExporter closed 9 years ago
I will check it later
Original comment by flier...@gmail.com
on 25 Jul 2012 at 2:56
[deleted comment]
Yep, same problem here. Very disturbing in production environment.
Xiaohai, if you can have a look quickly it would be awesome ;-) Thanks.
Original comment by on.cel...@gmail.com
on 20 Aug 2012 at 11:57
The root cause is that you pass too many objects to Javascript, but v8 doesn't
have chance to GC those, please add a PyV8.JSEngine.collect() after get_mem()
call, which will force v8 collect all the dead objects.
Original comment by flier...@gmail.com
on 20 Aug 2012 at 1:58
import PyV8
def main():
ctx = PyV8.JSContext()
for i in xrange(10**6):
with ctx:
res = ctx.eval("%i" % i)
del res
res = None
if i % 1000 == 0:
PyV8.JSEngine.collect()
if __name__ == "__main__":
main()
Original comment by flier...@gmail.com
on 20 Aug 2012 at 2:00
Original issue reported on code.google.com by
driverx....@gmail.com
on 24 Jul 2012 at 12:18