I have a problem with my Javamelody Collector server. I start a Tomcat server locally that runs the Javamelody Collector server and I start three applications that register to the Collector server upon starting them. I then send a few request (10 requests or similar) to the applications in order to check if Javamelody recognizes them correctly which it does.
However, when I add an aggregate all where I take the three applications together problems start:
Firstly, the count of http requests of the application "all" is often not equal to the sum of the http requests of the other three applications. Instead, I observed that it was double or equal to the number of http requests of one of the applications. Sometimes, it was also assigned right.
My main problem comes after that though. Javamelody increases the number of hits by itself when I let it run. It does so in the aggregation "all" and in (from what I could reproduce by the steps described in the beginning) one of the applications. At least one time it increased the number of hits in two of the three applications but I was not able to reproduce that.
Moreover, it seems like the number of requests is exponentially growing (roughly doubling every time Javamelody calls the applications to get the information), so that I end up with trilions of requests after a short period of time and such that the number of requests even overflows.
I tried to track the malbehavior down but I cannot solve it. I tracked the addHits function (in CounterRequest.java) and saw that Javamelody adds big numbers of requests there. I could not track the error down with debugging because the places where the addHit method was invoked differed so I couldnt pinpoint the location of the error.
Attached to this I add some pictures of my configuration of the collector server together with the behavior I could observe.
I would be very happy if you could help me out here.
Kind regards, Janis