Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
Recently I have been having trouble debugging in Eclipse. I an writing a Java Applet and testing it using Eclipse's Applet Viewer but when I attempt debug mode it sometimes causes my GUI to freeze. I am able to break out to the prompt using ctrl-alt-f1 and restart the gui, but that's annoying because I then have to restart all the apps running on it.
Eclipse (Galileo)
Java JDK 1.6
Ubuntu 9.10 with Gnome 2.28.1
That *shouldn't* be happening - Eclipse and the 1.6 Sun JDK are both pretty robust.
Do you have enough RAM? Eclipse uses a lot of memory, Java uses a lot of memory ... and Gnome uses an AWFUL lot of memory. I'd strongly recommand at least 1GB RAM.
Try running "top" in a command window when you fire up Eclipse and the JDK debugger. If you use any more than "0" bytes swap ... then you absolutely need more RAM.
Otherwise, if swap stays "zero" and it still hangs, then we need to look elsewhere. Perhaps run a memory checker on the RAM that you already have (perhaps there's a hardware issue with your RAM)?
I am encountering this same problem, using Eclipse 3.6.1 Build M20100909-0800, JDK 1.6.0_23, and Linux Xfce 4.4.2.
The entire OS freezes; not sure if the same is happening to the OP. The mouse works but the OS does not respond to it. The state requires a reset with Ctrl-Alt-Bksp.
This happens randomly while debugging; I can use debug for ages without issue and then in specific places it will suddenly freeze. Running the same sequence after rebooting and same breakpoint causes the freeze to occur again.
This is unlikely to be a memory issue. I have plenty of memory (1.3G free when Eclipse is running), and the freeze occurs with very little application memory load, and does not seem to occur more frequently with heavy loads.
Think this is an Eclipse bug of some sort... any ideas or pointers would be useful.
Thanks so far - I will look into the memory.
I do have a nicer way out then mentioned before -
ctrl-alt-f1 to the command prompt,
ls -a to find the java process (Eclipse is a java process)
kill -9 (the pid of the java process)
ctrl-alt-f7 back to the gui
that way I only kill the offending application, the GUI starts responding again, the rest of my applications are able to continue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.