I'm exercising with OpenDDS
to understand its behavior. I have a VMware workstation with Ubuntu 16.04.1 (8GB RAM and 30GB hard disk). I would like to run OpenDDS examples OpenDDS-3.11/examples/DCPS/IntroductionToOpenDDS
as described in AAA_README.txt
, but with many instances of publisher and subscriber
.
So I have created a simple script for publisher and subscriber
which would start the process every few seconds as below,
pub.sh
for value in {1..250} ; do
./publisher -DCPSConfigFile dds_tcp_conf.ini &
sleep 30
done
sub.sh
for value in {1..150} ; do
./subscriber -DCPSConfigFile dds_tcp_conf.ini &
sleep 30
done
Here the publisher
publishes two topics. I first started the DCPSInfoRepo
followed by sub.sh and pub.sh
respectively. But what I observed was that the xorg
or compiz
runs out of memory after the 50th instances of either publisher
or subscriber
is started.
I even tried with RTPS
but observed the same.
Can someone help me to understand why it's eating up a lot of memory while running many instances?