VMware {code} Community
MikeHandsome
Contributor
Contributor

Improve VI Perl Performance

Hello again,

I wrote a small java-proggie to monitor my Host an a VM via the VI Perl Toolkit. It works fine. I send perl scripts out of java and send their output data to my management platform. It works good but the scripts responses come back slow. Are there any cheats/tricks to speed up the perl scripts coming from the ESX server.

Thank you again for your help and any hints to speed up my perl scripts to the ESX Server.

Thanx

0 Kudos
1 Reply
lamw
Community Manager
Community Manager

Take a look at the following two documents, the first one is a what's new in vSphere SDK but also have some best practices regarding perf monitoring that is applicable to current VI API http://communities.vmware.com/docs/DOC-9912 and the second one is performance monitoring using the API with some samples and presentations: http://communities.vmware.com/docs/DOC-9840

Depending on how you did your collection, I think best practices is to use property collector spec and using QueryPerf() http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.PerformanceManager.htm... to optimize your queries and only retrieve what you're looking for.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos