• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JVM behaviour Upon Exception - GlassFish Server

 
Ankit V Agrawal
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • 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 ??
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic