-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Workspace Agent is slow to boot on macOs #6169
Comments
Can you elaborate on ways to make it faster because it is not clear from the description to me |
@garagatyi I'm updating the issue. Some PR will be linked |
Can we see numbers of perfomance report before we start applaing some changes? |
@skabashnyuk On my computer, on docker or minishift the start time of the agent is reduced by 5 seconds (15 seconds before to less than 10 seconds after) |
Perfect. |
@skabashnyuk I suppose your comment is a little bit odd. In current design, code is eating memory, cpu and I/O and what my PR are doing is that it reduces memory, cpu and I/O without changing the logic. |
@benoitf I just want to understand what is the price and what is the profit. |
@skabashnyuk I see only profit ? |
I think that topic you've touch about performance is very important and at the same time it very sensitive to environment and opinions of persons who are doing measurements. In this case, to avoid any speculation I'm asking to base this work on some scientifical data, profiler data, logs report. It can help to better understand the way how to solve existed problems and do not make problems in future. Closer to business:
I think pure profit, except some subjective codestyle questions. They are quite easy money, interesting to see how much time from your 5 sec it takes.
This is not so easy because it changes some fundamental approaches that we use for a while. Would be nice to see how much time we won in this time, to understand if it's worth of time discussing circumstances. |
@skabashnyuk work has been done on profiler data. It's not speculation. Any person running profiler will see that. How do you think I was able to detect some singletons taking up time to start ??? Also I start to think you never read any document on how to improve applications startup time on Tomcat |
ok. Can you share this data? About what level of numbers we are talking about, nano seconds, milliseconds, ten's of seconds.
It was rude and I do not think it is related to the topic. |
@skabashnyuk |
Also guess what is the first point of https://wiki.apache.org/tomcat/HowTo/FasterStartUp It is Among the scans the annotation scanning is the slowest. That is because each class file (except ones in ignored JARs) has to be read and parsed looking for annotations in it. |
@benoitf before doing some conclusions, I expect some sort of performance report like this codenvy/codenvy#1466 (comment) on which base we can elaborate. And yes I do know what |
@skabashnyuk : Why don't we have automated performance tests and profiling suites like this codenvy/codenvy#1466 (comment) ? We should track and monitor that in an automated fashion. As we don't want to introduce functional regression, and we have functional tests for that, we don't want to introduce performances regressions either. |
@slemeur good question. I don't know. May be because it's not what easy to automate. |
Here is a screencast Environment: docker:
First, I start che 5.17.0 result are : around 10s for 5.17.0 |
@benoitf can you clarify whether you got these results by applying all 4 improvements? And what was the target OS? |
@garagatyi I've updated my previous comment adding macOs/docker version and adding the fact that I had applied the 4 improvements |
thanks |
@garagatyi if it's not clear enough, let me know I can add details |
It's clear for me. |
also I have not yet opened issues but during the profiling I've found other objects that takes time to initialize
|
|
Running the workspace agent is quite slow, especially when I/O is not so fast.
Which is the case on my environment : macOs / docker
Reproduction Steps:
Start Eclipse Che workspace, and look at the time used by the workspace agent to boot.
Running profiler shows that it can run faster.
PRs:
The text was updated successfully, but these errors were encountered: