Page tree
Skip to end of metadata
Go to start of metadata

This page is out of date and incorrect.

 

Hi, Leon

This email describes exact steps in Ubuntu 9.10 for moskito-central
demoed functionality in moskitodemo project

BTW I'm looking for a good place to put it into confluence ...

1) checkout moskitodemo project with URLhttp://svn.anotheria.net/opensource/moskito/trunk/moskitodemo

2) Building

imer@imerubu:~/projects/ano/moskito/moskitodemo$ ant jar
...
BUILD SUCCESSFUL
Total time: 5 seconds

3) prepare logs directory for moskito-central demos

imer@imerubu:~/projects/ano/moskito/moskitodemo$ mkdir logs

4) create XML storage root directory in advance (it is used by demo
apps)

imer@imerubu:~/projects/ano/moskito/moskitodemo$ mkdir
-p /home/imer/projects/ano/XML

5) run local test (it executes 10000 method calls that produce stats so
that the whole demo might take a few minutes to complete)

imer@imerubu:~/projects/ano/moskito/moskitodemo$ chmod 775 start-rmi.sh
imer@imerubu:~/projects/ano/moskito/moskitodemo$ ./start-rmi.sh
net.java.dev.moskito.central.demo.TestLocalClient > logs/local.log

6) run remote rmi server that produces stats and stores stat snapshots
to the moskito-central in /home/imer/projects/ano/XML folder

imer@imerubu:~/projects/ano/moskito/moskitodemo$ rmiregistry &
1 2437
imer@imerubu:~/projects/ano/moskito/moskitodemo$ ./start-rmi.sh
net.java.v.moskito.central.demo.generated.IDemoServer > logs/server.log
&
2 2481
imer@imerubu:~/projects/ano/moskito/moskitodemo$ log4j:WARN No appenders
could be found for logger
(net.anotheria.anoprise.metafactory.ConfigurableResolver).
log4j:WARN Please initialize the log4j system properly.

7) trigger remote calls via RMI remote demo app

imer@imerubu:~/projects/ano/moskito/moskitodemo$ ./start-rmi.sh
net.java.dev.moskito.central.demo.TestRemoteClient > logs/remote.log &
3 2508
imer@imerubu:~/projects/ano/moskito/moskitodemo$ log4j:WARN No appenders
could be found for logger
(net.anotheria.anoprise.metafactory.ConfigurableResolver).
log4j:WARN Please initialize the log4j system properly.

8) investigating logs

imer@imerubu:~/projects/ano/moskito/moskitodemo/logs$ ls -l
total 1372
rw-rr- 1 imer imer 1269564 2010-03-09 12:26 local.log
rw-rr- 1 imer imer 86852 2010-03-09 12:32 remote.log
rw-rr- 1 imer imer 39695 2010-03-09 12:32 server.log
imer@imerubu:~/projects/ano/moskito/moskitodemo/logs$ tail -n 5
local.log
Calling method w/ param: call #10000 ...
Echo method called w/ param: call #10000
The method call returned: The echo call succeed
Sent 10000 requests in 560433.560352
avg req dur: 56.04335603519999 ms.
imer@imerubu:~/projects/ano/moskito/moskitodemo/logs$ tail -n 5
server.log
Echo method called w/ param: call #996
Echo method called w/ param: call #997
Echo method called w/ param: call #998
Echo method called w/ param: call #999
Echo method called w/ param: call #1000
imer@imerubu:~/projects/ano/moskito/moskitodemo/logs$ tail -n 5
remote.log
The method call returned: The echo call succeed
Calling method w/ param: call #1000 ...
The method call returned: The echo call succeed
Sent 1000 requests in 58626.839077
avg req dur: 58.626839077 ms.

9) investigating the stored stats

imer@imerubu:~/projects/ano/XML/thishost.net/1m/JavaRuntimeFree/2010_03_15/MemoryStats$ cat 2010_03_15T11_39_19_525.xml
<?xml version="1.0" encoding="UTF-8"?>
<stats host="thishost.net" interval="1m" producerId="JavaRuntimeFree" time="Mon Mar 15 11:39:19 EET 2010" timestamp="1268645959525"><Max>0</Max><Min>0</Min><Current>0</Current></stats>

Thank you,
--Igor

  • No labels