• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JVM behaviour Upon Exception - GlassFish Server

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can anyone let me know how the GlassFish Server behaves upon getting an exception.

Does it by any chance starts a new thread to check the consistency of the system whenever it gets the exception ??
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ankit V Agrawal wrote:

Does it by any chance starts a new thread to check the consistency of the system whenever it gets the exception ??



I haven't used GlassFish much, but I don't see a reason why a server would start a new thread when there's an exception thrown. Why do you ask? Is there something specific you are running into?
 
Ankit V Agrawal
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, I have two EJB modules which are basic client server and the first EJB is having a remote EJB call to the second one. I'm monitoring the thread count through jconsole. I'm calling the second EJB in a loop(this is for load testing). Now whenever I'm getting a CORBA exception during the remote call, there is an increase in the thread count by 1. Also the CPU utilization as well as the Heap size increases in case of this exception. Although this is short lived but still it is not desirable.

I can remove this exception but this was something really interesting for me to have come across the increase in the number of threads.
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ankit V Agrawal wrote: Now whenever I'm getting a CORBA exception during the remote call, there is an increase in the thread count by 1.



Take a thread dump and see what that new thread (and other threads) are doing at that moment.
reply
    Bookmark Topic Watch Topic
  • New Topic