Use a more reasonable number of aspects per services. Configure threadpools with 4 threads at minimum, or with all available cores

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1542984 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/test/src/test/java/org/apache/felix/dm/test/integration/api/AspectRaceTest.java b/dependencymanager/test/src/test/java/org/apache/felix/dm/test/integration/api/AspectRaceTest.java
index 784d77d..8199740 100644
--- a/dependencymanager/test/src/test/java/org/apache/felix/dm/test/integration/api/AspectRaceTest.java
+++ b/dependencymanager/test/src/test/java/org/apache/felix/dm/test/integration/api/AspectRaceTest.java
@@ -44,13 +44,13 @@
 	volatile ExecutorService _aspectExec;
 	volatile DependencyManager _dm;
 	final static int SERVICES = 3;
-	final static int ASPECTS_PER_SERVICE = 10;
+	final static int ASPECTS_PER_SERVICE = 5;
 
 	@Test
 	public void testConcurrentAspects() {
 		try {
 			warn("starting aspect race test");
-			int cores = 10; // Runtime.getRuntime().availableProcessors();
+			int cores = Math.max(4, Runtime.getRuntime().availableProcessors());
 			// Used to inject S services
 			_serviceExec = Executors.newFixedThreadPool(cores);
 			// Used to inject S Aspects