It's all about the answers!

Ask a question

Is there a possibility to track Java Heap Space from an RTC external Server/Service?


Klaus Hoppe (41) | asked Sep 22, 9:51 a.m.
edited Sep 23, 2:35 a.m. by Muralidhar Rajagopal (8614)

We are setting up an ALM Environment based on RTC and JAZZ.

From our IT we got the recommendation to track Java Heap used per Server with our inhouse Monitoring and Reporting Tools, to be able to provide comparable Reports for all used Server and Applications in our Company.

For other Apps we required the Definition of a separate Account to connect on a defined Port:
mks.java.additional.44=-Dcom.sun.management.jmxremote.port=3333
mks.java.additional.45=-Dcom.sun.management.jmxremote.ssl=false
mks.java.additional.46=-Dcom.sun.management.jmxremote.authenticate=true
mks.java.additional.47=-Dcom.sun.management.jmxremote.local.only=false

combined with a Password File that contain required Account an Password.

(see example of used jmxremote.password.template below)
##############################################################
#        Password File for Remote JMX Monitoring
##############################################################
#
# Password file for Remote JMX API access to monitoring.  This
# file defines the different roles and their passwords.  The access
# control file (jmxremote.access by default) defines the allowed
# access for each role.  To be functional, a role must have an entry
# in both the password and the access files.
#
# Default location of this file is $JRE/lib/management/jmxremote.password
# You can specify an alternate location by specifying a property in
# the management config file $JRE/lib/management/management.properties
# or by specifying a system property (See that file for details).
#
# In a typical installation, this file can be read by anybody on the
# local machine, and possibly by people on other machines.
# For # security, you should either restrict the access to this file,
# or specify another, less accessible file in the management config file
# as described above.
#
# Following are two commented-out entries.  The "measureRole" role has
# password "QED".  The "controlRole" role has password "R&D".
#
# monitorRole  QED
# controlRole  R&D


Comments
Ralph Schoon commented Sep 22, 1:00 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I fail to figure what the exact question is. You might want to check https://jazz.net/wiki/bin/view/Deployment/DeploymentMonitoring .


Klaus Hoppe commented Sep 23, 2:52 a.m.
Hi Ralf,
thanks for Feedback. The Page you linked I already saw before.
Nevertheless it provides "only" an internal Monitoring, but afaik no possibility to get data accessed from an Jazz-external Toolframe.
My Question is exactly this last Point: How to connect from Jazz-external to get Heap Performance Data in our Company's Environment to provide this data in our Company's Standard-Reporting.
Best Regards
Klaus

Ralph Schoon commented Sep 23, 2:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The page I linked explains the usage of JMX beans. Java and the application server you use also provide JMX beans to provide the information you ask for. I think it is documented to some extent on that page. Otherwise you would have to look it up in the documentation of said products.

Be the first one to answer this question!


Register or to post your answer.