From remote am monitoring MBeans of JBoss in every 5 minutes interval. In my 
code am creating a new "Management" object within a thread(in run method) like 
the below in every interval. And  am creating more than one thread.


  | Object obj = context.lookup( "ejb/mgmt/MEJB" );
  | ManagementHome home =  (ManagementHome)
  | PortableRemoteObject.narrow(obj,ManagementHome.class);
  | Management  server = home.create();
  | 
  | //after that am executing the query like below
  | Set mbeanSet=server.queryNames(queryObj,null);
  | 

 Found there is memory leak in both the client side and as well as JBoss
side in Linux OS. The memory usage is going up and up. Could anyone suggest me 
for the above problem. Is there anyway to release memory or destroy the 
connection eachtime.
   
   Am not intializing "server" object to NULL at the end of thread.OR do i need 
to call any method of "server" object at the end . 

Thanks in advance.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872817#3872817

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872817


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to