Hide Forgot
This issue is just for tracking problems related to running ISPN test suite on Solaris Sparc. It's very likely not a bug in ISPN test suite itself, but probably some misconfiguration of Solaris Sparc machines. Description of problem: ISPN testsuite fails randomly on Solaris Sparc64 with some memory issue. Typical error looks like this one: ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11-redhat-1:test (default-test) on project infinispan-core: Error occured in starting fork, check output in log -> [Help 1] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11-redhat-1:test (default-test) on project infinispan-query-dsl: Error while executing forked tests.; nested exception is java.io.IOException: Cannot run program "/bin/sh" (in directory "/mnt/hudson_workspace/workspace/edg-60-ispn-testsuite-solaris/61ab75ab/infinispan/query-dsl"): error=12, Not enough space -> [Help 1]
PR #2290 [1] seems to help, not sure it if fixes the issue completely, though [1] https://github.com/infinispan/infinispan/pull/2290
Possible root cause is that Solaris use fork() which creates deep copy of process: http://docs.oracle.com/cd/E19455-01/806-5257/6je9h0341/index.html
Similar memory issue happens on HP-UX: it fails after some time with Caused by: java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:714) at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949) at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1590) at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:333) at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleWithFixedDelay(ScheduledThreadPoolExecutor.java:594) at java.util.concurrent.Executors$DelegatedScheduledExecutorService.scheduleWithFixedDelay(Executors.java:698) at org.infinispan.executors.LazyInitializingScheduledExecutorService.scheduleWithFixedDelay(LazyInitializingScheduledExecutorService.java:145) at org.infinispan.eviction.EvictionManagerImpl.start(EvictionManagerImpl.java:78) at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168) ... 57 more
Obviously not insufficient memory issue - happens also on machine wih ~ 180GB RAM. I.e. some setup (env. or test) issue.
Lowering stack size to 264k (-Xss264k) seems to fix the problem on HP. It seems to work also with 512k.