Skip navigation
VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (6 pts)
3,478 Views 25 Replies Last post: Nov 11, 2011 11:45 AM by LucD RSS
1 2 Previous Next
toha Enthusiast 92 posts since
Nov 5, 2004
Currently Being Moderated

Dec 11, 2009 6:20 AM

PowerCLI 4.0 update 1, extremely slow startup

I have updated PowerCLI to 4.0 update 1 on couple servers and on both systems PowerCLI shell startup is extremely slow, it takes like 5 minutes to get prompt when it took less than 30 seconds on last version. Both systems are Windows 2003 Standard 32-bit SP 2, .net 3.5 SP 1 and PowerShell 1.0 installed.

 

Anyone else seeing this?

alanrenouf Master VMware Employees vExpert 769 posts since
Feb 28, 2006
Currently Being Moderated
1. Dec 11, 2009 6:40 AM in response to: toha
Re: PowerCLI 4.0 update 1, extremely slow startup

 

Mine are a similar setup and starting just as fast as the last version, what happens if you start a normal powershell session does that take a while ?

 

 

If you start a normal session and then load the snapin does that take just as long ?

 

 

From the normal powershell session use: add-pssnapin VMware.VimAutomation.Core

 

 

If you found this information useful, please consider awarding points for Correct or Helpful.

 

Alan Renouf

http://virtu-al.net

 

 

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
alanrenouf Master VMware Employees vExpert 769 posts since
Feb 28, 2006
Currently Being Moderated
3. Dec 11, 2009 7:19 AM in response to: toha
Re: PowerCLI 4.0 update 1, extremely slow startup

So the add-pssnapin takes a while ?

 

 

 

 

If you found this information useful, please consider awarding points for Correct or Helpful.

 

Alan Renouf

http://virtu-al.net

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
LucD Guru User Moderators vExpert 8,981 posts since
Oct 31, 2005
Currently Being Moderated
4. Dec 13, 2009 2:00 AM in response to: toha
Re: PowerCLI 4.0 update 1, extremely slow startup

Since you are running PowerShell v1 it could be the ngen bug that you see.

Try the advice in Speeding Up PowerShell Startup, or even better upgrade to PowerShell v2 where this installation bug is fixed.

Blog: http://lucd.info | Twitter: @LucD22 | Book co-author: http://powerclibook.com
harkamal Expert 322 posts since
Mar 19, 2009
Currently Being Moderated
5. Dec 13, 2009 10:39 PM in response to: LucD
Re: PowerCLI 4.0 update 1, extremely slow startup

I noticed same behavior..powershell opens in a flash, and it takes about a minute to load vmware snapin..tried ngen fix, but of no use

 

Get-PSSnapin -r vmware* | Add-PSSnapin

rengelen Novice 12 posts since
Nov 15, 2006
Currently Being Moderated
7. Dec 14, 2009 5:22 AM in response to: toha
Re: PowerCLI 4.0 update 1, extremely slow startup

Same problem here, some systems work without any problem and others are extremely slow.

On systems with the problem, PowerShell itself starts in a blink of an eye, but it takes about 5 minutes to add the snapin (while the system seems to be doing nothing). On one ore two systems it helped when I removed PowerCLI and PowerShell, then upgraded .NetFramework, then installed PowerShell v2 and PowerCLI 4 U1. But on the citrix farm, where I realy need it, nothing seems to help.

harkamal Expert 322 posts since
Mar 19, 2009
Currently Being Moderated
8. Dec 14, 2009 9:57 PM in response to: rengelen
Re: PowerCLI 4.0 update 1, extremely slow startup

lets wait for Mr.Carter's blessing

c_shanklin Master VMware Employees 943 posts since
Dec 3, 2007
Currently Being Moderated
9. Dec 14, 2009 11:40 PM in response to: harkamal
Re: PowerCLI 4.0 update 1, extremely slow startup

I've asked the dev and QA teams to chime in and give any advice they have, so we'll see what their input is.

 

ISTR a back in the days of 1.0 there was a slow startup on 64 bit unless you had installed .NET 2 SP1. I don't know if that still applies, which is why I asked the team to have a look.

 

=====

Carter Shanklin

Read the PowerCLI Blog
[Follow me on Twitter|http://twitter.com/cshanklin]

Carter Shanklin | VMware Product Management | @cshanklin
andrey.anasta… Enthusiast VMware Employees 80 posts since
Mar 5, 2008
Currently Being Moderated
10. Dec 15, 2009 9:04 AM in response to: toha
Re: PowerCLI 4.0 update 1, extremely slow startup

As you noted, the problem probably occurs depending on environment setup/configuration. So I'll try to figure out what's common in all the environments where the problem was seen.

 

Those who see the problem, can you tell me the following details about the machine on which PowerCLI 4.0 U1 startup is slow:

- OS version, including whether it's 32 or 64 bit

- OS service pack installed, if any

- PowerShell version in which the problem reproduces

- .Net 2.0 service pack installed, if any

- While you're waiting for PowerCLI to start, what's the CPU usage? Is there a process which seems to be eating most of the time of one of the CPU cores? Which process?

VCPaul Enthusiast 17 posts since
Feb 16, 2007
Currently Being Moderated
11. Dec 17, 2009 1:25 PM in response to: andrey.anasta…
Re: PowerCLI 4.0 update 1, extremely slow startup

Disable "Check for publisher's certificate revocation" in Internet Explorer. This might speed up PowerCLI setup and startup if the machine does not have Internet access.

rengelen Novice 12 posts since
Nov 15, 2006
Currently Being Moderated
12. Dec 18, 2009 12:56 AM in response to: VCPaul
Re: PowerCLI 4.0 update 1, extremely slow startup

VCpaul,

 

Thanks to you're suggested setting everything works like a charm now!!

VCPaul Enthusiast 17 posts since
Feb 16, 2007
Currently Being Moderated
13. Dec 18, 2009 5:41 AM in response to: rengelen
Re: PowerCLI 4.0 update 1, extremely slow startup

Thank you for the feedback. I hope Andrey reads this. The problem also exists in many other products, for example some Citrix consoles and DataCore SANmelody.

andrey.anasta… Enthusiast VMware Employees 80 posts since
Mar 5, 2008
Currently Being Moderated
14. Dec 18, 2009 6:12 AM in response to: VCPaul
Re: PowerCLI 4.0 update 1, extremely slow startup

Thanks for the hint VCPaul - it helps a lot. Right now I'm trying to break a system in the right way to reproduce the issue

Bookmarked By (0)

Share This Page

Communities