Linuxでのcoreの出力設定方法を教えてください。

Interstage Application Serverの技術情報はこちら

Linuxでのcoreの出力設定方法を教えてください。
Linuxでは、ハード/OSの出荷時、またはOSのUpdate適用により、デフォルトでcoreの出力が設定されていない場合があります。
coreは、トラブル発生時の開発元調査で必要な資料となりますので、以下を実施して、coreが出力されるようにしてください。

■ core出力設定方法
  1. isstartコマンドでInterstageを起動させる場合(Enterprise Edition、Standard Edition、Standard-J Edition、Plus、Web-J Edition(V8)、およびWeb Serverが対象)
    sh(bash)で"ulimit -c unlimited"コマンド実行後、Interstageを起動させます。ワークユニット起動ユーザがInterstage起動ユーザと違う場合は、ワークユニット起動前に"ulimit -c unlimited"コマンドを実行してから、ワークユニットを起動させます。

  2. RCプロシジャでOS起動時に自動的にInterstageが起動するように設定されている場合
    以下の方法を実施することにより、OS再起動後にcoreが出力されるようになります。

a. /etc/init.d/functionsファイルに、

# make sure it doesn't core dump anywhere; while this could mask
# problems with the daemon, it also closes some security problems
ulimit -S -c 0 >/dev/null 2>&1
 または、
ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0} >/dev/null 2>1

と記述されていますので、上記の設定で"0"を"unlimited"に変更してください。

ulimit -S -c unlimited >/dev/null 2>&1


b. Web-J Edition(V7以前)の場合は、/etc/rc2.d/S99starttdに、Enterprise Edition、Standard Edition、Standard-J Edition、Plus、Web-J Edition(V8)、およびWeb Serverの場合は、/etc/rc2.d/S99startisに、以下の(注)の記述を追加してください。

例: S99starttdの場合

#!/bin/sh
# Interstage Application Server
# S99starttd : Interstage Application Server start procedure
OD_HOME=/opt/FJSVod
export OD_HOME
ulimit -c unlimited (注)
/opt/FJSVod/bin/odalive > /dev/null
while [ "$?" != "0" ]
do
 sleep 1
 /opt/FJSVod/bin/odalive > /dev/null
done
/opt/FJSVtd/bin/tdstart

製品・サービス区分 Interstage
製品・サービス情報
対象製品 Interstage Application Server
バージョン V9, V8, V7, V6
プラットフォーム Linux
アンサー種別 運用/保守