-
-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jspm install times out and 100% CPU usage #675
Comments
If you're getting a timeout, this may be due to instability on GitHub or due to running over an internal proxy. Is it still giving issues? Are you sure you don't need a HTTPS proxy at all? Are your credentials definitely showing up as testing ok? |
@martingust did you make any progress here? |
@guybedford Credentials are ok and no need for proxy. We increased timeout further and added a second core to the processor, that gets the packages downloaded but still obnoxiously slow and CPU running on 100% for long time. Might need even more CPU, also going to try with node 0.10.x oppose to 0.12.x which seemed to solve similar problems for others. |
@martingust thanks for the update. Perhaps if you could share the exact install and I'll check it myself in Windows. Is it just the Aurelia skeleton? |
Hi, I'm also experiencing the same issue with the same repository Seeing 99% CPU, a jump from 20 - 77% memory and lots of "Git for Windows" processes in the task manager :( |
This is just common operation - jspm performs parallel downloading over the tree. There are build operations that are applied when installing a package from npm, and sometimes jspm can end up doing more processing than it needs here. If you're specifically installing a package from npm that is taking a while I can look into it to try and assist with the right override to reduce the compilation steps, but otherwise this is just normal operation. |
Chucking more CPU and memory at the server and increasing the timeout on jspm seems to have fixed the issue - it does seem though that jspm isn't giving the server time to breath though and so without enough memory / processing power to complete each task in a timely manner it implodes on itself - kind of like a tight loop without time for garbage collection/event handling. |
@guybedford This is a custom Aurelia app, but we did have the same problems when testing with Aurelia skeleton. @deveddie Did this fix all problems, do they download fast and not 100% CPU? Or did it just fixed the timeout issue? |
One option here might be to start pooling the Git callouts potentially, I created an issue for this in jspm/github#42. Note that implementing jspm/github#25 directly would potentially alleviate this as well as the other issues with calling out to git. |
@martingust The server was still very stressed and I received a good number of timeout warnings but it did eventually complete in one go. The same install caused almost no issues on my laptop pc, only on the vm server I use for dev work. Luckily as it was a vm I could supply it with more resources easily. |
@deveddie it could be worth ensuring you've updated to the most recent version of git in the path as well here as that may well be where these performance gains are to be found. We're basically running dozens of |
@guybedford Yip, i'd agree but both my local machine and the VM server had the latest version of git loaded on them yesterday morning direct from the git website. |
@guybedford any updates on this? I'm encountering this issue as well. I'm running Windows Server 2012 on my builder server too. |
@amcdnl Don't use windows! 😜 |
@lookfirst Some of us are forced to by our evil overlords :( |
Its my build server, I don't use locally ;) |
@amcdnl I can't fix this until I'm able to replicate it unfortunately. Alternatively I can run proposed fixes and have you test them against your own server, but it will be a long process to do that type of feedback loop. Just to go over the basics (and apologies if this is repeating):
It would help to know so I can try and replicate in a VM. Thanks. |
Can you confirm you're running the latest version of Git? Can you let me know what version of Windows this is running? Is it just a execution environment? @martingust @deveddie are you guys still getting this too? |
@amcdnl can you confirm that a normal jspm install on a Windows 2012 server is all that is needed to replicate? Or do I need to specifically be running through a special environment? |
@amcdnl I still have the issue, but added a third core to the VM and that gets through the install reasonably fast. @guybedford That would not be all needed. I have tried jspm install on a dedicated Windows 2012 Server, 6 core processor, on a different network and it behaves normal. |
Yep, sorry, have been fighting bugs. I was going to say I think the common thread here is that all the problems seem to be on VMs. |
Thanks - I can't do anything to assist here until someone can explain how I can replicate it. Will leave this up for discussion in the mean time. |
@guybedford Probably a windows server 2012 VM could do it. you can download a trial version. @martingust I bumped my VM to 8 cores and had no luck. :( |
This is driving me insane. I think it would be pretty easy to setup a public repo that does a jspm install on appveyor. Would that help show the problem and figure out what is going on? |
Having the same problem here. This is really killing me. I have one week to evaluate and move on. My build server is an Azure VM running Windows Server 2012, 4 core, 7 GB. jspm install times out. I am trying to get aurelia-skeleton working. After spending a week working with the hosted build controller on VSO, I moved it to an on premise. Works well on my dev machine, but the VM, not so. You can easily reproduce this by just trying to do a jspm install -y on aurelia-skeleton on an Azure vm. |
@guybedford According to everybody the way to replicate would be:
|
@guybedford do you need any more information on this? This issue is the last standing issue for me. I will have to move on to something else to get Aurelia loading. I really want to use jspm. |
You can see the comments in the pull request - I'm not sure which branch you'd want to consider it for (the git-pool or master). I believe this is only a problem on windows platforms, so I just ditched the pool altogether for non-windows platforms. |
A massive thanks to @crisptrutski for the pooling work and @brendonparker for testing this out and getting it in. The pooling solution has been released on the jspm beta ( |
wow, works fine on teamcity. win server 12 and win 8.1. Thanks! |
Works very good! This is helping us a lot and probably a lot of others. Big thanks @crisptrutski @brendonparker @guybedford great work!!! |
That is great. When the beta will not be beta anymore? |
We're just waiting on Aurelia to be updated to work against the latest beta at the moment, being tracked in aurelia/bootstrapper#10. If anyone is able to assist with that, it may well be very welcome there. |
Confirmed this works with beta with my setup. |
Confirmed, beta works. Can't wait for Aurelia to be updated. |
@guybedford aurelia/bootstrapper#10 was closed 20 days ago, but it looks like beta and aurelia still doesn't work together. Are there other issues that hold jspm beta to be not beta anymore? |
Was having the same issue so I Now
It's not always the same thing, ran it before and got an error on same thing happens using a script var jspm = require('jspm');
console.log("Installing")
jspm.install(true).then(function(){ console.log("Done")}).catch(function(err){ console.error("uh oh", err)}); |
@togakangaroo can you share your Also can you make sure you check the install |
Hi @guybedford my checking looking at the
Anything else to check? btw my
|
For reference, created a blank directory with just the following
I am on windows 8.1 |
@guybedford did that help? Still hoping to do something that will enable us to deploy |
@togakangaroo have you got authentication configured in your |
so...no? |
@togakangaroo this could be a character encoding issue with your npm credentials. To debug this, try adding a |
@guybedford not sure what it should be but after adding that line
that certainly doesn't seem like a character encoding issue to me? |
Thanks for following up, so it is your correct password to npmjs.org there? |
@guybedford yes, it is. Would a skype session or something along those lines help? |
Are you completely sure? Did you try directly copying the password as written from that log statement, running |
@guybedford I have now. Did this both from conemu/powershell and a basic cmd terminal and was able to log into the site. The Really wish I had time to put a day aside digging into this but I don't for at least a week or two. |
@togakangaroo sure if you do have time to look into it note that the only step running between jspm having that exact auth that you checked and the actual loopup is simply a GET request to |
For the record, I was able to get jspm@beta working (
|
@togakangaroo if the build server has persistent state this may be a cache issue, perhaps try running |
I’m having trouble
jspm install
on our CI server (Windows Server 2012). 9/10 times I getTimed out on lookup for github:aurelia/…
.When looking at the task manager, new
Git for Windows
processes keeps piling up, and the CPU is running on 100% until most of the packages have timed out.I realise the problem most likely is on my end, but have no clue really how to continue troubleshooting this, any ideas?
The text was updated successfully, but these errors were encountered: