[zeromq-dev] epgm memory leak - need hepl

Alexander Zhitlenok AZhitlenok at geneva-trading.com
Sat Jun 15 00:07:28 CEST 2013


Hello,
My name is Alex Zhitlenok.
We are using ZeroMq in a custom C# Application on Windows.
We use the multicast/epgm protocol.
When we run our application the memory consistently grows and sometimes the app crashes due to an Out of Memory Exception.
To try and detect what causes the problem, we've created a very simple test (just a few lines to avoid GC influence, etc.)
Even when we run this simple test program, the memory continues to grow (at a slow and linear rate, but continues to grow regardless)
To avoid "no listeners" problem in the test we run mdump.exe as a fake-client listening to the multicast port.
What are we doing wrong?

We use

ZeroMQ 3.2.3

OpenPGM 5.2.122 (http://code.google.com/p/openpgm/)

Clrzmq build for 3.2.3 (https://github.com/zeromq/clrzmq)

Mdump (https://community.informatica.com/solutions/informatica_mtools)



Software\Hardware:

Win7 Professional\64 bit

10g network



Here is the test code (the real addresses are substituted with XYZ):


        static void Main(string[] args)
        {
            ZmqContext context = ZmqContext.Create();
            ZmqSocket soc = context.CreateSocket(ZeroMQ.SocketType.PUB);

            soc.MulticastHops = 16;
            soc.MulticastRate = 100000;
            //soc.SendBufferSize = 1000000;
            soc.SendHighWatermark = 100;

            soc.Bind("epgm://192.168.XYZ.XYZ;239.10.10.10:PORT");

            byte[] test = new byte[1000];
            test[1] = (byte)('X');

            for (int i = 0; ; ++i)
            {
                test[0] = (byte) ('0' + (i%10));
                SendStatus ss = soc.Send(test);
                if( ss != SendStatus.Sent )
                    System.Diagnostics.Debug.WriteLine(String.Format("Status:{0}", ss));
                Thread.Sleep(100);
            }
        }



Thank you,

Alex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130614/6e4f6d13/attachment.htm>


More information about the zeromq-dev mailing list