my webapp is crashing the JVM intermittently

I have just pushed a new version of my web app to my production boxes .
which is apache-tomcat-5.5.15 with apache and fedora core 4

I am running this same app one 3 different boxes

on two of them it has crashed the JVM. The only reason i say this, is
because it probably rules out hardware

1 box crashes every 2 or 3 days and the other 1 once in the last week

I will give you a part of the log file of the crash.

if there is more that i can provide please let me know.

Any help would be really appreciated:

# An unexpected error has been detected by HotSpot Virtual Machine:
#  SIGSEGV (0xb) at pc=0xb7a5e650, pid=18291, tid=1847487408
# Java VM: Java HotSpot(TM) Server VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# V  []

---------------  T H R E A D  ---------------

Current thread (0x099aedf8):  GCTaskThread [id=18292]

siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x18181824

EAX=0x18181818, EBX=0xb7ba37f0, ECX=0xab774708, EDX=0x18181820
ESP=0x6e1e60b0, EBP=0x6e1e6128, ESI=0xaf4c9fb4, EDI=0xaf4d23e8
EIP=0xb7a5e650, CR2=0x18181824, EFLAGS=0x00010293

Top of Stack: (sp=0x6e1e60b0)
0x6e1e60b0:   099a4050 00001004 b7b8e1ac b7a5e630
0x6e1e60c0:   099a4068 b7b96ac0 00000001 b7ba37f0
0x6e1e60d0:   823db790 823b38e0 6e1e6118 b7ba37f0
0x6e1e60e0:   00000006 00000000 18181818 00000000
0x6e1e60f0:   0000000c 00000000 00000001 af4d2398
0x6e1e6100:   af4d2258 00001000 af4c8730 b7839ef1
0x6e1e6110:   af4aa1e8 00001000 6e1e6188 b7ba37f0
0x6e1e6120:   af4c9fb4 af4d23e8 6e1e6168 b783a00c

Instructions: (pc=0xb7a5e650)
0xb7a5e640:   8b 4d 0c c7 45 bc 00 00 00 00 8b 41 04 8d 50 08
0xb7a5e650:   8b 4a 04 89 4d b8 85 c9 0f 8e f2 04 00 00 8b 45

Stack: [0x6e166000,0x6e1e7000),  sp=0x6e1e60b0,  free space=512k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  []
V  []
V  []
V  []
V  []
V  []
C  []


VM Arguments:
jvm_args: -Xms256m -Xmx1024m -Djava.awt.headless=true
-Djava.endorsed.dirs=/usr/java/jakarta-tomcat/common/endorsed -D
java_command: org.apache.catalina.startup.Bootstrap start start
Launcher Type: SUN_STANDARD

Environment Variables:

Signal Handlers:
SIGSEGV: [], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: [], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGQUIT: [], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGTERM: [], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004

---------------  S Y S T E M  ---------------

OS:Fedora Core release 4 (Stentz)

uname:Linux 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686
libc:glibc 2.3.6 NPTL 2.3.6
rlimit: STACK 10240k, CORE 0k, NPROC 32750, NOFILE 1024, AS infinity
load average:0.31 0.21 0.20

CPU:total 2 family 47, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 506k(14k free), swap 625k(625k free)

vm_info: Java HotSpot(TM) Server VM (1.5.0_06-b05) for linux-x86,
built on Nov 10 2005 10:56:33 by java_re with gcc 3.2.1-7a (J2SE

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This looks like a memory issue.
The memory details reported in the hprof log that you have pasted above show:
Memory: 4k page, physical 506k(14k free), swap 625k(625k free)

A physical memory of 506k with just 14k free and a small swap too ????

You are trying to run the application with a minimum memory setting of 256m and a max of 1024M, but at some point of time, possibly something else running on the system eats up all memory and the vm suddenly finds itself out of place...Contact your linux administrator to get a fair share of memory for your web applications. It should be an answer from him !

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pariesAuthor Commented:
unfortunatly that is me... (really small company)

any ideas on how to do that? ( i relaize this is the wrong group for that)

  I'm not a linux administrator myself. May be the below link will help you in verifying and setting  the available memory that should be committed for your web applications (You need to have at least 1024M with a factor of safety)

I would also suggest you to post a query on the linux administration group, where someone with a hands on experience can provide a better guidance.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.