Thanks for the tips. I was really looking for something like that deb
option a month ago.

Ciprian
--
Performance Monitoring * Log Analytics * Search Analytics
Solr & Elasticsearch Support * http://sematext.com/

On Thu, Oct 22, 2015 at 3:21 AM, David Lang <[email protected]> wrote:

> also, to make the core dumps more useful, when compiling
>
> export DEB_BUILD_OPTIONS=nostrip
>
> David Lang
>
> On Wed, 21 Oct 2015, David Lang wrote:
>
> ubuntu 14.04 uses upstart as it's init system and upstart does
>> 'interesting' things to the ulimits, making it very hard to override them
>> to enable coredumps or allow more than 1024 files
>>
>> It turns out that you have to add an entry to /etc/init/rsyslog.conf (not
>> to be confused with the script in /etc/init.d/rsyslog)
>>
>> prior to the pre-start section, add a line like the following to enable
>> coredumps
>>
>> limit core unlimited unlimited
>>
>> to increase the filehandles
>>
>> limit nofile 10000 10000
>>
>> the first value is the soft limit, the second the hard limit
>>
>> if enabling core dumps, you may want to force them to be written
>> somewhere other than /
>>
>> add a line like the following to /etc/sysctl.conf
>>
>> kernel.core_pattern = /var/log/core-%s-%p-%e
>>
>>
>> %p: pid
>> %%: output one '%'
>> %u: uid
>> %g: gid
>> %s: signal number
>> %t: UNIX time of dump
>> %h: hostname
>> %e: executable filename
>>
> _______________________________________________
> 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.
>
_______________________________________________
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