[zeromq-dev] Java on windows issue
Tamara Kustarova
kustarova at fastmq.com
Tue Jul 21 15:11:24 CEST 2009
Robin Weisberg napsal(a):
You can set the pgm maximum transmit/receive rate in file config.hpp
(libzmq/zmq/config.hpp).
The default setting there was 10Mb/s, so the results you got were quite
reasonable.
You can set it up to 1Gb/s.
Tamara
> Thanks tamara, I guess I was confused because the thr tests have the
> reverse start order.
>
> I have had some success running the PGM from java on windows, although
> the throughput for pgm is very low for both the c++ --> java and the
> out of the box c++ to c++ tests I've run (around 9Mb/s). The java
> j_local_thr test yields 108Mb/s using the same 2 machines.
>
> Are there any particular tunables I should know about? Is this to be
> expected on windows? I don't see any significant cpu/network usage.
>
> Thanks!
> Robin
>
> Some output:
> The PGM version
> S:\Software\zmq-1.0.0\perf>pgm_remote_thr.exe wimp
> "192.168.0.200;226.0.0.1:7500 <http://226.0.0.1:7500>" 100 100000
> iface to connect to local_exchange: 192.168.0.200;226.0.0.1:7500
> <http://226.0.0.1:7500>
> message size: 100 [B]
> message count: 100000
> Your average throughput is 11830 [msg/s]
> Your average throughput is 9 [Mb/s]
>
> The other command line I'm using for the pgm_local_thr
> C:\zmq-1.0.0\perf>pgm_local_thr wimp "192.168.0.195;226.0.0.1:7500
> <http://226.0.0.1:7500>" 100 100000
> local_exchange network: zmq.pgm://192.168.0.195
> <http://192.168.0.195>;226.0.0.1:7500 <http://226.0.0.1:7500>
> message size: 100 [B]
> message count: 100000
> Start pgm_remote_thr on remote host and pres enter to continue.
>
> Pres enter when pgm_remote_thr exits.
>
>
>
> The non PGM version in java is much faster
> C:\zmq-1.0.0\perf>java -Djava.library.path=c:\zmq-1.0.0\java
> -classpath c:\zmq-1.0.0\java;.\ j_local_thr localhost 192.168.0.195
> 100 100000
> message size: 100 [B]
> message count: 100000
> Your average throughput is 136239[msg/s]
> Your average throughput is 108[Mb/s]
>
> On Tue, Jul 21, 2009 at 3:23 AM, Tamara Kustarova
> <kustarova at fastmq.com <mailto:kustarova at fastmq.com>> wrote:
>
> Hi Robin,
>
> you should run the latency tests in the following order:
> 1. zmq_server
> 2. j_remote_lat
> 3. j_local_lat
>
> About the java pgm - we haven't tried it, but there is no reason
> why it shouldn't work.
> We don't have any examples showing it, but we may create some
> later on.
> You can have a look at the pgm throughput tests, that use simple
> pgm scenario.
> If you come to any problems, just ask.
>
> Tamara
>
> Robin Weisberg napsal(a):
>
> Hi folks, I'm trying to evaluate zmq to see if it will work
> for a trading system we are building out. We would be using
> linux servers w/ c/c++ and java gui running on windows. We
> would want to use pgm primarily.
>
> First a question, I know you have pgm support for c/c++ on
> windows, I see the pgm_local_thr.exe example. Any reason pgm
> wouldn't work for Java on windows? I dont' see a specific
> example of it, so just asking before I jump in.
>
> Regarding the issue, right now I'm trying to run a basic java
> example on windows and it seems to instantly crash
>
> C:\zmq-1.0.0\perf>echo %PATH%
> C:\Program Files\Java\jdk1.6.0_14\bin;C:\
> WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
> Files\Intel\DMIXc:\cygwin\bin;C:\Program Files\MySQL\MySQL
> Server 5.1\bin;c:\zmq-1.0.0\bin
>
> C:\zmq-1.0.0\perf>java -version
> java version "1.6.0_14"
> Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
> Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
>
> C:\zmq-1.0.0\perf>java -Djava.library.path=c:\zmq-1.0.0\java
> -classpath c:\zmq-1.0.0\java;.\ j_local_lat localhost 1 10
> message size: 1 [B]
> roundtrip count: 10
>
> At this point I get the windows popup saying your program has
> crashed. I'm able to get the c/c++ versions
> local_thr/pgm_local_thr and their remote counterparts to work
> on the same machines and I can get the j_local_thr and its
> remote counterpart to work too. This seems to be specific to
> java and the latency test.
>
> Below is some info on the error although I'm you will want
> something more. I'm running Windows XP SP3 and I've installed
> the microsoft message queue stuff to support pgm (although
> thats not what I'm testing here)
>
> Thanks!
> Robin
>
>
> This is from the windows error message:
> AppName: java.exe AppVer: 6.0.140.8 ModName: msvcr90.dll
> ModVer: 9.0.21022.8 Offset: 000731cf
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org <mailto:zeromq-dev at lists.zeromq.org>
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
>
>
More information about the zeromq-dev
mailing list