fixed java.lang.OutOfMemoryError: unable to create new native thread

for tests
This commit is contained in:
Alex Shvid
2013-11-27 15:07:38 -08:00
parent c5273c9eb2
commit af8b6025b5
2 changed files with 3 additions and 1 deletions

View File

@@ -226,6 +226,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Xmx2048m -XX:MaxPermSize=512m</argLine>
<parallel>methods</parallel>
<threadCount>10</threadCount>
<useFile>false</useFile>
@@ -245,6 +246,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<argLine>-Xmx2048m -XX:MaxPermSize=512m</argLine>
<useFile>false</useFile>
<includes>
<include>**/test/integration/**/*.java</include>

View File

@@ -29,7 +29,7 @@ public abstract class AbstractEmbeddedCassandraIntegrationTest {
/**
* Whether to clear the cluster before the next test.
*/
protected boolean clear = true;
protected boolean clear = false;
/**
* Whether to connect to Cassandra.
*/