It is not a very common error and I do not have much to suggest, sorry.
I suppose that you have added the javamelody jar file in WEB-INF/lib.
(not in tomcat lib directory).
I suppose that the webapp was deployed correctly without a hot
redeployment going bad (leading to several javamelody threads perhaps)
and that the server resources (cpu, memory) are ok.
If there is no obvious solution, I suggest testing on another server or
another webapp in order to find the difference with a working case.
bye,
Emeric
Le 09/06/2011 18:33, omixen a �crit :
In your previous email, you were saying "it is trying to write on the
same Rrd file in case there are twoseparate instances of the Java Melody
in the same server". I would say Yes, it could be something like that,
if we add "and in the same webapp" at the end.
And if we read the names of the threads in your last email it could be
the case.
But first, it was a good idea to use the storage-directory parameter, in
order to use different directories in this case (same computer, same
webapps names in two server instances).
Then, it does not work yet, so it is something else...
You said:
"2 javamelody
2 jrobin
5 javamelody app_name
5 jrobin app_name
1 javamelody dummytobringup
1 jrobin dummytobringup".
These numbers do not sound correct at all.
If you have configured javamelody in only one webapp, there should be only 1 thread with name starting with javamelody and 1 thread with name starting with jrobin.
And not 8 of each thread ! And if "app_name" is the name of your webapp, what is "dummytobringup" and why is there javamelody threads in this webapp?
Why are there so many javamelody filters initialized with each one
starting 1 javamelody and 1 jrobin threads ?
I suppose that the configuration between the 2 server instances is
related to the issue.
(and do you confirm that you use Tomcat 5.5 and not Tomcat 7 ? I ask
because of web-fragment.xml)
bye,
Emeric
Le 14/06/2011 21:50, omixen a �crit :
Usecase I have is that each update/deployment of the code will have various fixes that, from the javamelody review point of view, should have an impact on specific methods (http, ejb, sql, etc). It would be nice to have a marker on each collection/aggregate based on the app version.
From a detail-point-of-view showing over a long period of time show the same method with different statistic characteristics for each app version would really help represent if the app is improving over time. (or, just show one specific app version of statistic information)
thoughts? feasibility?
-D
If you are still investigating this issue, the answer is:
If you have configured javamelody in only one webapp, there should be only 1 thread with name starting with javamelody and 1 thread with name starting with jrobin.
And if you have 2 monitored webapps in one server, you will have 4 threads, etc.
bye,
Emeric
Le 16/06/2011 20:36, omixen a �crit :