The section is here: http://zguide.zeromq.org/page:all#Testing-and-Simulation
It's based on load-testing Zyre but I think applies fairly generally. -Pieter On Wed, Jun 19, 2013 at 1:09 PM, Michael Scofield <[email protected]> wrote: > thx! haven't read the chapter 8 yet, i'll do my homework. > > On Jun 19, 2013 3:04 PM, "Pieter Hintjens" <[email protected]> wrote: >> >> Hi Michael, >> >> There's a discussion on this in Chapter 8 of the Guide. It's not easy >> because one machine will tend to run out of memory before it hits any >> other limit. >> >> My advice is: first off, use Linux, and secondly, raise the >> per-process limits. Then, instead of running many instances of real >> clients, you can create test clients that send large volumes of >> messages, for example. If your messaging is properly wrapped as an API >> you can build test clients more easily. >> >> For any larger scale testing you will want multiple machines. >> >> -Pieter >> >> >> >> On Wed, Jun 19, 2013 at 5:44 AM, Michael Scofield <[email protected]> >> wrote: >> > Say I have a router socket on a server. The server can reply to its >> > clients through the router socket. Each client is using a dealer socket >> > to >> > connect to the server.(Yes, this is an online-game architecture.) >> > >> > Now I want to do a load/stress test on this server. >> > >> > So I created lots of client in my pc. Each client is represented as a >> > thread, and has its own zmq context and a dealer socket that connect to >> > the >> > router socket on the server. Everything works fine when the amounts of >> > clients are below 100. However, when I try to create lots more >> > clients(>500), it just quickly ran out of memory when creating the >> > clients(threads). >> > >> > I googled the solution but found none. >> > >> > Best regards. >> > >> > _______________________________________________ >> > zeromq-dev mailing list >> > [email protected] >> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev >> > >> _______________________________________________ >> zeromq-dev mailing list >> [email protected] >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
