<?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 core files configuration in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074795#M308201</link>
    <description>Hi all!&lt;BR /&gt;I need to configure core-files,generated by 1 of my applications,in order to copy many cores /they overwrite each other by now/ and to investigate it.&lt;BR /&gt;&lt;BR /&gt;1) Make a convention name to the core files such as: &lt;BR /&gt;process_name.process_id&lt;BR /&gt;The new core format for the user "user1":&lt;BR /&gt;&lt;BR /&gt;core.process_name.process_id&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;core.user1.17441&lt;BR /&gt;&lt;BR /&gt;2)Limit the core file to 1G.&lt;BR /&gt;&lt;BR /&gt;Whuch way I could do this. &lt;BR /&gt;Please help.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 24 Sep 2007 02:57:41 GMT</pubDate>
    <dc:creator>Stanimir</dc:creator>
    <dc:date>2007-09-24T02:57:41Z</dc:date>
    <item>
      <title>core files configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074795#M308201</link>
      <description>Hi all!&lt;BR /&gt;I need to configure core-files,generated by 1 of my applications,in order to copy many cores /they overwrite each other by now/ and to investigate it.&lt;BR /&gt;&lt;BR /&gt;1) Make a convention name to the core files such as: &lt;BR /&gt;process_name.process_id&lt;BR /&gt;The new core format for the user "user1":&lt;BR /&gt;&lt;BR /&gt;core.process_name.process_id&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;core.user1.17441&lt;BR /&gt;&lt;BR /&gt;2)Limit the core file to 1G.&lt;BR /&gt;&lt;BR /&gt;Whuch way I could do this. &lt;BR /&gt;Please help.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Sep 2007 02:57:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074795#M308201</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2007-09-24T02:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: core files configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074796#M308202</link>
      <description>If you are with 11v3 use coreadm - &lt;A href="http://docs.hp.com/en/B2355-60130/coreadm.1M.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60130/coreadm.1M.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Unfortunately its not available in v2.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Mon, 24 Sep 2007 03:09:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074796#M308202</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-09-24T03:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: core files configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074797#M308203</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;to evit disk full in / ihave created a link for core to /var/adm/crash&lt;BR /&gt;&lt;BR /&gt;perhaps for you, an solution is to create a link for each users&lt;BR /&gt;&lt;BR /&gt;No size limit are specified in my case.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;L-DERLYN</description>
      <pubDate>Mon, 24 Sep 2007 04:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074797#M308203</guid>
      <dc:creator>Ludovic Derlyn</dc:creator>
      <dc:date>2007-09-24T04:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: core files configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074798#M308204</link>
      <description>&amp;gt;2)Limit the core file to 1G.&lt;BR /&gt;&lt;BR /&gt;You can use: ulimit -c $((1024*1024*2))&lt;BR /&gt;&lt;BR /&gt;Note: limiting a core file makes it near useless if it is larger.  In IPF, the stack segments are dumped last and if they are missing you wouldn't get a stack trace.</description>
      <pubDate>Mon, 24 Sep 2007 05:07:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074798#M308204</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-09-24T05:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: core files configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074799#M308205</link>
      <description>&amp;gt; Make a convention name to the core files... &lt;BR /&gt; &lt;BR /&gt;Already available for 11.11, 11.23 and 11.31. As mentioned, 11.31 has coreadm, but for 11.11 and 11.23, there is a secret (well, not well documented) way to do this. The kernel parameter core_addpid will do exactly what you want, that is, every core file will have the PID added to the end of the filename. Here is how to do it:&lt;BR /&gt; &lt;BR /&gt;11.11&lt;BR /&gt;echo â  core_addpid/W 1â   | adb â  o â  w /stand/vmunix /dev/kmem&lt;BR /&gt; &lt;BR /&gt;11.23&lt;BR /&gt;echo â  core_addpid/W 1â   | adb â  k â  w /stand/vmunix /dev/kmem&lt;BR /&gt; &lt;BR /&gt;This is not settable in SAM (hence, secret, undocumented) but you can set the value with a start-script so it always exists for your system. (there is no core_addpid location prior to 11.11)&lt;BR /&gt; &lt;BR /&gt;And as mentioned, ulimit -C can limit the core file size. Lesser known are the -H and -S options to ulimit -c. By default, ulimit -c sets the maximum core file size. Once you lower it, it cannot be raised in the current environment. So, ulmit -c 1000 is the same as ulimit -Hc 1000 and ulimit -HC 2000 will fail because it cannot be raised. But use the -S option and now you can change the limit at any time during your session.&lt;BR /&gt; &lt;BR /&gt;A common technique is to use ulimit -Sc 0 in /etc/profile so that no one can create a core file unless they specifically increase the value. Then developers can set ulimit -Sc 1000000 (or whatever) in their .profile or just pick a core dump size for each test.</description>
      <pubDate>Mon, 24 Sep 2007 21:35:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074799#M308205</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-09-24T21:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: core files configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074800#M308206</link>
      <description>Sorry about the awful characters in the adb commands - here is how they are supposed to look:&lt;BR /&gt; &lt;BR /&gt;11.11&lt;BR /&gt;echo "core_addpid/W 1" | adb -o -w /stand/vmunix /dev/kmem&lt;BR /&gt; &lt;BR /&gt;11.23&lt;BR /&gt;echo "core_addpid/W 1" | adb -k -w /stand/vmunix /dev/kmem</description>
      <pubDate>Mon, 24 Sep 2007 21:41:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074800#M308206</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-09-24T21:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: core files configuration</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074801#M308207</link>
      <description>And a little addition: if the process is started as root and after that it switch his id to another (like apache) command is:&lt;BR /&gt;enable: &lt;BR /&gt;#echo 'dump_all/W0x1' | adb -w /stand/vmunix /dev/kmem&lt;BR /&gt;&lt;BR /&gt;disable:&lt;BR /&gt;#echo 'dump_all/W0x0' | adb -w /stand/vmunix /dev/kmem&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Tue, 25 Sep 2007 01:46:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-files-configuration/m-p/4074801#M308207</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-09-25T01:46:12Z</dc:date>
    </item>
  </channel>
</rss>

