2nd post: Server crash on runjava creating nsd-file

Hi :-)I’ve downloaded the latest Dominoserver and installed it on my existing Suse 8.2 (kernel 2.45.20, libgcc-3.3-23, java2-jre-1.4.1-23).

It crashes 5-6 times a day, everytime with the same nsd-file error. Analyzing the NSD-file I found out this thread that is the first with a “fatal error”:

prog: /opt/lotus/notes/latest/linux/runjava pid(s) : 983

======== Attaching to /opt/lotus/notes/latest/linux/runjava 983

crawl: Input/output error

Error tracing through thread 1337

----- Thread 1338 -----

0x421c9166: __GI_nanosleep + 0x46 (1, 41f9a2f8, be3c752c, be3c7984, be3c6f98, be3c73ec) + 558

0x40637ac7: OSRunExternalScript + 0x207 (be3c752c, be3c752c, 0, 41f9a2f8, be3c7984, be3c7984) + 34c

0x4063643f: OSFaultCleanup + 0x1d3 (0, 0, 0, b, 47a24c1c, be3c7c90) + 20c

0x406171a9: fatal_error + 0x12d (b, be3c7c90, be3c7d24, be3c7d24, be3c7c90, b)

0x45199bc4: panicSignalHandler + 0xec (b, be3c7c90, be3c7d24, b, be3c7c90, be3c7d24) + c

0x45199c38: panicSignalCatchHandler + 0x24 (b, be3c7c90, be3c7d24, b, 0, 0) + d4

0x45160c5d: ExceptionHandlerStub + 0x199 (b, be3c7c90, be3c7d24, 47a24e48, be3c7d24, b)

0x451e9e6c: userSignalHandler + 0x68 (b, be3c7c90, be3c7d24, 45160ac4, 47a24e48, be3c7d24) + 28

0x451e9df9: intrDispatch + 0xc9 (b, be3c7c90, be3c7d24, 47a24e48, 40022bd0, be3ffbe0) + 10

0x451ea05c: intrDispatchMD + 0x60 (b, be3c7c90, be3c7d10, 46dfc918, 47b46268, 47b45dec)

0x4002093b: __pthread_sighandler_rt + 0x6b (b, be3c7c90, be3c7d10, b, 0, 1) + 37990

0x421415c0: __GI___libc_sigaction + 0x140 (47a24c1c, be3ff6b8, 3f1, 47a24c1c, 0, 47a1b99c) + 4

0x4518d628: mmipSysInvokeJni + 0x98 (47a24c1c, 46d24bcc, be3ff6b8, 456b345c, 2, 0) + 18

0x4518d1a7: mmisInvokeJniMethodHelper + 0x193 (10051ff0, 47a1b99c, 2, 47a24c1c, be3ff6b8, 47a1b99c) + 48

0x4518dc63: mmipInvokeJniMethod + 0x30 (46bc4718, 43, 10051ff0, 10051ff0, be3ff708, 47a24c1c) + 2c

0x45167377: L0_invokeinterface_quick__ + 0xb6 (47a24c1c, 47a24c1c, 47a25eaa, be3ff7dc, be3ff76c, 450d9f93) + 58

0x45167210: L0_invokestatic_quick__ + 0x57 (426bbaa4, 41f9a2f8, 10051ff0, 0, 10051fb0, 10052038) + 40

0x45167210: L0_invokestatic_quick__ + 0x57 (a0000, 1, be3ff860, 4516f4f4, 47a24c1c, 10053ce0) + 6c

0x45166ff0: L0_invokenonvirtual_quick__ + 0x5e (47a24c1c, 1, 0, 0, 8176438, 81766d1) + 54

0x45166fe5: L0_invokenonvirtual_quick__ + 0x53 (45173635, 47a24c1c, 817991c, 47a2e5e0, f2, 1) + 48

0x45166ed8: L0_invokevirtual_quick__ + 0x53 (be3ff9a4, 4515f6e3, 45161573, 10053ce0, 45161d52, 47a24c1c) + 2c

0x45161573: mmipExecuteJava + 0x205 (be3ffab0, be3ffa34, be3c0000, 0, be3ff6d0, 825eafc) + 206dc507

0xbe3ffa0c: _fini + 0x76a47acc

THESE ARE THE LAST LINES OF THE LOG:

06.23.2005 08:32:05 Router: Unable to deliver message 0023E5A9, 0023E352 to ISpy on Aktidomino1

06.23.2005 08:32:05 User ISpy on Aktidomino1 not listed in Domino Directory

stackpointer=0xbe3c7a88

Stack base = 0xbe3fee18, Stack size = 226768 bytes

Fatal Error signal = 0x0000000b PID/TID = 983/180236

6/23/2005 8:35:0 Running NSD

NSD is in progress …

6/23/2005 8:40:14 Termination is in progress

6/23/2005 8:40:14 Terminating tasks

6/23/2005 8:40:16 Freeing resources

6/23/2005 8:40:16 Termination completed

THESE ARE THE RUNNING TASKS (NSD-FILE):

mdserver ? . 654 1 [su]

mdserver R … 664 654 -su -c LD_PRELOAD=/lib/libpthread.so.0:/lib/librt.so.1;export LD_PRELOAD;/opt/lotus/bin/server -jc

mdserver R … 796 677 /opt/lotus/notes/latest/linux/jvm/bin/exe/java -Xoss5M -Djava.compiler=NONE -cp /opt/lotus/notes/latest/linux/dconsole.jar lotus.domino.console.DominoController -jc

mdserver R … 495 494 /opt/lotus/notes/latest/linux/server -j

mdserver R … 1023 921 /opt/lotus/notes/latest/linux/smtp

mdserver R … 995 921 /opt/lotus/notes/latest/linux/stats

mdserver R … 994 921 /opt/lotus/notes/latest/linux/rdebug

mdserver R … 992 921 /opt/lotus/notes/latest/linux/ldap

mdserver R … 983 921 /opt/lotus/notes/latest/linux/runjava ISpy

mdserver R … 965 921 /opt/lotus/notes/latest/linux/sched

mdserver R … 964 921 /opt/lotus/notes/latest/linux/calconn

mdserver R … 963 921 /opt/lotus/notes/latest/linux/adminp

mdserver R … 959 921 /opt/lotus/notes/latest/linux/amgr

mdserver R … 1071 959 /opt/lotus/notes/latest/linux/amgr -e 1

mdserver R … 958 921 /opt/lotus/notes/latest/linux/router

mdserver R … 1041 958 /opt/lotus/notes/latest/linux/mtc

mdserver R … 957 921 /opt/lotus/notes/latest/linux/replica

mdserver R … 956 921 /opt/lotus/notes/latest/linux/update

mdserver R … 862 495 /opt/lotus/notes/latest/linux/event

Subject: 2nd post: Server crash on runjava creating nsd-file

Henrik,

Lotus Domino comes bundled with IBM’s JRE and has specific requirements regarding Java libraries. Either remove the Sun Java package or adjust the notes user’s PATH variable to exclude Sun Java’s libraries and binaries.

su - notes -c “java -version”

java version “1.3.1”

Java™ 2 Runtime Environment, Standard Edition (build 1.3.1)

Classic VM (build 1.3.1, J2RE 1.3.1 IBM build cxia32131-20031021 (JIT enabled: jitc))

HTH,

Uli

Subject: RE: 2nd post: Server crash on runjava creating nsd-file

Hi :-)This is what I got out of your command (after deinstalling the sun-java…):

domino:~ # su - mdserver -c “java -version”

java version “1.3.1”

Java™ 2 Runtime Environment, Standard Edition (build 1.3.1)

Classic VM (build 1.3.1, J2RE 1.3.1 IBM build cxia32131-20031021 (JIT enabled: jitc))

The crashes still continue…

Regards,

Henrik

Subject: RE: 2nd post: Server crash on runjava creating nsd-file

Henrik,

  1. Does your start-stop script specify “LD_PRELOAD=…” and if so why? Did you apply the performance tweaks outlined in the “Domino 6 for Linux” Redbook? Lotus Domino and IBM Java differ regarding thread library reqirements so this might be the culprit.

  2. Remove tasks in notes.ini you don’t actually need (e.g. rdebug, mtc and ISpy).

/etc/init.d/domino:


#! /bin/sh

Copyright (c) 1995-2000 SuSE GmbH Nuernberg, Germany.

Authors: Kurt Garloff feedback@suse.de

Ingo Boernig iboernig@suse.de

init.d/domino

and symbolic its link

/sbin/rcdomino

System startup script for the Lotus Domino Server

BEGIN INIT INFO

Provides: domino

Required-Start: $remote_fs $syslog $network

Required-Stop: $remote_fs $syslog

Default-Start: 3 5

Default-Stop: 0 1 2 6

Description: Start Domino Server

END INIT INFO

test -r /etc/sysconfig/domino && . /etc/sysconfig/domino || exit 6

test -x $DOMINO_BIN || exit 5

NOTES_SERVER=domino

OUTPUT_LOG=/var/log/notes/$NOTES_SERVER.log

INPUT_FILE=/var/log/notes/$NOTES_SERVER.input

Set higher values for shared memory and file handles in the kernel

echo $NOTES_MAXSHAREDMEM > /proc/sys/kernel/shmmax

echo “$NOTES_SHMMNI” > /proc/sys/kernel/shmmni

echo “$NOTES_SEM” > /proc/sys/kernel/sem

ULIMIT_MAX=1048576

FILE_MAX=$(expr $(cat /proc/sys/fs/file-max) - 1000)

if [ $FILE_MAX -gt $ULIMIT_MAX ]; then

echo "Setting ulimit to 1000000"

ulimit -n 1000000

else

ulimit -n $(expr $(cat /proc/sys/fs/file-max) - 1000) 

fi

ulimit -u $NOTES_USERPROC

Shell functions sourced from /etc/rc.status:

rc_check check and set local and overall rc status

rc_status check and set local and overall rc status

rc_status -v ditto but be verbose in local rc status

rc_status -v -r ditto and clear the local rc status

rc_failed set local and overall rc status to failed

rc_failed set local and overall rc status to

rc_reset clear local rc status (overall remains)

rc_exit exit appropriate to overall rc status

. /etc/rc.status

First reset status of this service

rc_reset

Return values acc. to LSB for all commands but status:

0 - success

1 - generic or unspecified error

2 - invalid or excess argument(s)

3 - unimplemented feature (e.g. “reload”)

4 - insufficient privilege

5 - program is not installed

6 - program is not configured

7 - program is not running

Note that starting an already running service, stopping

or restarting a not-running service as well as the restart

with force-reload (in case signalling is not supported) are

considered a success.

case “$1” in

start)

for service in sendmail postfix exim apache ldap; do

    rc=/etc/init.d/$service

    deactivate=0

    shutdown=0

    message=""

    if test -x $rc ; then

	$rc status &>/dev/null && shutdown=1

	rc_active $service && deactivate=1

	test $shutdown = 1 && message="Shutting down"

	test $deactivate = 1 && message="Deactivating"

	test $shutdown = 1 -a $deactivate = 1 && message="Shutting down and deactivating"

	test "$message" != "" && echo "$message $service, because it conflicts with Lotus Domino..."

	test $shutdown = 1 && $rc stop

	test $deactivate = 1 && insserv -r $service

    fi

done

echo -n "Starting Lotus Domino server"

test -f $INPUT_FILE || su - $NOTES_USER -c "touch $INPUT_FILE"

    test -f $INPUT_FILE && su - $NOTES_USER -c "rm $INPUT_FILE; touch $INPUT_FILE"

    su - $NOTES_USER -c "$DOMINO_BIN <$INPUT_FILE >>$OUTPUT_LOG 2>&1 &" || return=$rc_failed



# Remember status and be verbose

rc_status -v

;;

stop)

echo  "Shutting down Lotus Domino server"

echo  "... waiting for shutdown to complete"

su - $NOTES_USER -c "$DOMINO_BIN -quit" >>$OUTPUT_LOG

#

#

count=0

    NOTES_RUNNING=`ps -fu $NOTES_USER |grep $LOTUSDIR | awk '{print $2}'`

    while [ "$NOTES_RUNNING" ] ; do

            sleep 10

            count=`expr $count + 1`

            echo ".. waiting "$count"0 seconds"

            if [ $count -eq 13 ] ; then  

	        echo "Domino is still running after 2 minutes"

                    echo "... now for the ungraceful method"



                    cd $NOTES_PATH

                    rm "~notes.lck"

		su $NOTES_USER -c "$LOTUSDIR/bin/nsd -kill"

		cd -

            fi   

	NOTES_RUNNING=`ps -fu $NOTES_USER |grep $LOTUSDIR | awk '{print $2}'`

done

    echo -n "Domino server shutdown completed" 





# Remember status and be verbose

rc_status -v

;;

try-restart)

## Stop the service and if this succeeds (i.e. the 

## service was running before), start it again.

## Note: try-restart is not (yet) part of LSB (as of 0.7.5)

$0 status >/dev/null &&  $0 restart



# Remember status and be quiet

rc_status

;;

restart)

## Stop the service and regardless of whether it was

## running or not, start it again.

$0 stop

$0 start



# Remember status and be quiet

rc_status

;;

force-reload)

## Signal the daemon to reload its config. Most daemons

## do this on signal 1 (SIGHUP).

## If it does not support it, restart.



## Otherwise:

$0 stop  &&  $0 start

rc_status

;;

reload)

## Like force-reload, but if daemon does not support

## signalling, do nothing (!)



## Otherwise if it does not support reload:

rc_failed 3

rc_status -v

;;

status)

echo -n "Checking for Lotus Domino: "

## Check status with checkproc(8), if process is running

## checkproc will return with exit status 0.



# Status has a slightly different for the status command:

# 0 - service running

# 1 - service dead, but /var/run/  pid  file exists

# 2 - service dead, but /var/lock/ lock file exists

# 3 - service not running



# NOTE: checkproc returns LSB compliant status values.

checkproc $DOMINO_BIN

rc_status -v

;;

probe)

## Optional: Probe for the necessity of a reload,

## give out the argument which is required for a reload.



rc_failed 3

    rc_status -v 

;;

*)

echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"

exit 1

;;

esac

rc_exit

/etc/sysconfig/domino:


Name of the notes unix user account

NOTES_USER=“notes”

Notes data directory

NOTES_PATH=“/local/notesdata”

Domino install directory

LOTUSDIR=“/opt/lotus”

DOMINO_BIN=“/opt/lotus/bin/server”

Some Performance settings (these values should be ok for most cases)

Size of largest shared memory segment

NOTES_MAXSHAREDMEM=“2140053504”

Max. Number of shared mem. segments

NOTES_SHMMNI=“8192”

Semaphore settings

NOTES_SEM=“250 18432 32 1024”

Max. process per unix user (ulimit -u)

NOTES_USERPROC=“4096”

Subject: ignore - double post

Subject: 2nd post: Server crash on runjava creating nsd-file

I am not a Domino Linux Expert, but i am pretty sure that on all platforms the only supported version of Java is 1.3.1

Greetings

Ralf M Petter

Subject: RE:RE:2nd post: Server crash on runjava creating nsd-file

Hi Ralf :-)Thanks for your post !

As I see it, I got Java 1.4.1, right ?

Can that really make the server crash - wow - I DID not think so !

Am I really the first one doing this mistake - I could not find any posts on this error…

Cheers,

Henrik

Subject: RE:RE:2nd post: Server crash on runjava creating nsd-file

Yes using other JDK’s then the one Lotus delivers can lead very wired problems. So try the IBM JDK supplied with Domino and i am pretty sure your crashes will go away.

Subject: RE:RE:RE:2nd post: Server crash on runjava creating nsd-file

Hi,I have de-installed the sun-java and downloaded and installed the IBM-java version 1.3.1 (double-checked with yast…)

BUT…i’ve got the same crashes and the same problem as before - no change… :frowning:

What more can I do ?

Regards, Henrik