Steven Erat's Blog
 
 
Viewing By Entry
 
 

TalkingTree  HotSpot Crash with ColdFusion MX on Linux with JVM 1.4.x

 

An infrequent, but recent series of JVM crashes under the configuration of CFMX 6.x on JVM 1.4.x on the Linux platform has been resolved in the short term with the -Xint JVM argument to disable the Sun JVM HotSpot optimizer. The -Xint JVM option, described in this Sun VM Options page, can be added to the JVM argument list in the ColdFusion Administrator to force the JVM to run in the interpreted mode, avoiding HotSpot optimization all together. The result is more stability in exchange a performance hit. While a better solution is being sought after, the -Xint option will work in a pinch. his type of crash seems to be very specific for the CFMX on Linux with the 1.4. JVM, and not on any other combination of versions or platforms. In fact, I've found very few instances where this has occurred at all among a large set of servers. The HotSpot crash log (hs_err_pidnnnnn.log) which has been found in /tmp, but might show up in the {cfmx}/runtime/bin/ directory, has a unique error code: Error ID : 4F530E43505002EF. This error can be found in Sun's Bug Parade quite easily, and I'm working my way through reading each matching report.

A sample HotSpot crash log for this condition is shown here:

Unexpected Signal : 11 occurred at PC=0x40361190
Function=(null)+0x40361190
Library=/usr/java/j2re1.4.2_04/lib/i386/server/libjvm.so

NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.


Current Java thread:

Dynamic libraries:
08048000-0804f000 r-xp 00000000 30:03 2109426 /opt/coldfusionmx/bin/cfusion
0804f000-08050000 rw-p 00006000 30:03 2109426 /opt/coldfusionmx/bin/cfusion
<snip ... />

Heap at VM Abort:
Heap
PSYoungGen total 51264K, used 6114K [0x44650000, 0x47f30000, 0x47f30000)
eden [0x44650000,0x44c48a50,0x47190000)
from [0x47860000,0x47860000,0x47f30000)
to [0x47190000,0x47190000,0x47860000)
PSOldGen total 466048K, used 72493K [0x47f30000, 0x64650000, 0x64650000)
object [0x47f30000,0x4c5fb630,0x64650000)
PSPermGen total 21760K, used 21575K [0x64650000, 0x65b90000, 0x6c650000)
object [0x64650000,0x65b61e20,0x65b90000)

Local Time = Sun May 16 03:18:19 2004
Elapsed Time = 128272
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Server VM (1.4.2_04-b05 mixed mode)
#

Want to know more about HotSpot? Read Understanding HotSpot in Plain English.

 


Comments

We have been seeing the same problem on Solaris, and we are running in the crippled mode. It works almost decently, but some templates are hit very badly (we haven't mapped out exactly what it is)



I am afraid that the -Xint parameter is not a solution. We have tried it and the site becomes extremely slow.

Looking at Sun's bug parade, they say that the bug is fixed in jvm 1.4.2_04 (bug 4927116), but i see that you are already using this version :-((

We are using coldfusion 6.1 on redhat 8 and recently we hace upgraded jvm from 1.4.2-b28 to 1.4.2_04-b05.

We will see what happens ...


>"We have tried it and the site becomes extremely slow."


Yep. That's what I meant when I said "The result is more stability in exchange a performance hit". You'll also note that there are many, many bug reports for this hotspot error code, many of them still open.



True. Now I am using ibm's jvm. It has been running only for 2 days, but it seems it is doing well. It is said that this one works better than sun's one. We will see what happens ... this time!


My CF server was crashing everyday, and was wrecking my head. We moved to the IBM jvm and everything is perfect now. Thanks a lot.


Hey,

Can anyone provide a detailed info on how in the heck can we switch the JVM from the Sun's engine to IBM's one for CFMX Pro on Linux? We're getting almost daily Sig11's that are getting "pretty" annoying by now..


You may want to try just disabling the HotSpot optimizer in the Sun JVM with the -Xint jvm switch.

To use IBM's JVM just install it and then change the JVM page in the ColdFusion Administrator. Restart CFMX and that's it. Be aware then that you may be introducing a new suite of issues by just swapping out the JVM from Sun to IBM, so you'd probably want to test that well first.


Unfortunately none of the IBM JVMs seem to work. Whichever version we install CFMX is unable to start (Error: no `server' JVM at `/opt/IBMJava2-142/jre/bin/server/libjvm.so')

Using -Xint is not a feasible alternative, since the load on the server is pretty high already.


Yes, that is because although you have used the IBM JVM, you are still using the JVM options for the Sun JVM. Remove the Sun-specific option "-server" in the jvm.config file and then the IBM JVM will probably work. You might want to consider reading the documentation for the IBM JVM before using it.


Thank you for the information. I didn't realize that the -server option was Sun specific.

We're currently running the Sun JVM with "-XX:+UseParNewGC" which was recommended at

http://forum.java.sun.com/thread.js...

So far the stability and performance increase has been quite nice indeed.


Good to know. Thanks.

I'll repost your link which got broken in my comment parser...

http://forum.java.sun.com/thread.jspa?threadID=307252&start=75&tstart=0


We have the same problem, I have tried to alter the JVM paramters with JVM 1.4.2 but it did not work for us, then I used JVM 1.5 and although it works, but I get an error on templates using RSS Feeds so I have reverted back to JVM 1.4.2. I have tried using IBM JVM 1.4 but the CF server does not start after changing the JVM details to IBM JVM, I have removed the -server param from the startup parameters but I still cannot get it running with IBM JVM, Any tips to get CF 1.6.1 running with IBM JVM ?


Just wanted to add that this bug appears to have been finally fixed in 1.4_10.

We had this problem for over a year and ended up using -Xint. We switched to 1.4_10, removed -Xint, and it's running crashfree now (well, so far)


I forgot to mention that I also once posted a blog entry that attempted to provide a simple explanation of of Sun's HotSpot JIT compiler and some issues that occur with it. It may be helpful if you're having this problem....

http://www.talkingtree.com/blog/index.cfm/2006/4/2...


 

 

Calendar

 
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Search This Site

 
This is an exact search only

About This Site

 
I live west of Boston and used to work at Adobe with ColdFusion and Flex, specializing in Unix & Linux. I recently graduated from CDIA in Pro Digital Photography. Curious about my banner image?

More about me

Recent Entries

 
Christmas Eve Service makes F..
How To Filter by File Type in..
Perspective on ColdFusion's B..
Power Mac G5: The lights are ..
My Application to CDIABU in R..

Recent Comments

 
Posted By Andy Allan:
Fantastic work Steve.

Posted By charlie arehart:
Oh wow, awesome to hear that the relative quiet was an imposed one, and that the gag order has been lifted. Now I'm really excited to hear what may co ...

Posted By Steven Erat:
Thanks for your encouragement Charlie. I have to say that even though I'm trying to be positive and use this time to improve my web skills, most of t ...

recently played

 
Snap Judgments
by WNYC, New York Public Radio
on On The Media
On The Media, WNYC, New York Public Radio

now playing, a plug-in for itunes

Categories

 
RSS Adobe (31)
RSS Bicycling (9)
RSS Blogging (37)
RSS Books (13)
RSS Breeze (12)
RSS CFMX Podcasts (10)
RSS ColdFusion (420)
RSS Computer Technology (50)
RSS Events (25)
RSS Flash (3)
RSS Flex (18)
RSS Gadgets (10)
RSS HiTech Industry (16)
RSS Java (25)
RSS Learning (57)
RSS Linux (70)
RSS Mac OS X (22)
RSS Macromedia (28)
RSS Meetup (34)
RSS New England (62)
RSS Odds & Ends (25)
RSS Outdoors (32)
RSS Personal (29)
RSS Photography (109)
RSS Photoshop (29)
RSS Podcasts (18)
RSS Rants (19)
RSS Restaurants (8)
RSS Science (34)
RSS Spain (16)
RSS Travel (42)
RSS Video (20)
RSS Webcam (3)
RSS Writing (10)

Blogs I Read

 
Scrum Sucks
Ben Forta
Ray Camden
Kinky Solutions
Gary Gilbert
Red Hat Blogs
O'Reilly Digital Media
O'Reilly Radar
John Nack
The Strobist
Scott Kelby
Matt Kloskowski
Joe McNally
Digital Photography School
Engadget
Science Blog

RSS

 


Add to Google
Add to My Yahoo!

Aggregated By

 


Consumed By Feed-Squirrel.com
Aggregated by ColdFusionBlogger.org

Credits and Stuff

 
BlogCFC - Free ColdFusion Powered Blog Software
CJM Group - ColdFusion Website Hosting


 
 
blog | photos | flickr | referers | webcam | stats | about | contact
 
Copyright © 2009 Steven Erat. All rights reserved.
This is a personal weblog. The opinions expressed here represent my own and not those of my employer