wood burning stoves
The moose likes JBoss/WildFly and the fly likes Jboss JAAS issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss JAAS issue" Watch "Jboss JAAS issue" New topic

Jboss JAAS issue

Vikram Saxena
Ranch Hand

Joined: Dec 16, 2008
Posts: 53
Hello All,

I am facing an issue with the JVM memory levels of my JBoss 4.2.3GA App Server. The problem is that every few days the JVM reaches to a very low level (approx 100 MB free) and then the server chokes and is not taking any requests.

Now, to have a closer look at the issue, I took a heap dump of the App server at various times and found there were a few objects which were growing in size.
I picked up the worker threads with this highest size, and I found that instances of org.jboss.remoting.transport.socket.ServerThread is the one which is holding most of the references.
When I do a more detailed study, it shows me that the thread is holding the security information (authentication).

I am using JAAS in my project. Where first the client is authorized using a un/password and then authorized through a LDAP server for all the tasks like accessing EJB's etc.

Now, for every client call i am doing a jbosslogincontext.login(). But there is no place where I am doing a logout. Could this be a reason why the objects are growing ?

I am using App Server version 4.2.3 GA
I am using Sun Directory Server 4 as my LDAP server

Any pointers, or information from someone who has an idea about the same would be of great help.

Thanks a ton in advance

SCJP 5 , SCBCD [Prep Started ] , WLS 8.1 Server Admin
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

A login should be followed by a logout. However i don't know whether not having a logout would increase the memory footprint or lead to any leaks. But fixing the code to logout the user would be the right thing to do.

[My Blog] [JavaRanch Journal]
I agree. Here's the link: http://aspose.com/file-tools
subject: Jboss JAAS issue
jQuery in Action, 3rd edition