System::getStatistics() and Objects created

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

System::getStatistics() and Objects created

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:20 pm

by JensRichnow >> Tue, 4 Feb 2003 20:22:23 GMT

I want to capture the amount of objects created for a certain process. I tried varies approaches, i.e., use the profiler (process.startProfile(), etc.), use the System::getStatistics() or Monitor and attempt to write my own sampler.

You might guess all three outputs vary considerably, although I would have thought that the two methods provided in Jade would be at least close.

Does somebody know whether the "Objects Created" parameter in the first two sampling methods includes persistent as well as (shared) transients?

In my own sampling code I can easily differentiate the creation mode (persistent, vs. (shared) transient). Currently I put the code in the ::create() of as many superclasses in the schema as possible and that gives me a pretty good picture. It would be nice if one could somehow attach the sampling to the Object class as this would be the sensible place to do so. The sampling currently does not include collections created exclusively and is therefore 'undersampled'.

I know that the Jade provided methods include all objects created (system-wide statistics).

I'm concerned for two reasons. (1) The Monitor for instance gives me at least twice the amount of objects created as the 'hand sampling'. (2) In this particular application I have to multiple the objects created for one process by at least 100,000. Therefore a few objects in the sampled process will have quickly repercussions on the DB performs I would assume.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: System::getStatistics() and Objects created

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:20 pm

by cnwrwm1 >> Tue, 4 Feb 2003 23:32:46 GMT

The statistics obtained by the System::getStatistics method are persistent object statistics.

A suggestion : if you are having difficulty in this area, have you tried using the JADE sampling app to look at what is happening ? See Chapter 4 of the JADE IAG.

Richard Mitchell

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: System::getStatistics() and Objects created

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:20 pm

by JensRichnow >> Wed, 5 Feb 2003 1:16:29 GMT

Thanks Richard,

the Sampling App is actually described in Chapter 4 of the ObjectManager Guide and specifically starting with p 149 (pdf version), for those who need to have a quick look. It took me almos one hour to find it.

Good to have such a tool though. The Cancel button on the class selection window needs some rethinking as I had to trust the documentation that the selection is actually done using this button.

Honestly, the app is nothing for the fainthearted and not to have a quick overview. Does somebody already has a tool to interpret the output file? If not I would look into writing one as a file dump of 85 Mb of numbers is not very meaningful.

Thanks anyway and if nobody comes back with a tool that formats the output file to something meaningful I look into writing one.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: System::getStatistics() and Objects created

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:20 pm

by cnwrwm1 >> Thu, 6 Feb 2003 23:38:34 GMT

Jens

My apologies for pointing you to the wrong manual (right chapter !). Before you launch into writing your own analysis app, I think there is a basic analysis app on the 5.2 release CD in the ...Windows\Examples\Sampling directory, which may help.

Cheers

Richard


Return to “General Discussion”

Who is online

Users browsing this forum: Bing [Bot] and 5 guests

cron