Subject: | Instantiation fails with <1Gb virtual memory |
Hi there,
Seems that the v8 library needs a fair bit of virtual memory to
instantiate - when running under ulimit, for example:
ulimit -v 524288
cpan -t JavaScript::V8
this causes all the tests to fail with the following output:
t/01load.t ......... ok
#
# Fatal error in v8::Context::New()
# Error initializing V8
#
t/basic.t ..........
No subtests run
Running with ulimit -v 700000 or above seems fine - would it perhaps be
possible to add a note to the documentation in case anyone else runs
into this?
thanks,
Tom
Subject: | ulimit-doc.patch |
diff -uNPr JavaScript-V8-0.06-original/lib/JavaScript/V8.pm JavaScript-V8-0.06-patched/lib/JavaScript/V8.pm
--- JavaScript-V8-0.06-original/lib/JavaScript/V8.pm 2011-03-29 23:06:40.000000000 +0100
+++ JavaScript-V8-0.06-patched/lib/JavaScript/V8.pm 2012-07-22 03:25:16.993954006 +0100
@@ -40,6 +40,14 @@
=head1 INSTALLING V8
+Note that the V8 engine requires that you have at least 600MB virtual memory
+available. If you find tests failing with
+
+ Fatal error in v8::Context::New()
+
+then check whether you have sufficient virtual memory available for the process;
+under Unix systems this may be affected by ulimit(1) for example.
+
=head2 From Source
See L<V8 issue 413|http://code.google.com/p/v8/issues/detail?id=413> if you are