Solved

my webapp is crashing the JVM intermittently

Posted on 2007-04-09
3
678 Views
Last Modified: 2010-05-18
Hello,
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  [libjvm.so+0x466650]
#

---------------  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

Registers:
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  [libjvm.so+0x466650]
V  [libjvm.so+0x24200c]
V  [libjvm.so+0x466471]
V  [libjvm.so+0x468862]
V  [libjvm.so+0x2094cf]
V  [libjvm.so+0x424338]
C  [libpthread.so.0+0x5bd4]

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\snipped\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

VM Arguments:
jvm_args: -Xms256m -Xmx1024m -Djava.awt.headless=true
-Dfile.encoding=ISO-8859-1
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
 -Djava.util.logging.config.file=/usr/java/jakarta-tomcat/conf/logging.properties
-Djava.endorsed.dirs=/usr/java/jakarta-tomcat/common/endorsed -D
catalina.base=/usr/java/jakarta-tomcat
-Dcatalina.home=/usr/java/jakarta-tomcat
-Djava.io.tmpdir=/usr/java/jakarta-tomcat/temp
java_command: org.apache.catalina.startup.Bootstrap start start
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/usr/java/jdk1.5.0_06
CLASSPATH=:/usr/java/jakarta-tomcat/bin/bootstrap.jar:/usr/java/jakarta-tomcat/bin/commons-logging-api.jar
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.5.0_06/bin:/usr/java/jdk1.5.0_06
LD_LIBRARY_PATH=/usr/java/jdk1.5.0_06/jre/lib/i386/server:/usr/java/jdk1.5.0_06/jre/lib/i386:/usr/java/jdk1.5.0_06/jre/../lib/i386
SHELL=/bin/bash

Signal Handlers:
SIGSEGV: [libjvm.so+0x4fd530], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x4fd530], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x422860], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x422860], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x422860], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x424bb0], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x4245e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGQUIT: [libjvm.so+0x4245e0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGTERM: [libjvm.so+0x4245e0], 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
release)

0
Comment
Question by:paries
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
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 !
0
 

Author Comment

by:paries
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)

thannks
0
 
LVL 8

Expert Comment

by:n_sachin1
ID: 18888380
Paries,
  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)
http://tldp.org/LDP/sag/html/sag.html

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.
regards
Sachin
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.

706 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

19 Experts available now in Live!

Get 1:1 Help Now