Closed GoogleCodeExporter closed 8 years ago
I made a mistake, the apps which have the problem is on a tomcat 6 server
6.0.37.
Original comment by adrien.n...@gmail.com
on 30 Jun 2014 at 2:22
When I connect directly on the apps by the url
http://myserver:port/myapp/monitoring
It works, I can access to mbeans.
Original comment by adrien.n...@gmail.com
on 30 Jun 2014 at 2:29
It seems that the collector server can call the monitored apps over http. But
when asking for mbeans, the "part=mbeans" http parameter does not get through,
for some servers.
I suggest to log on Linux of the collector server, and then to execute the
following commands to see if there is a difference between the responses (it
should be):
wget http://myserver:port/myapp/monitoring?format=serialized
wget http://myserver:port/myapp/monitoring?format=serialized&part=mbeans
where myapp is one of the monitored app where it does not work.
By chance, you may have the xstream library in one of these monitored apps. In
this case, execute the following commands instead to have human readable
responses:
wget http://myserver:port/myapp/monitoring?format=json
wget http://myserver:port/myapp/monitoring?format=json&part=mbeans
Original comment by evernat@free.fr
on 4 Jul 2014 at 1:04
any news?
Original comment by evernat@free.fr
on 19 Jul 2014 at 12:06
Thanks for your response.
In fact the app was on tomcat 6, but we tried under tomcat 7, the problem still
persist. We are investigating but it's holidays for many people :)
Original comment by adrien.n...@gmail.com
on 21 Jul 2014 at 12:04
any news?
Original comment by evernat@free.fr
on 30 Aug 2014 at 5:07
With this :
wget http://myserver:port/myapp/monitoring?format=serialized
wget http://myserver:port/myapp/monitoring?format=serialized&part=mbeans
I don't have the same result.
It's in binary format, with "less" I can see some line of text.
With mbeans option I can see this line at the beging of the result :
<AC><ED>^@^Esr^@^Sjava.util.ArrayListx<81><D2>^]<99><C7>a<9D>^C^@^AI^@^Dsizexp^@
^@^@^Lw^D^@^@^@^Lsr^@ESCnet.bull.javamelody.Counter]<CF>a<F3>
^\<87><D0>^B^@^MZ^@
displayedZ^@^LerrorCounterJ^@^SestimatedMemorySizeI^@^PmaxRequestsCountL^@^Kappl
icationt^@^RLjava/lang/String;L^@^PchildCounterNameq^@~^@^CL^@^Ferrorst^@^VLjava
/util/LinkedList;L^@^HiconNameq^@~^@^CL^@^Dnameq^@~^@^CL^@^Hrequestst^@$Ljava/ut
il/concurrent/ConcurrentMap;L^@^]rootCurrentContextsByThreadIdq^@~^@^EL^@
startDatet^@^PLjava/util/Date;L^@^KstorageNameq^@~^@^Cxp^A^@^@^@^@^@^@^@^@^@^@^@
'^Pt^@)/my_app-app_myservert^@^Csqlpt^@
dbweb.pngt^@^Dhttpsr^@&java.util.concurrent.ConcurrentHashMapd<99><DE>^R<9D><87>
)=^C^@^CI^@^KsegmentMaskI
^@^LsegmentShift[^@^Hsegmentst^@1[Ljava/util/concurrent/ConcurrentHashMap$Segmen
t;xp^@^@^@^O^@^@^@^\ur^@1[Ljava.util.concurrent.ConcurrentHashMap$Segment;Rw?A2<
9B>9t^B^@^@xp^@^@^@^Psr^@.java.util.concurrent.ConcurrentHashMap$Segment^_6L<90>
X<93>)=^B^@^AF^@
loadFactorxr^@(java.util.concurrent.locks.ReentrantLockfU<A8>,,<C8>j<EB>^B^@^AL^
@^Dsynct^@/Ljava/util/concurrent/locks/ReentrantLock$Sync;xpsr^@4java.util.concu
rrent.locks.ReentrantLock$NonfairSynce<88>2<E7>S{<BF>^K^B^@^@xr^@-java.util.conc
urrent.l
With json I have an error 500.
Original comment by adrien.n...@gmail.com
on 1 Sep 2014 at 7:56
It confirms that the problem is on the monitored app and not in the collector
server.
The monitored app does not give the good data for:
http://myserver:port/myapp/monitoring?format=serialized&part=mbeans
Because when using the mbeans parameter, the binary data is supposed to contain
net.bull.javamelody.MBeanNode and not net.bull.javamelody.Counter like you have.
Can you check what is exactly the javamelody version in the monitored app?
It is displayed at the bottom of http://myserver:port/myapp/monitoring
And can you check that the following page with 2 parameters also contains the
MBeans tree as html?
http://myserver:port/myapp/monitoring?format=html&part=mbeans
> With json I have an error 500.
OK, given this error 500, it seems that this monitored app does not include the
xstream library.
Original comment by evernat@free.fr
on 1 Sep 2014 at 11:25
We use JavaMelody 1.50.0
Original comment by adrien.n...@gmail.com
on 2 Sep 2014 at 9:09
You say 1.50.0, but you do not say what is the version displayed at the bottom
of http://myserver:port/myapp/monitoring
And no reponse for the second question.
No response for the questions above, so closing as invalid/incomplete.
I hope that you will find the problem and can fix it.
Original comment by evernat@free.fr
on 16 Nov 2014 at 4:18
Original issue reported on code.google.com by
adrien.n...@gmail.com
on 30 Jun 2014 at 2:19