Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Unexpected Execution Time/ Events proceeding increased
Unexpected Execution Time/ Events proceeding increased [message #50741] Tue, 17 January 2006 14:34 Go to next message
test is currently offline test
Messages: 51
Registered: July 2009
Member
Hi,

I've profiled the Carmodel example, which i modified a little bit, with
the 'Execution Time Analysis'. For this test i used TPTP 4.1.0.

The calling of one method (creating approximately 600.000 objects) needs
normally 220ms.

Problem:
A1.Start the CarModel main() method and connect to Agent Controller
(-XrunpiAgent:server=enabled)
A2.Attach Java Process to this Agent and Start Monitoring.
A3.Create the objects

The Creating of the 600.000 objects now takes 57 seconds and the profiler
proceeded 1.200.000 events.
Why are so many events proceeded by the profiler??

The problem occurs not, if i do:
1. A1.
2. A3.
3. A2.
4. A3 again.
Re: Unexpected Execution Time/ Events proceeding increased [message #50918 is a reply to message #50741] Thu, 19 January 2006 14:52 Go to previous message
Samson Wai is currently offline Samson Wai
Messages: 46
Registered: July 2009
Member
Hi Steffen,

The Java profiler has to construct and populate an internal hash table
immediately after the JNI call JVM_OnLoad() during JVM starts up. The JVMPI
classDef, methodDef, and objAlloc events are usually being generated during
the program load and this might take a comparatively "significant" amount of
time to create the associations in the profiler's internal hash table. This
expensive operation will be performed once for every Java object being
loaded. The hash table is later being used as references when
methodEntry/methodExit events are received. That is why you see a more
accurate result if you attach to the profiling agent after the objects have
been created since the object entry has already been entered into the
profiler's internal hash table.

Samson


"Steffen K
Previous Topic:How to attach to tomcat
Next Topic:Event handling - New Agent Controller
Goto Forum:
  


Current Time: Tue Sep 16 17:49:32 GMT 2014

Powered by FUDForum. Page generated in 0.02160 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software