[HPADM] Process killed due to trashed stack

From: Unternaehrer Stefano (stefano.unternaehrer@ti.ch)
Date: Tue Jun 24 2003 - 05:30:16 EDT


Hi all.
I've some trouble with our webserver, an HP9000
A500 aka rp2450, running HP-UX 11.00 and different
websites based on Tomcat 3.2.1 and 3.2.3.
I need some help for tuning.

The server has 1GB RAM, and 4 different Tomcat are
running, one for each project, using distinct ports.
Webpages are written in jsp, and most of pages read
data from an Oracle7 database placed on a separate
server (an HP9000 L2000 server, also running 11.00),
though jdbc:oracle:thin (sql*net runs on both servers).

I'm not happy with the reply times of our webpages.
Moreover, from time to time it arrives that one of
this tomcat (the most intensive used, you can reach
and "see" it at the address http://www.sbt.ti.ch:8088)
is automagically killed with the message:

  Pid 29703 killed due to trashed stack.
  Pid 29703 was killed due to failure in
  writing the signal context.

AFAIK, Tomcat and Java uses threads.
What can I do to prevent this killing?
Some kernel parameter to increase?
How to proceed in order to increase performances?
I know there are different possible reasons... tomcat,
the kernel, ram&swap, the network, oracle, etc.

I have to say that all 4 Tomcat runs with the
default configuration (I read somewhere that this is
not nice for productive sites), but don't know how to
proceed, what to change. I've done some test changing
the server.xml file adding following parameters for
PoolTcpConnector, but was unhappy, situation was worse.

  <Parameter name="max_threads" value="30" />
  <Parameter name="max_spare_threads" value="20" />
  <Parameter name="min_spare_threads" value="5" />

Any help on how to proceed is appreciated.
Some more additional info:

$ swapinfo -t
             Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 2097152 45184 2051968 2% 0 - 1 /dev/vg00/lvol2
reserve - 415988 -415988
memory 743892 516428 227464 69%
total 2841044 977600 1863444 34% - 0 -

$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 65536
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 0
nofiles(descriptors) 512

$ java -version
java version "HP-UX Java C.01.18.01 12/10/1999 12:48:46 dyo640"

Thank you for any hint and best regards,
Stefano

---
Stefano Unternaehrer
Sistema bibliotecario ticinese
Bellinzona Ticino Switzerland
stefano.unternaehrer@ti.ch 
www.sbt.ti.ch
--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:30 EDT