xmlsh using the MarkLogic extension can be used for this.
http://www.xmlsh.org
http://www.xmlsh.org/ModuleMarkLogic
You can use the "invoke" function or "query" functions to invoke remote
methods or ad-hoc queries.
xmlsh runs entirely in one java VM. The "&" syntax spawns a background
thread.
This allows you to run as many threads pounding on the server as your
client system can handle.
the "wait -atmost n" command can keep these going in a loop.
example ... run 100 threads invoking "test.xqy" over and over until you
kill it all
=======================
import module ml=marklogic
while true ; do
ml:invoke -v test.xqy var1 "A Value" var2 "Another Value" &
wait -atmost 100
done
==========================
Of course it can get more complicated then this, but that would be the
boilerplate script for a load test.
----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
[email protected]
812-482-5224
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of helen chen
Sent: Thursday, May 27, 2010 8:41 AM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] any tool for load testing with
mrklogic?
I have a heavy function in Marklogic module, and I want to do a load
test. During load test, I want to pass different parameters to this
function, this way I can see during short time how Marklogic can handle
the large amount of data. I also want to set how many concurrent user
at the same time, and how long the test should run.
This test can be inside marklogic or through xcc java connection.
Does anyone know any tool for this?
Thanks, Helen
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general