Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 8 of 8

Thread: Eclipse

  1. #1
    Member
    Join Date
    May 2013
    Posts
    165
    Thanks
    58
    Thanked 1 Time in 1 Post

    Default Eclipse

    I use eclipse for writing the small programs that I make and at first it was great though now it lags and frequently stops responding for some seconds. It's pretty annoying and I'm not sure where I could be going wrong since the laptop is new.

    What do you guys think could be the problem?


  2. #2
    Member
    Join Date
    Feb 2013
    Posts
    78
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Eclipse

    Does your computer suck? Maybe you're running too many things at once? I have some very tiny issues with eclipse that happen every once in a while but for the most part, Eclipse works just fine for me. That may or may not have to do with my beast of a pc, but thats besides the point.

  3. #3
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Eclipse

    What programs are you writing? Are you leaving something running in the background? Got a thread in a loop?
    Take a peek at whats running when it seems laggy and try to determine what is hogging the cpu.
    Ask the system to tell you how much RAM is available. Laptops usually have lesser quality chips from the get go and them going bad is common.
    So many options. Do some research and see what clues you can find and post back if you have problems.

  4. #4
    Member
    Join Date
    May 2013
    Posts
    165
    Thanks
    58
    Thanked 1 Time in 1 Post

    Default Re: Eclipse

    Laptop is pretty good and a couple of weeks old with good memory, internet connection is pretty slow though unrelated.
    I'm going through project euler problems. I'm new to windows 8 so I may be leaving things on in the background, I'll do some research on how to check etc.
    Thanks for the advice.

  5. #5
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Eclipse

    Quote Originally Posted by keepStriving View Post
    I'm new to windows 8 so I may be leaving things on in the background
    By that I meant if you are working with threads/loops, you may have a loop creating objects endlessly or something of that nature. It is hard to say exactly without something to go on.
    One thing I learned about new things is that they are new, but this does not mean they are good. Make sure you actually check the total amount of RAM. For what you describe this is a definite possibility. More so than a faulty program, as such a thing would generally cause the JVM to exit or crash instead of just run slow.
    How much RAM does it have and what are you running? Perhaps the RAM is all good but just not quite enough for everything to be open. What size programs are you running? Some of the euler projects are pitfalls/traps that help to teach a point.
    Good luck with your search, if you find the problem post back what it is

  6. #6
    Member
    Join Date
    May 2013
    Posts
    165
    Thanks
    58
    Thanked 1 Time in 1 Post

    Default Re: Eclipse

    6gb with around 5.8gb usable.
    cpu usage is 99%, with eclipse running 126 threads for some reason using 20-45%CPU,the rest of CPU taken by javaw.exe programs each taking around 20-30% cpu. I've only got 2 java projects as I deleted the rest so not sure. I'll try and find out how to delete those threads.

  7. #7
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Eclipse

    Quote Originally Posted by keepStriving View Post
    6gb with around 5.8gb usable.
    cpu usage is 99%, with eclipse running 126 threads for some reason using 20-45%CPU,the rest of CPU taken by javaw.exe programs each taking around 20-30% cpu. I've only got 2 java projects as I deleted the rest so not sure. I'll try and find out how to delete those threads.
    If sounds like you've got several spawned processes that we're never properly terminated. For instance, if you are running in Eclipse and your code enters an infinite loop, if you do not terminate the process it will continue. Do this a few times and you may push your CPU to its limit. You can manually try and terminate them all, but would probably be easier to just restart your computer. Give it a try, launch Eclipse and inspect the usage thereafter.

  8. #8
    Member
    Join Date
    May 2013
    Posts
    165
    Thanks
    58
    Thanked 1 Time in 1 Post

    Default Re: Eclipse

    I restarted and cpu down to around 8%, still not responding sometimes though far better than before. I'll keep the thread open just in case more problems come up in future.

Similar Threads

  1. Replies: 24
    Last Post: August 4th, 2014, 12:49 PM
  2. Replies: 1
    Last Post: October 20th, 2012, 12:21 PM
  3. Beginners Eclipse Tutorial. How to run first java application on Eclipse?
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 13
    Last Post: June 24th, 2011, 12:26 AM
  4. eclipse help
    By mos33 in forum Java IDEs
    Replies: 3
    Last Post: November 24th, 2009, 02:10 PM