• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

when jvm crash ?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi when does the jvm crash ?? in what situations ?

Will the JVM crash after some time due to overflooding of non-garbage collected objects or some thing else�?

Please illustrate ur views if hv time�
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JVM only crashes when there's a bug in the JVM. It should ofcourse never crash.

> Will the JVM crash after some time due to overflooding of non-garbage collected objects or some thing else�?

No. The garbage collector will cleanup objects that are eligible for garbage collection if memory is running low. If your program is allocation too many objects, an OutOfMemoryError is thrown in your program. That may cause your program to exit unexpectedly, but that is not the same as a JVM crash.
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well - I've seen the JVM crash with messages like 'Uncaught exception in native code outside of the JVM....', so that is another possibility:

A jni-call to a method which produces i.e.: a Nullpointer or division by zero, which isn't caught in the native code.

And plz dnt abbrvt r wrds. t's gl nd nrdbl.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!