my webapp is crashing the JVM intermittently

Posted on 2007-04-09
Last Modified: 2010-05-18
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

Question by:paries
  • 2

Accepted Solution

n_sachin1 earned 500 total points
ID: 18881935
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 !

Author Comment

ID: 18882330
unfortunatly that is me... (really small company)

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


Expert Comment

ID: 18888380
  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.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Strange loading of website behaviour 3 32
Problem to go to Web page 2 98
Widget to get customer remakrs in our website. 3 47
java jdbc batch example 8 22
Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now