diff options
author | Siri Hansen <[email protected]> | 2013-04-30 15:58:21 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2013-04-30 15:58:21 +0200 |
commit | 1158dcc96c3a6a32a042bd6cc361f1c035e9cca1 (patch) | |
tree | 31c9913293fe3f43a73d91fa67afa13bbe561372 /lib/jinterface/test/nc_SUITE.erl | |
parent | d93043ca0839e659abada62b0c6cf4d441808acf (diff) | |
parent | a7c002d0f70526257fcf07d7a4b7320d541da931 (diff) | |
download | otp-1158dcc96c3a6a32a042bd6cc361f1c035e9cca1.tar.gz otp-1158dcc96c3a6a32a042bd6cc361f1c035e9cca1.tar.bz2 otp-1158dcc96c3a6a32a042bd6cc361f1c035e9cca1.zip |
Merge branch 'siri/cuddle-with-tests' into maint
* siri/cuddle-with-tests:
[jinterface] Extend timetrap timers in nc_SUITE and jinterface_SUITE
[jinterface] Set max heap size for jvm when running echo_server
[jinterface] Clean up hanging java nodes after each test case
Diffstat (limited to 'lib/jinterface/test/nc_SUITE.erl')
-rw-r--r-- | lib/jinterface/test/nc_SUITE.erl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/jinterface/test/nc_SUITE.erl b/lib/jinterface/test/nc_SUITE.erl index 63c78ebdaa..f1493a3cc9 100644 --- a/lib/jinterface/test/nc_SUITE.erl +++ b/lib/jinterface/test/nc_SUITE.erl @@ -105,12 +105,13 @@ end_per_suite(Config) -> init_per_testcase(Case, Config) -> T = case atom_to_list(Case) of "unicode"++_ -> 240; - _ -> 30 + _ -> 120 end, WatchDog = test_server:timetrap(test_server:seconds(T)), [{watchdog, WatchDog}| Config]. end_per_testcase(_Case, Config) -> + jitu:kill_all_jnodes(), WatchDog = ?config(watchdog, Config), test_server:timetrap_cancel(WatchDog). @@ -695,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 |