2

I have a computer that was running Windows with a lot of big programas (like Adobe Fireworks, and many other stuff) and the computer performance was really good. I decided to format my computer (I didn't need all this programs because this computer had a different owner) and I installed Debian 8 Jessie (stable).

But since the first fresh installation, every program that needs Java to run (like NetBeans, Google Chrome, Atom (advanced text editor) or anyone) it starts consuming CPU progressively (checked via top command) until I have to reboot manually through the button (the computer is unusable, I can't open the menu and click on Power off).

I tried using different versions of Java (7 and 8) but nothing worked. Java 7 is installed through the official repositories and version-8 through Oracle downloads official site.

Any word of advice?

EDIT 1: Java version information

lrwxrwxrwx   1 root root    24 May  6  2014 default-java -> java-1.7.0-openjdk-amd64
lrwxrwxrwx   1 root root    20 Nov  7 01:58 java-1.7.0-openjdk-amd64 -> java-7-openjdk-amd64
-rw-r--r--   1 root root  2439 Feb  7 21:22 .java-1.7.0-openjdk-amd64.jinfo
drwxr-xr-x   5 root root  4096 Jan 11 18:54 java-6-openjdk-amd64
drwxr-xr-x   8 root root  4096 Feb 21 11:10 java-7-openjdk-amd64
drwxr-xr-x   9 root root  4096 Feb  3 08:56 jdk-8-oracle-x64
-rw-r--r--   1 root root  2531 Feb  2 10:16 .jdk-8-oracle-x64.jinfo
drwxr-xr-x   2 root root  4096 Feb 21 11:12 openjdk-7

Edit 2: Java performance
Also I've noticed via top command that Java process also consumes a lot of CPU (more than 200%).

  • 5
    Please post additional information related to exact Java versions and operating system versions. – cerberus Mar 4 '17 at 15:52
  • 1
    I have the same exact set-up at home and my computer flies. – viktta Mar 7 '17 at 10:51
  • 3
    Bad performance with Java might be true for Netbeans only. Chrome and Github's Atom Editor are not java apps! – Michael D. Mar 18 '17 at 12:55
  • Hi Michael. Then, how are Atom and Chrome powered? And another question, what have in common NetBeans, Chrome and Atom? – viktta Mar 20 '17 at 20:04
  • 1
    Atom is built on electron (which is C++/javascript) and Chrome (C++) is not dependent on Java, but does run javascript, it is important to remember that Java is not javascript... stackoverflow.com/questions/245062/… I suspect the problem lies in the JRE (or a program that is being run in the JRE) but your offender is unlikely to be Chrome or Atom. Try booting the device and using ps aux check to make sure the JRE is not running, then start Chrome and watch top for the JRE firing up, repeat for Atom, I doubt they're the problem. – Schives Mar 21 '17 at 3:26
0

One reason for slower performance is probably OpenJDK. You have almost certainly used Oracle Java on Windows, and you should try to use the same JDK in Debian as well.

I see you have Oracle JDK installed, but you say it didn't work. Have you tried to install it using java-package? Once you download the JDK, run:

sudo apt-get install java-package
make-jpkg jdk-*.tar.gz
sudo dpkg -i oracle-java*.deb

You may want to remove OpenJDK, or make sure Oracle Java is used by default via update-alternatives.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.