-
Notifications
You must be signed in to change notification settings - Fork 12
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
Performance issues with USS Download #23
Comments
@std4lqi any idea what could cause this problem? Thanks. |
I cannot reproduce it at my end. I talked with Tina, who reproduced it. It seems the stream end event is received with some delay, or maybe not received at all, resulting in 2-min timeout. We'll look into it this week. Thanks! |
Are you on Node 8 @std4lqi ? I see this issue: mscdex/node-ftp#228 It looks like that this ftp library is old and not maintained anymore. |
I installed Node 8 and it confirms that it is related to the node version. $ node -v
v8.16.2
$ time zowe zftp download uss /u/haumer/SAM1.cbl
Successfully downloaded USS file '/u/haumer/SAM1.cbl' to local file 'SAM1.cbl'
zowe zftp download uss /u/haumer/SAM1.cbl 0.67s user 0.15s system 27% cpu 2.999 total
$ node -v
v10.17.0
$ time zowe zftp download uss /u/haumer/SAM1.cbl
Successfully downloaded USS file '/u/haumer/SAM1.cbl' to local file 'SAM1.cbl'
zowe zftp download uss /u/haumer/SAM1.cbl 1.29s user 0.27s system 1% cpu 2:02.99 total |
Hi @phaumer Many thanks for your findings! Yes, I'm on Node 8. Tina confirmed her Node 8 works well, while Node 10 and Node 12 have this problem. The events, Will take some time to have better understanding. |
Would it make sense to switch to a new library such as https://github.com/patrickjuchli/basic-ftp ? |
We consider to switch to an active repo forked from mscdex/node-ftp, to avoid big impact. I post my findings at mscdex/node-ftp#228, and will run our system test to see any impact. |
Sounds great. Thanks a lot. |
@std4lqi I tried reapplying the changes you proposed as well, but it did not fix the problem for me (I was using the CLI api from within VS Code). For now I can only continue using basic-ftp with the zftp profile, which worked for me. Do you have an ETA for your fixes? |
Hi @phaumer, I updated zos-node-accessor to 1.0.4, which uses std4lqi/node-ftp forked from mscdex/node-ftp. The mscdex/node-ftp#259 is created, and I hope it could be merged back if that repo is not completely abandoned. The PR #25 is created for review. |
Here is the result.
|
Awesome. I tried the command line ops and it worked for me as well. |
I am experiencing an odd performance problem with the download of USS files. I get expected response times for List, but Download seems to be hanging until timeout or something like that. Getting a 2k file takes over 2 minutes. When I download the same file via sftp command line it takes a few ms. Uploading the same file again takes 2.5 secs.
The text was updated successfully, but these errors were encountered: