diff options
author | Siri Hansen <[email protected]> | 2013-04-22 14:54:08 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2013-04-22 14:54:08 +0200 |
commit | d8d2844cfa1fa97fdf345415802e9db3e8e61c5b (patch) | |
tree | 928b4b1121972b57811f23e7e3de6d01c6fac396 | |
parent | b48efd0bcfd99b9d129835bdb9d411c8f061aee3 (diff) | |
download | otp-d8d2844cfa1fa97fdf345415802e9db3e8e61c5b.tar.gz otp-d8d2844cfa1fa97fdf345415802e9db3e8e61c5b.tar.bz2 otp-d8d2844cfa1fa97fdf345415802e9db3e8e61c5b.zip |
[jinterface] Set max heap size for jvm when running echo_server
The test cases nc_SUITE:decompress_roundtrip and
nc_SUITE:compress_roundtrip fails on some machines with
OutOfMemoryException. This commit sets the max heap size for the jvm
to 256M in nc_SUITE in order to get around this.
-rw-r--r-- | lib/jinterface/test/nc_SUITE.erl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/jinterface/test/nc_SUITE.erl b/lib/jinterface/test/nc_SUITE.erl index 4d6ebec4d7..87f22c9a67 100644 --- a/lib/jinterface/test/nc_SUITE.erl +++ b/lib/jinterface/test/nc_SUITE.erl @@ -696,15 +696,18 @@ run_server(Server, Config, Action, ExtraArgs) -> true = register(Name, self()), JName = make_name(), spawn_link(fun () -> + %% Setting max memory to 256. This is due to + %% echo_server sometimes failing with + %% OutOfMemoryException one some test machines. ok = jitu:java(?config(java, Config), ?config(data_dir, Config), atom_to_list(Server), [JName, erlang:get_cookie(), node(), - Name]++ExtraArgs - ), - %,"-DOtpConnection.trace=3"), + Name]++ExtraArgs, + " -Xmx256m"), + %% " -Xmx256m -DOtpConnection.trace=3"), Name ! {done, JName} end), receive |