@@ -148,19 +148,20 @@ private static void printUsage() {
148148 System .out .println (" -n [ --rowcount ] arg number of times to print stats (0 for indefinite)" );
149149 System .out .println ();
150150 System .out .println ("Fields" );
151- System .out .println (" objectName - name of the JMX bean for this connection pool" );
152- System .out .println (" host - host of the mongod/mongos server" );
153- System .out .println (" port - port of the mongod/mongos server" );
154- System .out .println (" size - max # of connections allowed" );
155- System .out .println (" total - # of connections allocated" );
156- System .out .println (" inUse - # of connections in use" );
157- System .out .println (" inUseConnections - list of all in use connections" );
158- System .out .println (" inUseConnections.namespace - namespace on which connection is operating" );
159- System .out .println (" inUseConnections.opCode - operation connection is executing" );
160- System .out .println (" inUseConnections.query - query the connection is executing (for query/update/remove)" );
161- System .out .println (" inUseConnections.threadName - name of thread on which connection is executing" );
162- System .out .println (" inUseConnections.durationMS - duration that the operation has been executing so far" );
163- System .out .println (" inUseConnections.localPort - local port of the connection" );
151+ System .out .println (" objectName - name of the JMX bean for this connection pool" );
152+ System .out .println (" host - host of the mongod/mongos server" );
153+ System .out .println (" port - port of the mongod/mongos server" );
154+ System .out .println (" size - max # of connections allowed" );
155+ System .out .println (" total - # of connections allocated" );
156+ System .out .println (" inUse - # of connections in use" );
157+ System .out .println (" inUseConnections - list of all in use connections" );
158+ System .out .println (" inUseConnections.namespace - namespace on which connection is operating" );
159+ System .out .println (" inUseConnections.opCode - operation connection is executing" );
160+ System .out .println (" inUseConnections.query - query the connection is executing (for query/update/remove)" );
161+ System .out .println (" inUseConnections.numDocuments - # of documents in the message (mostly relevant for batch inserts)" );
162+ System .out .println (" inUseConnections.threadName - name of thread on which connection is executing" );
163+ System .out .println (" inUseConnections.durationMS - duration that the operation has been executing so far" );
164+ System .out .println (" inUseConnections.localPort - local port of the connection" );
164165 }
165166
166167 private void print (PrintWriter pw ) throws JMException , IOException {
@@ -197,6 +198,7 @@ private void printInUseConnections(final ObjectName objectName, final PrintWrite
197198 printCompositeDataAttribute ("namespace" , compositeData , pw );
198199 printCompositeDataAttribute ("opCode" , compositeData , pw );
199200 printCompositeDataAttribute ("query" , compositeData , pw , StringType .JSON );
201+ printCompositeDataAttribute ("numDocuments" , compositeData , pw );
200202 printCompositeDataAttribute ("threadName" , compositeData , pw );
201203 printCompositeDataAttribute ("durationMS" , compositeData , pw );
202204 printCompositeDataAttribute ("localPort" , compositeData , pw , Position .LAST );
0 commit comments