aspose file tools*
The moose likes Tomcat and the fly likes Some GC usage values in Terracotta server cannot be fetched by Zapcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Some GC usage values in Terracotta server cannot be fetched by Zapcat" Watch "Some GC usage values in Terracotta server cannot be fetched by Zapcat" New topic
Author

Some GC usage values in Terracotta server cannot be fetched by Zapcat

Heath Swanson
Greenhorn

Joined: Mar 31, 2011
Posts: 6
I'm wondering why some values cannot be fetched by Zapcat while they can be fetched by Jconsole accessing directly to 9520 jmx port.

For example, Jconsole shows Perm Gen's Usage.committed value when selecting MBean tab and open the "java.lang" -> "MemoryPool" -> "Perm Gen".
It shows MemoryPool Code Cache Usage.committed, too.

My terracotta server starts Zapcat agent, which listens on 10053.
These are the result of access to 10053 by telnet;
# telnet localhost 10053
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
jmx[java.lang:type=MemoryPool,name=Code Cache][Usage.committed]
ZBXD2555904Connection closed by foreign host.
The value can be successfully fetched.

# telnet localhost 10053
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
jmx[java.lang:type=MemoryPool,name=Perm Gen][Usage.committed]
ZBXDZBX_NOTSUPPORTEDConnection closed by foreign host.
The value is "not supported".

Why?
 
Consider Paul's rocket mass heater.
 
subject: Some GC usage values in Terracotta server cannot be fetched by Zapcat