<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: The crash.log in the splunk forwarder has reflected Segmentation fault on starting up the process. How to resolve this configuration? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/The-crash-log-in-the-splunk-forwarder-has-reflected-Segmentation/m-p/275090#M52770</link>
    <description>&lt;P&gt;The AIX defaults are typically are not very generous on max file size (fsize) and resident memory size (rss).raise these limits for the user running splunk.&lt;/P&gt;

&lt;P&gt;The Data Segment Size (ulimit -d) needs to be at least 1 GB (1073741824 bytes)&lt;/P&gt;

&lt;P&gt;The Resident Memory Size (ulimit -m) needs to be at least :&lt;BR /&gt;
512MB (536870912 bytes) for a Universal Forwarder&lt;BR /&gt;
1 GB (1073741824 bytes) for a Indexer&lt;/P&gt;

&lt;P&gt;Max No Of Open Files (ulimit -n) should be increased to at least 8192&lt;/P&gt;

&lt;P&gt;File Size Limit (ulimit -f) should be set to unlimited (-1)&lt;/P&gt;

&lt;P&gt;If these are not set high enough you will see errors in splunkd.log:&lt;BR /&gt;
03-11-2015 09:34:42.631 +0100 INFO ulimit - Limit: virtual address space size: unlimited&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: data segment size: 134217728 bytes [hard maximum: unlimited] &lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 WARN ulimit - Splunk may not work due to small data segment limit!  &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: resident memory size: 33554432 bytes [hard maximum: &lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 WARN ulimit - Splunk may not work due to small resident memory size limit! &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: stack size: 33554432 bytes [hard maximum: 4294967296 bytes]&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: core file size: 0 bytes&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 WARN ulimit - Core file generation disabled&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: data file size: unlimited&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: open files: 4096 files [hard maximum: unlimited]   &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: cpu time: unlimited&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: data file size: 1073741312 bytes&lt;BR /&gt;
03-11-2015 09:48:42.632 +0100 WARN ulimit - Splunk may not work due to low file size limit  &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;

&lt;P&gt;These  values are set in /etc/security/limits on AIX on a per user basis&lt;BR /&gt;
These values need to defined as 512 byte blocks &lt;BR /&gt;
eg&lt;BR /&gt;
rss = 1048576              this is 536870912 bytes or 512 mB&lt;BR /&gt;
data = 2097152            this is 1073741824 bytes or 1gB&lt;BR /&gt;
fsize = -1                      this is unlimited&lt;/P&gt;

&lt;P&gt;This can also be set with smit (smitty chuser)&lt;BR /&gt;
Be careful to use &lt;BR /&gt;
Soft DATA segment&lt;BR /&gt;
Soft RSS size &lt;/P&gt;

&lt;P&gt;Again these values are in 512 byte blocks HOWEVER ulimit reports these in kB not 512b Blocks&lt;/P&gt;

&lt;P&gt;A Worked Example&lt;BR /&gt;
1. Login as root&lt;BR /&gt;
2. # smitty chuser&lt;BR /&gt;
Change the values for&lt;BR /&gt;
Soft DATA segment [2097152]&lt;BR /&gt;
Soft RSS size [1048576]&lt;BR /&gt;
Soft NOFILE descriptors [8192]&lt;BR /&gt;
Soft FILE size [-1]&lt;BR /&gt;
Save and commit changes.&lt;BR /&gt;
This basically just edits /etc/security/lmits:&lt;/P&gt;

&lt;P&gt;Please be aware that need need to change the ulimit for the user that Splunkd runs under&lt;BR /&gt;
Do not be tempted to change values to unlimited &lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2017 14:19:45 GMT</pubDate>
    <dc:creator>dshakespeare_sp</dc:creator>
    <dc:date>2017-10-19T14:19:45Z</dc:date>
    <item>
      <title>The crash.log in the splunk forwarder has reflected Segmentation fault on starting up the process. How to resolve this configuration?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/The-crash-log-in-the-splunk-forwarder-has-reflected-Segmentation/m-p/275089#M52769</link>
      <description>&lt;P&gt;The splunk forwarder has been crash with segmentation fault when start the process in the AIX environment.&lt;/P&gt;

&lt;P&gt;It also stated that &lt;BR /&gt;
"Splunk may not work due to small resident memory size limit!"&lt;/P&gt;

&lt;P&gt;The following is the return for the ulimit -a in the AIX environment.&lt;BR /&gt;
time(seconds)        unlimited&lt;BR /&gt;
file(blocks)         unlimited&lt;BR /&gt;
data(kbytes)         131072&lt;BR /&gt;
stack(kbytes)        32768&lt;BR /&gt;
memory(kbytes)       32768&lt;BR /&gt;
coredump(blocks)     unlimited&lt;BR /&gt;
nofiles(descriptors) 2000&lt;BR /&gt;
threads(per process) unlimited&lt;BR /&gt;
processes(per user)  unlimited&lt;/P&gt;

&lt;P&gt;Please advise which configuration should be change to fix the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 02:37:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/The-crash-log-in-the-splunk-forwarder-has-reflected-Segmentation/m-p/275089#M52769</guid>
      <dc:creator>terenceyhleung</dc:creator>
      <dc:date>2017-02-03T02:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: The crash.log in the splunk forwarder has reflected Segmentation fault on starting up the process. How to resolve this configuration?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/The-crash-log-in-the-splunk-forwarder-has-reflected-Segmentation/m-p/275090#M52770</link>
      <description>&lt;P&gt;The AIX defaults are typically are not very generous on max file size (fsize) and resident memory size (rss).raise these limits for the user running splunk.&lt;/P&gt;

&lt;P&gt;The Data Segment Size (ulimit -d) needs to be at least 1 GB (1073741824 bytes)&lt;/P&gt;

&lt;P&gt;The Resident Memory Size (ulimit -m) needs to be at least :&lt;BR /&gt;
512MB (536870912 bytes) for a Universal Forwarder&lt;BR /&gt;
1 GB (1073741824 bytes) for a Indexer&lt;/P&gt;

&lt;P&gt;Max No Of Open Files (ulimit -n) should be increased to at least 8192&lt;/P&gt;

&lt;P&gt;File Size Limit (ulimit -f) should be set to unlimited (-1)&lt;/P&gt;

&lt;P&gt;If these are not set high enough you will see errors in splunkd.log:&lt;BR /&gt;
03-11-2015 09:34:42.631 +0100 INFO ulimit - Limit: virtual address space size: unlimited&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: data segment size: 134217728 bytes [hard maximum: unlimited] &lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 WARN ulimit - Splunk may not work due to small data segment limit!  &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: resident memory size: 33554432 bytes [hard maximum: &lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 WARN ulimit - Splunk may not work due to small resident memory size limit! &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: stack size: 33554432 bytes [hard maximum: 4294967296 bytes]&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: core file size: 0 bytes&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 WARN ulimit - Core file generation disabled&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: data file size: unlimited&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: open files: 4096 files [hard maximum: unlimited]   &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: cpu time: unlimited&lt;BR /&gt;
03-11-2015 09:34:42.632 +0100 INFO ulimit - Limit: data file size: 1073741312 bytes&lt;BR /&gt;
03-11-2015 09:48:42.632 +0100 WARN ulimit - Splunk may not work due to low file size limit  &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;

&lt;P&gt;These  values are set in /etc/security/limits on AIX on a per user basis&lt;BR /&gt;
These values need to defined as 512 byte blocks &lt;BR /&gt;
eg&lt;BR /&gt;
rss = 1048576              this is 536870912 bytes or 512 mB&lt;BR /&gt;
data = 2097152            this is 1073741824 bytes or 1gB&lt;BR /&gt;
fsize = -1                      this is unlimited&lt;/P&gt;

&lt;P&gt;This can also be set with smit (smitty chuser)&lt;BR /&gt;
Be careful to use &lt;BR /&gt;
Soft DATA segment&lt;BR /&gt;
Soft RSS size &lt;/P&gt;

&lt;P&gt;Again these values are in 512 byte blocks HOWEVER ulimit reports these in kB not 512b Blocks&lt;/P&gt;

&lt;P&gt;A Worked Example&lt;BR /&gt;
1. Login as root&lt;BR /&gt;
2. # smitty chuser&lt;BR /&gt;
Change the values for&lt;BR /&gt;
Soft DATA segment [2097152]&lt;BR /&gt;
Soft RSS size [1048576]&lt;BR /&gt;
Soft NOFILE descriptors [8192]&lt;BR /&gt;
Soft FILE size [-1]&lt;BR /&gt;
Save and commit changes.&lt;BR /&gt;
This basically just edits /etc/security/lmits:&lt;/P&gt;

&lt;P&gt;Please be aware that need need to change the ulimit for the user that Splunkd runs under&lt;BR /&gt;
Do not be tempted to change values to unlimited &lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:19:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/The-crash-log-in-the-splunk-forwarder-has-reflected-Segmentation/m-p/275090#M52770</guid>
      <dc:creator>dshakespeare_sp</dc:creator>
      <dc:date>2017-10-19T14:19:45Z</dc:date>
    </item>
  </channel>
</rss>

