About Me

My photo
Working as Technical Lead in CollabNET software private limited.
Showing posts with label jboss. Show all posts
Showing posts with label jboss. Show all posts

Wednesday, 17 October 2012

Memory leak when reading EJB 2.1 CMP EntityBeans in JBOSS7.1.1-Final

On a recent PSR testing, we saw frequent OOME on accessing the site. Later, on investigation heap dump,we found that there are large number of objects getting created for org.jboss.invocation.interceptor[] from WeavedInterceptor and ChainedInterceptor.

Below is the screen shot of it..


Later on investigation, we found its because of the bug in JBOSS7.1.1-Final, this is due migrating EJB2.1 CMP EntityBeans to this JBOSS7.1.1-Final version.


More details on actual stack trace can be found in https://community.jboss.org/thread/198920 


We need to patch JDBCStoreManager.java for this in the jboss AS 7.1.1.

Wednesday, 25 November 2009

How to take a thread dump

Yesterday, I was looking to find whether any daemon thread is running with in jboss server, which does an scheduled job.

Tried ps -efw but it didn't worked, as it's an internal thread, got some suggestions that dumpingthe jboss process will dump the name of daemon threaad and finally it worked great :)


# Find the running boss server process id.

ps -efww | grep 'java' #choose your jboss server pid.

# send thread dump signal.
kill -3 $pid