Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Speaking of Java...

Speaking of Java...

Scheduled Pinned Locked Moved The Lounge
androidjavaasp-nethelpquestion
14 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu Peter
    wrote on last edited by
    #1

    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

    "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

    D J R S B 5 Replies Last reply
    0
    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

      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

      D Offline
      D Offline
      dandy72
      wrote on last edited by
      #2

      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.

      Kornfeld Eliyahu PeterK 1 Reply Last reply
      0
      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

        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

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        Every modern IDE that I know of sucks up CPU cycles at a crazy rate.

        K 1 Reply Last reply
        0
        • J jschell

          Every modern IDE that I know of sucks up CPU cycles at a crazy rate.

          K Offline
          K Offline
          kalberts
          wrote on last edited by
          #4

          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...)

          D 1 Reply Last reply
          0
          • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

            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

            R Offline
            R Offline
            raddevus
            wrote on last edited by
            #5

            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.

            Kornfeld Eliyahu PeterK 1 Reply Last reply
            0
            • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

              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

              S Offline
              S Offline
              Super Lloyd
              wrote on last edited by
              #6

              "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!

              1 Reply Last reply
              0
              • K kalberts

                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...)

                D Offline
                D Offline
                dandy72
                wrote on last edited by
                #7

                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...

                D J 2 Replies Last reply
                0
                • D dandy72

                  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...

                  D Offline
                  D Offline
                  djordje nikolic97
                  wrote on last edited by
                  #8

                  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.

                  D 1 Reply Last reply
                  0
                  • D djordje nikolic97

                    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.

                    D Offline
                    D Offline
                    dandy72
                    wrote on last edited by
                    #9

                    djordje.nikolic97 wrote:

                    The only reason I do not use ReSharper is that it slows my PC down so much

                    That was my point. No matter how fast a system is, ReSharper will find a way to make it feel sluggish.

                    1 Reply Last reply
                    0
                    • D dandy72

                      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.

                      Kornfeld Eliyahu PeterK Offline
                      Kornfeld Eliyahu PeterK Offline
                      Kornfeld Eliyahu Peter
                      wrote on last edited by
                      #10

                      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

                      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                      1 Reply Last reply
                      0
                      • R raddevus

                        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.

                        Kornfeld Eliyahu PeterK Offline
                        Kornfeld Eliyahu PeterK Offline
                        Kornfeld Eliyahu Peter
                        wrote on last edited by
                        #11

                        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

                        "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                        R 1 Reply Last reply
                        0
                        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                          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

                          B Offline
                          B Offline
                          bence98
                          wrote on last edited by
                          #12

                          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)

                          1 Reply Last reply
                          0
                          • D dandy72

                            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...

                            J Offline
                            J Offline
                            James Lonero
                            wrote on last edited by
                            #13

                            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.

                            1 Reply Last reply
                            0
                            • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                              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

                              R Offline
                              R Offline
                              raddevus
                              wrote on last edited by
                              #14

                              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:

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups