As I mentioned in this Blog Oracle Coherence, Make sure the filter is using the index you created , Btrace is a great tool to tell whether Coherence query is picking up the index or Not. for that case, I just use the Sun hotspot JVM as an example.
If you use Btrace to profiler the jrockit-based cache member, you may get the following errors. ( I tested on windows, no error, but the trace logic never get hit, on Linux get the Null calssloader error.)
java.lang.IllegalArgumentException: null ClassLoader |
Conclusion.
the Btrace utility doesn’t support jrockit jvm based profiling.
Then How to trace jrockit jvm to to makre sure filter is using the index we created? the short answer is they have a powerful profiling tool called Mission Control.
when you load up the Misson control and connect the cacheserver node. Right click and select “Start Console “
Go to the advanced tab.
Add one profiler class, “com.tangosol.util.SimpleMapIndex”. then pick up the method we are interested.
then click to run the profiling.
>>do you insert /update, query, addindex/remove index. you will see the counter keep changing. From the statistics counter, you might know which method get called or not. their performance in terms of timing. and their loading in terms of req/s