-
Notifications
You must be signed in to change notification settings - Fork 933
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
Unable to cf push large jar file with mcafee antiviurs software #1006
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/134717897 The labels on this github issue will be updated when the story is started. |
Thanks for those details. Cheers, |
We have a similar issue with our node app which has lot of dependencies ( 17K files together). On some environments, CF push fails at the resource matching step. So having a CLI flag to disable resource matching would be helpful to ensure our node app can be successfully pushed to all CF environments. |
@mgadiya what do you mean it's failing at the resource matching step? If resource matching is failing, we should fix it- not introduce a flag to skip it. |
@dkoper apologies for the confusion. I meant to say that cf push timed out when it called CC's /resource_match endpoint because it is trying to do the resource match for all the files of our app. We discovered it by looking at CF Trace output. |
@mgadiya Please submit a new issue and include that error response (and request, although you can omit the lengthy body). The solution we're exploring for the issue in the issue description will not resolve the issue you raised. Many thanks. |
Is there an update on this specific issue? The last update on this issue was 11/23/2016 by Dies. It looks like issue #1042 is fixed in the current CLI version 6.23.1, according to that one's latest update but am wondering about this one specifically and whether the previously mentioned 'push command refactor' effort addressed it or not (since the case is still in 'open' status). |
@shouah We have started the refactor of At the same time, we've done some explorations to reduce file I/O when pushing an app, which I believe will resolve this issue. Those will be implemented and evaluated during the refactor of the app upload part of |
@shouah @mgadiya @randomtask1155 Use a recent release (e.g. cf CLI 6.30.0) - it has an experimental Cheers, |
Here is the java executable file stats:
Using 64-bits CLI 6.30.0 on Windows 7 Enterprise 64-bits to push the jar file with --no-start option:
It looks like nearly a 700% improvement with standard AV setup between push and v2-push. There doesn't seem to be a major difference in v2-push without AV exclusion or with AV exclusion because it seems that the majority of the time is taken by the network upload operation itself so subject to traffic load. However it's worth noticing that v2-push doesn't seem to be sensitive to AV setup so it performs about the same with or with AV exclusion filter. |
Thanks @shouah - great feedback! |
This is now incorporated in Regards, |
when pushing a jar file that has 50k small files cf cli has to extract the jar file, perform resource matching, and zip up for upload.
After running perf when the cf push was generating the resource_match request we observed that cf was only consuming about 3 % cpu and the kernel was consuming about 25%. Further investigation found that the kernel usage was a result of antivirus software that is scanning on reads and writes which means the 50k files get scanned during extraction and during chksum. This is the cause for the delay.
this is impacting a CI pipeline because it takes more than 1 hour to push a single app like this witch does not allow us to perform constant builds
some workarounds we considered:
Would it be possible to have an option to skip resource matching and unpacking of the jar file?
The text was updated successfully, but these errors were encountered: