Benchmarking Number of Connections
BenchmarkNConnectons.jar program from InterSCity-onibus
For this example, we are considering that all extra files are stored at the host machine in /home/meslin/Desktop/MUSANet/.
Create the jstatd.all.policy file in /home/meslin/Desktop/MUSANet/ with the following content:
Open a terminal and run a MUSANet image to instantiate a ContextNet slice with one Gateway. The -p and --privileged options are optional.
Open another terminal and ssh to the slice. Please, note its IP address underlined above. Use musanet:musanet as credentials to login and switch to root using musanet as password. Goto root home directory and copy the jstatd.all.policy from host to the slice. Enable external monitoring using jstatd as shown below:
Open n terminals. The following instruction must be applied to all terminals. Run a generic Ubuntu Docker image in all of them:
Update, upgrade and install Java JDK 8 (ContextNet is compatible only with version 8).
Run the benchmark:
To monitor the MUSANet, run jvisualvm:
Right click Remote in jvisualvm Application tab and click Add Remote Host..., then, in Add Remote Host dialog, use the slice IP address as Host name: and add a custom Display name: (you must select the checkbox at left). The contextnet-2.7.jar application should appear under the selected display name. Right click the contextnet-2.7.jar and click Open.