Anyone else experienced the same problem. Would really appreciate your help.

Manoj


On 4 December 2015 at 12:21, Manoj Kumar <[email protected]> wrote:

> Hi David,
> I checked and both instances of client have same parent process with pid
> 3933. I was doing load testing with large bursts of log messages (100MB in
> a minute) and then I noticed this behavior. Before using
> forcesingleinstance, rsyslog was spawning 4-5 instances of client to keep
> up with load.
>
> ubuntu@ip-10-35-157-45:~$ pstree -s -p 5600
> init(1)���������rsyslogd(3933)���������client.py(5600)
> ubuntu@ip-10-35-157-45:~$ pstree -s -p 5605
> init(1)���������rsyslogd(3933)���������client.py(5605)
>
>
> Manoj
>
>
> On 4 December 2015 at 11:50, David Lang <[email protected]> wrote:
>
>> On Fri, 4 Dec 2015, Manoj Kumar wrote:
>>
>> Hi,
>>> I am using Rsyslog v 8.14.0 with an external module written in Python and
>>> integrated via omprog. I want rsyslog to spawn only single instance of
>>> external module and therefore use forcesingleinstance configuration. The
>>> behavior I see is that
>>>
>>>   - rsyslog spawns a process for client.py, then this process becomes
>>>   inactive and rsyslog spawns another process. And the old one keeps
>>>   lingering.
>>>   - I do not want a lingering inactive process as it is consuming extra
>>>   memory.
>>>
>>> How can I get rid of inactive lingering process. Thank you for your help.
>>>
>>> local1.* action(type="omprog" binary="/home/ubuntu/client.py"
>>> queue.filename="elmo" queue.type="linkedlist" forcesingleinstance="on")
>>>
>>>
>>> e.g. top output
>>>
>>>  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+
>>> COMMAND
>>>
>>>
>>> 5605 syslog    20   0   78.3m  25.6m   4.5m S   0.0  0.3   0:15.66
>>> /usr/bin/python /home/ubuntu/client.py
>>>
>>> 5600 syslog    20   0   75.4m  22.7m   4.5m S   0.0  0.3   0:10.34
>>> /usr/bin/python /home/ubuntu/client.py
>>>
>>
>> hmm, I only see one instance of things running on my systems (and I don't
>> do the forcesingleinstance), if you do ps -ef |grep client.py does it show
>> that they are both children of the same process? or are they children of
>> different processes?
>>
>> David Lang
>>
>> _______________________________________________
>> rsyslog mailing list
>> http://lists.adiscon.net/mailman/listinfo/rsyslog
>> http://www.rsyslog.com/professional-services/
>> What's up with rsyslog? Follow https://twitter.com/rgerhards
>> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
>> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
>> DON'T LIKE THAT.
>>
>
>
>
> --
> ~Manoj
>



-- 
~Manoj
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to