From freedesktop-dbus Tue Aug 15 01:08:18 2023 From: Thiago Macieira Date: Tue, 15 Aug 2023 01:08:18 +0000 To: freedesktop-dbus Subject: Re: Dbus application consumes full cache memory , during Tx and Rx of message using Dbus API- Memory Message-Id: <21981376.EfDdHjke4D () tjmaciei-mobl5> X-MARC-Message: https://marc.info/?l=freedesktop-dbus&m=169206159206911 On Monday, 14 August 2023 03:46:25 PDT deepak jewargi wrote: > I have implemented a dbus application using dbus-1 API's on the linux > platform. > > Facing issues ,when we run continuously in a loop. dbsu Tx (public)and > dbus Rx (subscribe) runs out of cache memory and both Tx and Rx getting > terminated attached source and header files, Which process is leaking memory? There are three processes involved here: sender, receiver, and the bus daemon as the intermediary. Your screenshot of top shows two processes of yours at 50 MB of RSS and the daemon at a mere 7.5 MB. So what is consuming CPU? Have you run your code through a memory debugger to see if it is leaking? Also, if you're consuming 100% CPU or more sending and receiving via D-Bus, you've got a design problem. -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel DCAI Cloud Engineering