One thing to try is to turn off hotspot. The JVM will run slower, but I have found that this makes
a lot of crashes go away, letting you track down the real problems. Sometimes synchronization
bugs will get optimized into code which can lead to a crash. Shouldn't happen, but unfortunately
it does. With Hotspot disabled, you may get bugs due to the lack of synchronization but as the
code never gets optimized, the crashes go away. How to do this depends on the JVM, but try
-Djava.compiler=NONE


Also, if this is causing you problems with an online system, you might want to try running
Phoenix on top of the Java Service Wrapper. This was the exact kind of problem that led
to its development. The JVM will still hang, but when that happens, it will at least get restarted,
helping you avoid downtime.


Cheers,
Leif

Peter Donald wrote:

It is difficult to asses the situation. Many people have run phoenix fine for months on end on linux so there is nothing that jumps out at me. You need to provide more information and details about what exactly happens before anyone can answer your question properly. It could be due to;

* misconfigured jdk
* misconfigured kernel
* misconfigured librarys
* code bugs in excalibur/cornerstone
* code bugs in phoenix
* code bugs in james
* cross-platform differences
etc.

You need to give much more detail before we can track any problems down.

On Sat, 2 Nov 2002 09:19, Peter M. Goldstein wrote:


All,

I'm forwarding a discussion on the James mailing list to this list, in
hope that some of the Phoenix folk might be able to shed some light on
observed behavior.  Any comments on the attached would be appreciated.
Thanks much.

--Peter

-----Original Message-----
From: Danny Angus [mailto:[EMAIL PROTECTED]
Sent: Friday, November 01, 2002 9:53 AM
To: James Developers List
Subject: RE: Hotspot crashes

I tried phoenix 4.0.2 j2sdk1.4.1 & rh7.2 today,
after about 1/2 hr running with the -server option James "dissappears"
leaving only three threads visible to ps, and not handling any requests.

I've had hotspot crashes with tomcat and James in the past running
j2sdk1.3.0 on rh7.1, but nothing like this, its like it partially shuts
down.

d.



-----Original Message-----
From: Noel J. Bergman [mailto:[EMAIL PROTECTED]
Sent: 01 November 2002 16:57
To: James-Dev Mailing List
Subject: Hotspot crashes


Danny,

Does this describe what you are seeing?

        --- Noel

-------------------------------
Linux and Sun JDK 1.2.x - 1.3.x:
-------------------------------

Virtual machine crashes can be experienced when using certain


combinations



of
kernel / glibc under Linux with Sun Hotspot 1.2 to 1.3. The crashes


were



reported to occur mostly on startup. Sun JDK 1.4 does not exhibit the
problems,
and neither does IBM JDK for Linux.

The problems can be fixed by reducing the default stack size. At
bash shell,
do "ulimit -s 2048"; use "limit stacksize 2048" for tcsh.

GLIBC 2.2 / Linux 2.4 users should also define an environment


variable:


export LD_ASSUME_KERNEL=2.2.5


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>








Reply via email to