Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot generate statistics for many properties: #232

Open
owolabileg opened this issue Apr 18, 2016 · 1 comment
Open

Cannot generate statistics for many properties: #232

owolabileg opened this issue Apr 18, 2016 · 1 comment

Comments

@owolabileg
Copy link
Contributor

Opening this after private discussions with @xiaohe27 and @yzhang90, so we can keep track.

When I tried to generate an agent that can produce monitoring statistics from all our agents, I got errors like this one:

============================
/home/owolabi/projects/rvtest/scripts/props/MultiSpec_1MonitorAspect.aj:1648
[error] The method getEventCounters() is undefined for the type S\
ortedMap_StandardConstructorsRawMonitor
System.err.println("#event - staticinit: " +
SortedMap_StandardConstructorsRawMonitor.getEventCounters().get("staticinit"));

                  ^^^^^^^^^^^^^
=============================

After private discussions, it seems that this only happens for raw monitors (about 90 properties), and the solution may be related to pull request 119 in RV-Monitor.

Repro Steps:

mop_dir="path-to-mop-files"
javamop -merge -s ${mop_dir}
mkdir -p ${mop_dir}/classes/mop
rv-monitor -merge -s -d ${mop_dir}/classes/mop/ ${mop_dir}/*.rvm -v
javac ${mop_dir}/classes/mop/*.java
rm ${mop_dir}/classes/mop/*.java
javamopagent ${mop_dir}/MultiSpec_1MonitorAspect.aj classes -n JavaMOPAgent -v
@xiaohe27
Copy link
Contributor

@owolabileg The problem should be related to the RV-Monitor's statistics function for raw monitors. It was addressed in RV-Monitor's issue 119 (private repo), but not merged to RV-Monitor's master branch, not mentioning the released version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants