Speaking of Java...
-
I have fairly powerful PC (8 core FX-9370 AMD with 64Gb), and had no problem to run anything even together, but now I installed Andriod Studio to start a new project and when Android Studio running the CPU never goes under 20%... It is a Java thing or some Android Studio problem? Any experience with this?
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
-
I have fairly powerful PC (8 core FX-9370 AMD with 64Gb), and had no problem to run anything even together, but now I installed Andriod Studio to start a new project and when Android Studio running the CPU never goes under 20%... It is a Java thing or some Android Studio problem? Any experience with this?
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
Task Manager's Details tab should be able to tell you which process is hogging one of your cores. Sorting by CPU should make it obvious. Process Explorer from Sysinternals might be able to show a little more details. But typically Task Manager is sufficient.
-
I have fairly powerful PC (8 core FX-9370 AMD with 64Gb), and had no problem to run anything even together, but now I installed Andriod Studio to start a new project and when Android Studio running the CPU never goes under 20%... It is a Java thing or some Android Studio problem? Any experience with this?
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
-
I never saw VS consuming CPU cycles just by being started, if I do not request it to perform some operation. Plain editing (with IntelliSense support and immediate marking of syntax errors) is barely noticable on the CPU load. If I start the program I am developing to run under control of VS, there is of course some CPU load even when the program is at a breakpoint or waiting for input, with no active threads. This is to be expeced: VS monitors e.g. the heap and GC continously. But this is at such a level that I never though of it - nowhere close to 20%. If you have threads running under the debugger, and these are in some active state, you must expect the CPU load to be somewhat higher than if you run the executable standalone, especially if you set a lot of conditional breakpoints, and those threads hit the breakpoint without satisfying the condition. Other debugging functions, like monitoring memory use etc., are also bound to take some resources. So I cannot agree with your statement. (For the sake of being impolite: But on the other hand, I have been using Eclipse...)
-
I have fairly powerful PC (8 core FX-9370 AMD with 64Gb), and had no problem to run anything even together, but now I installed Andriod Studio to start a new project and when Android Studio running the CPU never goes under 20%... It is a Java thing or some Android Studio problem? Any experience with this?
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
I've seen this same issue with Arduino studio (it's written in Java) and I have to shut down the IDE all the time or the fans will run on my PC as the CPU usage goes way up. Maybe Android Studio was checking for SDK updates or other types of updates. Or maybe Gradle (build system) is running in background? Maybe it was still doing some background updating since you just installed it? Is it keeping high CPU now? I haven't seen Android Studio be that bad and I do quite a bit of Android development. Every revision of Android Studio does get a bit more bloated however. I Opened Android Studio and Watched Task Manager I have the latest version Android Studio and I fired it up and it is sitting on the splash / open a project screen at about 0.8%. Then I opened a project and let it sit and it's at 0% while I'm doing nothing in it.
-
I have fairly powerful PC (8 core FX-9370 AMD with 64Gb), and had no problem to run anything even together, but now I installed Andriod Studio to start a new project and when Android Studio running the CPU never goes under 20%... It is a Java thing or some Android Studio problem? Any experience with this?
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
"Speaking of Java"? who did this? wasn't me! :omg: Android studio only use 20% of your CPU? You must have one of those 100 cores new Xentreon ultimate CPU, don't you, hey?! :o
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
-
I never saw VS consuming CPU cycles just by being started, if I do not request it to perform some operation. Plain editing (with IntelliSense support and immediate marking of syntax errors) is barely noticable on the CPU load. If I start the program I am developing to run under control of VS, there is of course some CPU load even when the program is at a breakpoint or waiting for input, with no active threads. This is to be expeced: VS monitors e.g. the heap and GC continously. But this is at such a level that I never though of it - nowhere close to 20%. If you have threads running under the debugger, and these are in some active state, you must expect the CPU load to be somewhat higher than if you run the executable standalone, especially if you set a lot of conditional breakpoints, and those threads hit the breakpoint without satisfying the condition. Other debugging functions, like monitoring memory use etc., are also bound to take some resources. So I cannot agree with your statement. (For the sake of being impolite: But on the other hand, I have been using Eclipse...)
-
Member 7989122 wrote:
Plain editing (with IntelliSense support and immediate marking of syntax errors) is barely noticable on the CPU load.
I see you're not familiar with ReSharper...
The only reason I do not use ReSharper is that it slows my PC down so much. I only have an old Phenom II x4 965 and no SSD, so it is quite noticeable. I'll start using it when I upgrade to an SSD.
-
The only reason I do not use ReSharper is that it slows my PC down so much. I only have an old Phenom II x4 965 and no SSD, so it is quite noticeable. I'll start using it when I upgrade to an SSD.
-
Task Manager's Details tab should be able to tell you which process is hogging one of your cores. Sorting by CPU should make it obvious. Process Explorer from Sysinternals might be able to show a little more details. But typically Task Manager is sufficient.
dandy72 wrote:
Process Explorer from Sysinternals
A good one - for Windows... I'm on Linux with this...
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
-
I've seen this same issue with Arduino studio (it's written in Java) and I have to shut down the IDE all the time or the fans will run on my PC as the CPU usage goes way up. Maybe Android Studio was checking for SDK updates or other types of updates. Or maybe Gradle (build system) is running in background? Maybe it was still doing some background updating since you just installed it? Is it keeping high CPU now? I haven't seen Android Studio be that bad and I do quite a bit of Android development. Every revision of Android Studio does get a bit more bloated however. I Opened Android Studio and Watched Task Manager I have the latest version Android Studio and I fired it up and it is sitting on the splash / open a project screen at about 0.8%. Then I opened a project and let it sit and it's at 0% while I'm doing nothing in it.
It was a background worker (I left it run overnight to finish) that installed a local copy of Gradle, even I have the latest already installed on shared location... After finishing it, it came to peace with the computer... Wondering why the shared Gradle didn't satisfied it, maybe that I installed it under /opt...
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
-
I have fairly powerful PC (8 core FX-9370 AMD with 64Gb), and had no problem to run anything even together, but now I installed Andriod Studio to start a new project and when Android Studio running the CPU never goes under 20%... It is a Java thing or some Android Studio problem? Any experience with this?
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
I'm guessing it is the IntelliJ-based Android Studio we're talking about. IntelliJ is notorious for its long indexing times :P The JVM is - in my experience, at least - not too CPU-intensive, it is mostly the RAM that gets used up quick (or at least with the ConcMarkSweep GC; in Java 8, the G1 seems to do better:
-XX:+UseG1GC
) -
Member 7989122 wrote:
Plain editing (with IntelliSense support and immediate marking of syntax errors) is barely noticable on the CPU load.
I see you're not familiar with ReSharper...
Yes, I know that resharper slows down VS. but the project I came into has 190 c#\wpf sub projects. Very slow loading and compiling. It has evolved to get this large and no time to redesign it right.
-
It was a background worker (I left it run overnight to finish) that installed a local copy of Gradle, even I have the latest already installed on shared location... After finishing it, it came to peace with the computer... Wondering why the shared Gradle didn't satisfied it, maybe that I installed it under /opt...
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
Kornfeld Eliyahu Peter wrote:
It was a background worker (I left it run overnight to finish) that installed a local copy of Gradle
Interesting. It is a bit disconcerting that it does this stuff in the background but doesn't even let you know so we see the behavior and can't really tell what is happening. It's not very helpful of the devs to not just give a warning that the background thing is running. Glad you discovered what it was.:thumbsup: