Hi Rob-
Thanks for the feedback. I added in the "synchronized" to the static method and it helped some, but it still shows degradation. Below are the new execution times. This simulates about 500 transactions a second. I figured Mongo could handle this kind of load, but maybe I'm misunderstanding something.
Thanks
Kevin
connection Execution time was 78 ms. thread 0
connection Execution time was 62 ms. thread 30
connection Execution time was 62 ms. thread 26
connection Execution time was 62 ms. thread 29
connection Execution time was 62 ms. thread 25
connection Execution time was 62 ms. thread 24
connection Execution time was 62 ms. thread 32
connection Execution time was 62 ms. thread 23
connection Execution time was 62 ms. thread 31
connection Execution time was 62 ms. thread 35
connection Execution time was 62 ms. thread 34
connection Execution time was 62 ms. thread 39
connection Execution time was 62 ms. thread 22
connection Execution time was 62 ms. thread 40
connection Execution time was 62 ms. thread 43
connection Execution time was 62 ms. thread 33
connection Execution time was 62 ms. thread 21
connection Execution time was 62 ms. thread 36
connection Execution time was 62 ms. thread 20
connection Execution time was 62 ms. thread 28
connection Execution time was 78 ms. thread 19
connection Execution time was 78 ms. thread 27
connection Execution time was 78 ms. thread 18
connection Execution time was 78 ms. thread 42
connection Execution time was 78 ms. thread 17
connection Execution time was 78 ms. thread 16
connection Execution time was 93 ms. thread 15
connection Execution time was 93 ms. thread 13
connection Execution time was 93 ms. thread 14
connection Execution time was 93 ms. thread 12
connection Execution time was 93 ms. thread 11
connection Execution time was 93 ms. thread 41
connection Execution time was 93 ms. thread 45
connection Execution time was 93 ms. thread 10
connection Execution time was 93 ms. thread 9
connection Execution time was 93 ms. thread 8
connection Execution time was 93 ms. thread 38
connection Execution time was 93 ms. thread 44
connection Execution time was 109 ms. thread 6
connection Execution time was 109 ms. thread 47
connection Execution time was 109 ms. thread 7
connection Execution time was 109 ms. thread 1
connection Execution time was 109 ms. thread 2
connection Execution time was 109 ms. thread 3
connection Execution time was 109 ms. thread 5
connection Execution time was 109 ms. thread 4
connection Execution time was 109 ms. thread 46
connection Execution time was 109 ms. thread 48
connection Execution time was 109 ms. thread 49
connection Execution time was 109 ms. thread 37
connection Execution time was 109 ms. thread 50
connection Execution time was 109 ms. thread 52
connection Execution time was 109 ms. thread 53
connection Execution time was 109 ms. thread 51
connection Execution time was 109 ms. thread 54
connection Execution time was 109 ms. thread 55
connection Execution time was 109 ms. thread 56
connection Execution time was 109 ms. thread 58
connection Execution time was 109 ms. thread 57
connection Execution time was 109 ms. thread 60
connection Execution time was 109 ms. thread 59
connection Execution time was 109 ms. thread 62
connection Execution time was 125 ms. thread 66
connection Execution time was 109 ms. thread 61
connection Execution time was 125 ms. thread 67
connection Execution time was 125 ms. thread 65
connection Execution time was 125 ms. thread 68
connection Execution time was 125 ms. thread 64
connection Execution time was 125 ms. thread 71
connection Execution time was 125 ms. thread 63
connection Execution time was 125 ms. thread 70
connection Execution time was 125 ms. thread 69
connection Execution time was 125 ms. thread 73
connection Execution time was 125 ms. thread 74
connection Execution time was 125 ms. thread 72
connection Execution time was 125 ms. thread 77
connection Execution time was 125 ms. thread 78
connection Execution time was 125 ms. thread 76
connection Execution time was 125 ms. thread 75
connection Execution time was 140 ms. thread 82
connection Execution time was 140 ms. thread 80
connection Execution time was 140 ms. thread 81
connection Execution time was 140 ms. thread 83
connection Execution time was 125 ms. thread 79
connection Execution time was 156 ms. thread 84
connection Execution time was 156 ms. thread 85
connection Execution time was 156 ms. thread 86
connection Execution time was 156 ms. thread 87
connection Execution time was 156 ms. thread 88
connection Execution time was 156 ms. thread 89
connection Execution time was 156 ms. thread 90
connection Execution time was 156 ms. thread 92
connection Execution time was 156 ms. thread 91
connection Execution time was 171 ms. thread 94
connection Execution time was 156 ms. thread 93
connection Execution time was 171 ms. thread 95
connection Execution time was 171 ms. thread 96
connection Execution time was 171 ms. thread 97
connection Execution time was 171 ms. thread 98
connection Execution time was 171 ms. thread 99
connection Execution time was 171 ms. thread 100
connection Execution time was 171 ms. thread 101
connection Execution time was 171 ms. thread 102
connection Execution time was 171 ms. thread 103
connection Execution time was 171 ms. thread 105
connection Execution time was 171 ms. thread 104
connection Execution time was 171 ms. thread 106
connection Execution time was 171 ms. thread 107
connection Execution time was 187 ms. thread 108
connection Execution time was 187 ms. thread 109
connection Execution time was 187 ms. thread 110
connection Execution time was 187 ms. thread 111
connection Execution time was 187 ms. thread 112
connection Execution time was 187 ms. thread 113
connection Execution time was 203 ms. thread 114
connection Execution time was 203 ms. thread 115
connection Execution time was 203 ms. thread 116
connection Execution time was 203 ms. thread 117
connection Execution time was 203 ms. thread 118
connection Execution time was 203 ms. thread 119
connection Execution time was 203 ms. thread 120
connection Execution time was 203 ms. thread 121
connection Execution time was 218 ms. thread 122
connection Execution time was 218 ms. thread 123
connection Execution time was 218 ms. thread 124
connection Execution time was 218 ms. thread 125
connection Execution time was 218 ms. thread 126
connection Execution time was 218 ms. thread 130
connection Execution time was 218 ms. thread 128
connection Execution time was 218 ms. thread 127
connection Execution time was 234 ms. thread 136
connection Execution time was 218 ms. thread 129
connection Execution time was 218 ms. thread 135
connection Execution time was 234 ms. thread 137
connection Execution time was 218 ms. thread 134
connection Execution time was 218 ms. thread 133
connection Execution time was 234 ms. thread 138
connection Execution time was 234 ms. thread 139
connection Execution time was 218 ms. thread 132
connection Execution time was 218 ms. thread 131
connection Execution time was 234 ms. thread 140
connection Execution time was 234 ms. thread 141
connection Execution time was 234 ms. thread 142
connection Execution time was 234 ms. thread 143
connection Execution time was 234 ms. thread 144
connection Execution time was 249 ms. thread 145
connection Execution time was 249 ms. thread 146
connection Execution time was 249 ms. thread 147
connection Execution time was 249 ms. thread 148
connection Execution time was 249 ms. thread 149
connection Execution time was 249 ms. thread 150
connection Execution time was 249 ms. thread 151
connection Execution time was 249 ms. thread 152
connection Execution time was 249 ms. thread 153
connection Execution time was 249 ms. thread 154
connection Execution time was 249 ms. thread 155
connection Execution time was 249 ms. thread 156
connection Execution time was 249 ms. thread 159
connection Execution time was 249 ms. thread 160
connection Execution time was 249 ms. thread 157
connection Execution time was 249 ms. thread 161
connection Execution time was 249 ms. thread 162
connection Execution time was 249 ms. thread 158
connection Execution time was 249 ms. thread 163
connection Execution time was 249 ms. thread 164
connection Execution time was 265 ms. thread 165
connection Execution time was 265 ms. thread 167
connection Execution time was 265 ms. thread 166
connection Execution time was 265 ms. thread 168
connection Execution time was 265 ms. thread 169
connection Execution time was 265 ms. thread 173
connection Execution time was 265 ms. thread 171
connection Execution time was 265 ms. thread 172
connection Execution time was 265 ms. thread 174
connection Execution time was 265 ms. thread 170
connection Execution time was 265 ms. thread 176
connection Execution time was 281 ms. thread 181
connection Execution time was 281 ms. thread 182
connection Execution time was 281 ms. thread 183
connection Execution time was 265 ms. thread 175
connection Execution time was 281 ms. thread 185
connection Execution time was 281 ms. thread 184
connection Execution time was 281 ms. thread 186
connection Execution time was 281 ms. thread 189
connection Execution time was 281 ms. thread 180
connection Execution time was 281 ms. thread 179
connection Execution time was 265 ms. thread 178
connection Execution time was 296 ms. thread 193
connection Execution time was 296 ms. thread 194
connection Execution time was 265 ms. thread 177
connection Execution time was 296 ms. thread 195
connection Execution time was 296 ms. thread 192
connection Execution time was 296 ms. thread 197
connection Execution time was 281 ms. thread 191
connection Execution time was 281 ms. thread 190
connection Execution time was 312 ms. thread 199
connection Execution time was 281 ms. thread 188
connection Execution time was 281 ms. thread 187
connection Execution time was 327 ms. thread 200
connection Execution time was 327 ms. thread 201
connection Execution time was 296 ms. thread 198
connection Execution time was 296 ms. thread 196
connection Execution time was 327 ms. thread 202
connection Execution time was 327 ms. thread 203
connection Execution time was 343 ms. thread 204
connection Execution time was 343 ms. thread 205
connection Execution time was 343 ms. thread 206
connection Execution time was 343 ms. thread 207
connection Execution time was 343 ms. thread 208
connection Execution time was 359 ms. thread 224
connection Execution time was 359 ms. thread 209
connection Execution time was 359 ms. thread 210
connection Execution time was 359 ms. thread 211
connection Execution time was 374 ms. thread 212
connection Execution time was 374 ms. thread 226
connection Execution time was 374 ms. thread 227
connection Execution time was 374 ms. thread 228
connection Execution time was 374 ms. thread 214
connection Execution time was 374 ms. thread 216
connection Execution time was 374 ms. thread 229
connection Execution time was 374 ms. thread 217
connection Execution time was 374 ms. thread 218
connection Execution time was 374 ms. thread 219
connection Execution time was 390 ms. thread 220
connection Execution time was 390 ms. thread 230
connection Execution time was 390 ms. thread 222
connection Execution time was 390 ms. thread 223
connection Execution time was 390 ms. thread 225
connection Execution time was 390 ms. thread 213
connection Execution time was 390 ms. thread 215
connection Execution time was 390 ms. thread 242
connection Execution time was 407 ms. thread 232
connection Execution time was 408 ms. thread 244
connection Execution time was 408 ms. thread 221
connection Execution time was 408 ms. thread 233
connection Execution time was 410 ms. thread 234
connection Execution time was 410 ms. thread 235
connection Execution time was 410 ms. thread 236
connection Execution time was 411 ms. thread 247
connection Execution time was 412 ms. thread 248
connection Execution time was 412 ms. thread 237
connection Execution time was 413 ms. thread 249
connection Execution time was 413 ms. thread 238
connection Execution time was 414 ms. thread 250
connection Execution time was 414 ms. thread 253
connection Execution time was 415 ms. thread 231
connection Execution time was 416 ms. thread 243
connection Execution time was 417 ms. thread 245
connection Execution time was 419 ms. thread 246
connection Execution time was 419 ms. thread 251
connection Execution time was 419 ms. thread 255
connection Execution time was 419 ms. thread 239
connection Execution time was 423 ms. thread 252
connection Execution time was 425 ms. thread 240
connection Execution time was 426 ms. thread 261
connection Execution time was 426 ms. thread 254
connection Execution time was 427 ms. thread 241
connection Execution time was 427 ms. thread 263
connection Execution time was 428 ms. thread 262
connection Execution time was 429 ms. thread 258
connection Execution time was 429 ms. thread 260
connection Execution time was 428 ms. thread 264
connection Execution time was 431 ms. thread 257
connection Execution time was 431 ms. thread 267
connection Execution time was 432 ms. thread 266
connection Execution time was 428 ms. thread 256
connection Execution time was 433 ms. thread 265
connection Execution time was 429 ms. thread 259
connection Execution time was 437 ms. thread 269
connection Execution time was 440 ms. thread 270
connection Execution time was 440 ms. thread 271
connection Execution time was 437 ms. thread 268
connection Execution time was 442 ms. thread 272
connection Execution time was 442 ms. thread 273
connection Execution time was 446 ms. thread 274
connection Execution time was 446 ms. thread 275
connection Execution time was 449 ms. thread 276
connection Execution time was 449 ms. thread 279
connection Execution time was 449 ms. thread 280
connection Execution time was 450 ms. thread 281
connection Execution time was 449 ms. thread 278
connection Execution time was 457 ms. thread 284
connection Execution time was 457 ms. thread 282
connection Execution time was 458 ms. thread 286
connection Execution time was 459 ms. thread 289
connection Execution time was 458 ms. thread 285
connection Execution time was 460 ms. thread 290
connection Execution time was 458 ms. thread 283
connection Execution time was 457 ms. thread 277
connection Execution time was 463 ms. thread 291
connection Execution time was 459 ms. thread 288
connection Execution time was 458 ms. thread 287
connection Execution time was 467 ms. thread 292
connection Execution time was 467 ms. thread 293
connection Execution time was 469 ms. thread 294
connection Execution time was 469 ms. thread 297
connection Execution time was 469 ms. thread 296
connection Execution time was 469 ms. thread 295
connection Execution time was 471 ms. thread 298
connection Execution time was 472 ms. thread 300
connection Execution time was 471 ms. thread 299
connection Execution time was 473 ms. thread 301
connection Execution time was 473 ms. thread 302
connection Execution time was 474 ms. thread 303
connection Execution time was 474 ms. thread 305
connection Execution time was 474 ms. thread 304
connection Execution time was 477 ms. thread 306
connection Execution time was 477 ms. thread 307
connection Execution time was 478 ms. thread 308
connection Execution time was 479 ms. thread 309
connection Execution time was 479 ms. thread 310
connection Execution time was 480 ms. thread 312
connection Execution time was 479 ms. thread 311
connection Execution time was 485 ms. thread 313
connection Execution time was 488 ms. thread 314
connection Execution time was 489 ms. thread 315
connection Execution time was 490 ms. thread 317
connection Execution time was 489 ms. thread 316
connection Execution time was 493 ms. thread 318
connection Execution time was 495 ms. thread 319
connection Execution time was 497 ms. thread 320
connection Execution time was 498 ms. thread 321
connection Execution time was 501 ms. thread 322
connection Execution time was 507 ms. thread 323
connection Execution time was 507 ms. thread 324
connection Execution time was 511 ms. thread 325
connection Execution time was 513 ms. thread 326
connection Execution time was 514 ms. thread 329
connection Execution time was 513 ms. thread 328
connection Execution time was 513 ms. thread 327
connection Execution time was 517 ms. thread 330
connection Execution time was 517 ms. thread 331
connection Execution time was 518 ms. thread 332
connection Execution time was 519 ms. thread 333
connection Execution time was 521 ms. thread 334
connection Execution time was 521 ms. thread 335
connection Execution time was 523 ms. thread 336
connection Execution time was 523 ms. thread 337
connection Execution time was 524 ms. thread 338
connection Execution time was 524 ms. thread 339
connection Execution time was 525 ms. thread 340
connection Execution time was 525 ms. thread 341
connection Execution time was 527 ms. thread 342
connection Execution time was 527 ms. thread 343
connection Execution time was 528 ms. thread 345
connection Execution time was 529 ms. thread 346
connection Execution time was 529 ms. thread 347
connection Execution time was 528 ms. thread 344
connection Execution time was 531 ms. thread 348
connection Execution time was 531 ms. thread 349
connection Execution time was 533 ms. thread 350
connection Execution time was 533 ms. thread 351
connection Execution time was 534 ms. thread 352
connection Execution time was 535 ms. thread 353
connection Execution time was 535 ms. thread 354
connection Execution time was 536 ms. thread 355
connection Execution time was 538 ms. thread 356
connection Execution time was 538 ms. thread 357
connection Execution time was 539 ms. thread 358
connection Execution time was 540 ms. thread 359
connection Execution time was 540 ms. thread 360
connection Execution time was 544 ms. thread 361
connection Execution time was 546 ms. thread 362
connection Execution time was 546 ms. thread 363
connection Execution time was 547 ms. thread 364
connection Execution time was 548 ms. thread 365
connection Execution time was 549 ms. thread 366
connection Execution time was 549 ms. thread 367
connection Execution time was 549 ms. thread 368
connection Execution time was 550 ms. thread 369
connection Execution time was 551 ms. thread 370
connection Execution time was 551 ms. thread 371
connection Execution time was 552 ms. thread 372
connection Execution time was 553 ms. thread 373
connection Execution time was 553 ms. thread 374
connection Execution time was 554 ms. thread 375
connection Execution time was 554 ms. thread 376
connection Execution time was 555 ms. thread 377
connection Execution time was 555 ms. thread 378
connection Execution time was 555 ms. thread 379
connection Execution time was 557 ms. thread 380
connection Execution time was 557 ms. thread 381
connection Execution time was 557 ms. thread 382
connection Execution time was 557 ms. thread 383
connection Execution time was 559 ms. thread 384
connection Execution time was 559 ms. thread 385
connection Execution time was 560 ms. thread 386
connection Execution time was 561 ms. thread 387
connection Execution time was 564 ms. thread 388
connection Execution time was 565 ms. thread 389
connection Execution time was 567 ms. thread 390
connection Execution time was 567 ms. thread 391
connection Execution time was 569 ms. thread 392
connection Execution time was 570 ms. thread 393
connection Execution time was 571 ms. thread 394
connection Execution time was 571 ms. thread 395
connection Execution time was 573 ms. thread 396
connection Execution time was 573 ms. thread 397
connection Execution time was 574 ms. thread 398
connection Execution time was 575 ms. thread 400
connection Execution time was 575 ms. thread 401
connection Execution time was 574 ms. thread 399
connection Execution time was 576 ms. thread 402
connection Execution time was 577 ms. thread 403
connection Execution time was 579 ms. thread 404
connection Execution time was 579 ms. thread 405
connection Execution time was 580 ms. thread 406
connection Execution time was 581 ms. thread 407
connection Execution time was 582 ms. thread 408
connection Execution time was 586 ms. thread 409
connection Execution time was 587 ms. thread 410
connection Execution time was 587 ms. thread 411
connection Execution time was 589 ms. thread 412
connection Execution time was 589 ms. thread 415
connection Execution time was 589 ms. thread 414
connection Execution time was 589 ms. thread 413
connection Execution time was 592 ms. thread 416
connection Execution time was 592 ms. thread 417
connection Execution time was 593 ms. thread 418
connection Execution time was 594 ms. thread 419
connection Execution time was 598 ms. thread 420
connection Execution time was 598 ms. thread 421
connection Execution time was 600 ms. thread 422
connection Execution time was 600 ms. thread 424
connection Execution time was 600 ms. thread 426
connection Execution time was 600 ms. thread 423
connection Execution time was 600 ms. thread 425
connection Execution time was 602 ms. thread 428
connection Execution time was 603 ms. thread 427
connection Execution time was 604 ms. thread 429
connection Execution time was 605 ms. thread 431
connection Execution time was 605 ms. thread 430
connection Execution time was 607 ms. thread 432
connection Execution time was 607 ms. thread 433
connection Execution time was 608 ms. thread 434
connection Execution time was 609 ms. thread 435
connection Execution time was 609 ms. thread 436
connection Execution time was 609 ms. thread 437
connection Execution time was 610 ms. thread 438
connection Execution time was 611 ms. thread 439
connection Execution time was 612 ms. thread 440
connection Execution time was 612 ms. thread 441
connection Execution time was 613 ms. thread 442
connection Execution time was 613 ms. thread 445
connection Execution time was 613 ms. thread 444
connection Execution time was 613 ms. thread 443
connection Execution time was 615 ms. thread 446
connection Execution time was 615 ms. thread 447
connection Execution time was 619 ms. thread 448
connection Execution time was 619 ms. thread 449
connection Execution time was 621 ms. thread 450
connection Execution time was 621 ms. thread 451
connection Execution time was 622 ms. thread 452
connection Execution time was 622 ms. thread 453
connection Execution time was 623 ms. thread 454
connection Execution time was 625 ms. thread 455
connection Execution time was 627 ms. thread 457
connection Execution time was 627 ms. thread 456
connection Execution time was 627 ms. thread 459
connection Execution time was 627 ms. thread 458
connection Execution time was 629 ms. thread 463
connection Execution time was 630 ms. thread 462
connection Execution time was 629 ms. thread 461
connection Execution time was 629 ms. thread 460
connection Execution time was 632 ms. thread 464
connection Execution time was 632 ms. thread 465
connection Execution time was 633 ms. thread 466
connection Execution time was 634 ms. thread 470
connection Execution time was 634 ms. thread 469
connection Execution time was 636 ms. thread 474
connection Execution time was 633 ms. thread 468
connection Execution time was 633 ms. thread 467
connection Execution time was 638 ms. thread 476
connection Execution time was 638 ms. thread 477
connection Execution time was 637 ms. thread 475
connection Execution time was 635 ms. thread 473
connection Execution time was 634 ms. thread 472
connection Execution time was 634 ms. thread 471
connection Execution time was 642 ms. thread 478
connection Execution time was 642 ms. thread 479
connection Execution time was 642 ms. thread 480
connection Execution time was 644 ms. thread 484
connection Execution time was 643 ms. thread 483
connection Execution time was 647 ms. thread 486
connection Execution time was 647 ms. thread 487
connection Execution time was 643 ms. thread 482
connection Execution time was 643 ms. thread 481
connection Execution time was 645 ms. thread 485
connection Execution time was 652 ms. thread 488
connection Execution time was 653 ms. thread 489
connection Execution time was 656 ms. thread 490
connection Execution time was 657 ms. thread 491
connection Execution time was 663 ms. thread 492
connection Execution time was 665 ms. thread 493
connection Execution time was 666 ms. thread 494
connection Execution time was 666 ms. thread 496
connection Execution time was 666 ms. thread 495
connection Execution time was 666 ms. thread 497
connection Execution time was 685 ms. thread 498
connection Execution time was 685 ms. thread 499