Skip to main content
Participant
August 12, 2008
Question

CF8 crashes java.lang.OutOfMer moryErronable to create new native thread

  • August 12, 2008
  • 1 reply
  • 645 views
Over the past few weeks we have not been able to stabilize one of our web servers running, duel quad processors, 4GB RAM, CF8, MWS2003 x64, IIS6, and SQL 2005 (installed on another box). About every 12 hours we encounter ‘08/12 13:55:48 error ROOT CAUSE:
java.lang.OutOfMemoryError: unable to create new native thread’ which causes all the sites in IIS to display ‘Service Unavailable’ ‘There is no web application configured to service your request’.

I have changed JVM heap to 1024m, the perm size to 256m, and the simultaneous request to 24 but to no avail.

It is important to note that we have an identical configuration on other boxes which have much higher traffic and they don’t have an issue. This box have much less traffic overall but more sites.

I turned on metrics Web threads for JVM:
.....
08/12 09:11:38 metrics Web threads (busy/total): {jrpp.busyTh}/{jrpp.totalTh} Sessions: 0 Total Memory=402176 Free=123250
08/12 09:11:43 metrics Web threads (busy/total): {jrpp.busyTh}/{jrpp.totalTh} Sessions: 0 Total Memory=402496 Free=141132
08/12 09:11:48 metrics Web threads (busy/total): {jrpp.busyTh}/{jrpp.totalTh} Sessions: 0 Total Memory=402496 Free=64979
08/12 09:11:53 metrics Web threads (busy/total): {jrpp.busyTh}/{jrpp.totalTh} Sessions: 0 Total Memory=402432 Free=80567
08/12 09:11:58 metrics Web threads (busy/total): {jrpp.busyTh}/{jrpp.totalTh} Sessions: 0 Total Memory=403072 Free=81854
08/12 09:12:03 metrics Web threads (busy/total): {jrpp.busyTh}/{jrpp.totalTh} Sessions: 0 Total Memory=404032 Free=128202
08/12 09:12:08 metrics Web threads (busy/total): {jrpp.busyTh}/{jrpp.totalTh} Sessions: 0 Total Memory=404224 Free=122369
08/12 09:12:13 metrics Web threads (busy/total): {jrpp.busyTh}/{jrpp.totalTh} Sessions: 0 Total Memory=398272 Free=124157
08/12 09:12:18 metrics Web threads (busy/total): {jrpp.busyTh}/{jrpp.totalTh} Sessions: 0 Total Memory=403968 Free=125020
…..

Any help is greatly appreciated.

Thanks,
Jim
    This topic has been closed for replies.

    1 reply

    January 7, 2009
    I feel your pain. You might try adjusting the maxpermsize for your jvm to a higher number and see if that helps.

    Not that it fixed our issues - but some folks say it helps. We have production servers crashing on ColdFusion 8 - very frustrating.

    Let me know if that is of any help.