MBean required to get the Memory Usage of Specific Appln. in jboss,weblogic

Hie ,I want to know the specific Mbean name or the Domain under which i can get the "Memory usage" or such critical attributes of specific application in jboss and in weblogic application Server.Thanks
[236 byte] By [Jay.Jambaa] at [2007-11-27 7:09:53]
# 1

In JBoss, look for "jboss.system:type=ServerInfo". It has attributes FreeMemory and TotalMemory. In Weblogic 8, query for the type "*:*,Type=JVMRuntime,*", it has HeapFreeCurrent and HeapSizeCurrent. In Weblogic 9, I use the JRockit MBean. Query for the type "*:*,Type=JRockitRuntime". It has attributes of HeapSizeMax and HeapSizeCurrent.

aakturea at 2007-7-12 19:01:19 > top of Java-index,Core,Monitoring & Management...
# 2

hie..thanks for replying..

u are talking abt jboss.system:type=serverinfo..in that the attributes called total & free memory is of jboss server itself..!!

what if i want to know the memory utilization of specific application on that jboss server., i.e. how much memory is each and every appln using of jboss appln server itself...could u plz tell me the domain name or mbean name which can give this attributes.

Thanks..

Jay.Jambaa at 2007-7-12 19:01:19 > top of Java-index,Core,Monitoring & Management...
# 3
Oh, sorry, I see, you want per application. That info is not available in any application server I have used (and I've used several). They only provide it for the JVM in total.
aakturea at 2007-7-12 19:01:20 > top of Java-index,Core,Monitoring & Management...
# 4

hey actually i m making application called jmx-console..in this appln. we 're required to give the statistics like memory usage by each and every appln. deployed onto jboss..and we have to provide alerts if the usage goes beyond thresh hold..

if it is not provided by any appln server.. do u have any idea abt it..coz there might be some way to calculate out the memory usage by each and every appln deployed onto appln server.

Thanks..

Jay.Jambaa at 2007-7-12 19:01:20 > top of Java-index,Core,Monitoring & Management...
# 5
That's a very difficult task to do, as resources can be shared across applications. I'm not sure at all how you could do it. If you implement it, I'm sure many people would be interested in it.
aakturea at 2007-7-12 19:01:20 > top of Java-index,Core,Monitoring & Management...
# 6
anyways..thanks..for replying..
Jay.Jambaa at 2007-7-12 19:01:20 > top of Java-index,Core,Monitoring & Management...
# 7

Hi,

You can refer the source code of probe which is similer kind of application. But it doesn't display memory consumption per context.

It might be useful to you. This application is available at the following link

http://www.lambdaprobe.org

Regards,

Rakesh

rakesh_mscita at 2007-7-12 19:01:20 > top of Java-index,Core,Monitoring & Management...