summaryrefslogtreecommitdiff
path: root/jstests/parallel
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-01-08 00:27:56 -0500
committerEliot Horowitz <eliot@10gen.com>2013-01-08 00:27:56 -0500
commit0547ed8a19c701822bc562cfcecea0688573eccc (patch)
tree882ed802c5ca6d56e886fac39fb3904388543a7d /jstests/parallel
parentec077b8848107fc3d42bc4ec9265ebb66d9e17d1 (diff)
downloadmongo-0547ed8a19c701822bc562cfcecea0688573eccc.tar.gz
SERVER-7849: lower number of clients for debug builds and non-linux machines
Diffstat (limited to 'jstests/parallel')
-rw-r--r--jstests/parallel/manyclients.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/jstests/parallel/manyclients.js b/jstests/parallel/manyclients.js
index 1ad94fa29ab..daf13b5eefe 100644
--- a/jstests/parallel/manyclients.js
+++ b/jstests/parallel/manyclients.js
@@ -9,9 +9,16 @@ Random.setRandomSeed();
t = new ParallelTester();
numThreads = 200;
-if ( db.adminCommand( "buildInfo" ).bits < 64 )
+buildInfo = db.adminCommand( "buildInfo" )
+
+if ( buildInfo.bits < 64 ||
+ buildInfo.sysInfo.indexOf( "Linux" ) < 0 ||
+ buildInfo.debug ) {
numThreads = 50;
+}
+
numThreads = Math.min( numThreads, db.serverStatus().connections.available / 3 );
+
print( "numThreads: " + numThreads );
for( id = 0; id < numThreads; ++id ) {