LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-08-2007, 08:35 AM   #1
yakoub
Member
 
Registered: Oct 2006
Posts: 98

Rep: Reputation: 15
java 1.6 slow graphics


i installed slackware12.0 but when playing at yahoo
chess and pool i get very slow graphics
when i had slackware11.0 didn't have this problem

is the problem in java 1.6 , or slackware12.0 configuration ?

i got nvidia gefore 4 , 256M mem
 
Old 07-09-2007, 01:18 AM   #2
corbintechboy
Member
 
Registered: Sep 2003
Location: Kentucky
Posts: 480
Blog Entries: 1

Rep: Reputation: 51
Quote:
Originally Posted by yakoub
i installed slackware12.0 but when playing at yahoo
chess and pool i get very slow graphics
when i had slackware11.0 didn't have this problem

is the problem in java 1.6 , or slackware12.0 configuration ?

i got nvidia gefore 4 , 256M mem
Did you install your NVidia drivers? If you are running in vesa mode you can't expect much.
 
Old 07-09-2007, 02:56 AM   #3
yakoub
Member
 
Registered: Oct 2006
Posts: 98

Original Poster
Rep: Reputation: 15
driver

Quote:
Originally Posted by corbintechboy
Did you install your NVidia drivers? If you are running in vesa mode you can't expect much.
i installed driver using nvidia installer
 
Old 07-09-2007, 04:15 AM   #4
msantinho
Member
 
Registered: Oct 2005
Location: Lisbon
Distribution: Slackware
Posts: 51

Rep: Reputation: 15
I've noticed that too.
Using ATI driver, from /extra.

Last edited by msantinho; 07-09-2007 at 05:08 AM.
 
Old 07-20-2007, 12:12 AM   #5
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,441

Rep: Reputation: 70
I don't think it has anything to do with your video drivers. I'm pretty sure the current version of Java installed with Slackware 12 (1.6.0_01) has some problems. Perhaps the AWT/Swing libraries have some problems with certain Linux themes. Perhaps old code that ran well with old VMs is just simply not going to run as well on the new VMs with their different optimizations.

At any rate I'm noticing the same slowdown problem on my Slackware 12 box. Java starts taking up a ton of CPU...

My suggestion would be to either upgrade to 1.6.0_2 and pray that it works or install an older VM. You can have multiple VMs on one machine, so it would not be a big deal.

Go to http://java.sun.com/javase/6/webnote...es.html#160_02 if you want to see the changes made in Java 1.6.0_02.
 
Old 07-20-2007, 01:29 AM   #6
jpostma
Member
 
Registered: Jun 2003
Location: Alphen ad Rijn -- The Netherlands
Distribution: Fedora Core 2 - Slackware 12
Posts: 119

Rep: Reputation: 15
Can you give a site where Java (applets) is slow? I have installed Java manually and maybe I don't have the problem.
 
Old 07-20-2007, 12:37 PM   #7
msantinho
Member
 
Registered: Oct 2005
Location: Lisbon
Distribution: Slackware
Posts: 51

Rep: Reputation: 15
Quote:
My suggestion would be to either upgrade to 1.6.0_2
And how do I upgrade Java?
I know nothing about Java. I went into the website you suggested but I can't even figure what does SE, EE, ME... means.

Any help?
On my system (Slackware 12.0) Java is slow (too slow) and eating all my CPU resources.
 
Old 07-20-2007, 12:53 PM   #8
jpostma
Member
 
Registered: Jun 2003
Location: Alphen ad Rijn -- The Netherlands
Distribution: Fedora Core 2 - Slackware 12
Posts: 119

Rep: Reputation: 15
SE: Standard Edition
EE: Enterprise Edition
ME: Mobile Editioin

If you only want the Java Plugin for showing applets than you need the Standard Edition. The SE comes in two flavours the JRE and the JDK. If you want to develop Java Applications you need to download the JDK otherwise the JRE.

After you downloaded it you need to update the plugin in FireFox. It will be something like:
ln -fs /usr/java/jdk1.6.0_02/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/local/firefox/plugins/libjavaplugin_oji.so

Hope this helps!
 
Old 07-20-2007, 01:54 PM   #9
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,441

Rep: Reputation: 70
Quote:
Originally Posted by jpostma
Can you give a site where Java (applets) is slow? I have installed Java manually and maybe I don't have the problem.
I personally did not test any applets, but it is very easy to find a site with lots of applets to test. A better test, however, would be to test an application as then you would not have to worry about bandwidth, etc being a bottleneck.

I tested two applications I wrote (Connect Four, Hangman) and JRisk. All of them ran unusually slow. You can find JRisk at http://jrisk.sourceforge.net/

If JRisk is running properly it should highlight the countries on mouseover events quickly. There was a significant delay on my machine when I was moving the mouse in a circular motion around the map (delay in the highlighted countries).
 
Old 07-20-2007, 05:32 PM   #10
the3dfxdude
Member
 
Registered: May 2007
Posts: 318

Rep: Reputation: 88
Quote:
Originally Posted by shadowsnipes
If JRisk is running properly it should highlight the countries on mouseover events quickly. There was a significant delay on my machine when I was moving the mouse in a circular motion around the map (delay in the highlighted countries).
I have the same issue in TripleA when I scroll the map or when I select units.
 
Old 07-22-2007, 03:15 PM   #11
jpostma
Member
 
Registered: Jun 2003
Location: Alphen ad Rijn -- The Netherlands
Distribution: Fedora Core 2 - Slackware 12
Posts: 119

Rep: Reputation: 15
I am an applet developer. Do you have also this problem with the applet on http://www.javaatwork.com/java-upload-applet/demo.html
I'm using Slackware 12 for a day now with JDK 1.6. Till now I don't have any problems.

If you think the problem is version 1.6 than you can install the latest version of 1.5 and change the environment variable JAVA_HOME. For the download page see: http://java.sun.com/products/archive/
 
Old 07-23-2007, 12:45 AM   #12
yakoub
Member
 
Registered: Oct 2006
Posts: 98

Original Poster
Rep: Reputation: 15
upload

Quote:
Originally Posted by jpostma
I am an applet developer. Do you have also this problem with the applet on http://www.javaatwork.com/java-upload-applet/demo.html
I'm using Slackware 12 for a day now with JDK 1.6. Till now I don't have any problems.

If you think the problem is version 1.6 than you can install the latest version of 1.5 and change the environment variable JAVA_HOME. For the download page see: http://java.sun.com/products/archive/
your applet is very poor in graphics , so it does test our problem
the applet at games.yahoo.com/pl (yahoo pool) runs very slow
 
Old 07-23-2007, 12:59 PM   #13
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,441

Rep: Reputation: 70
I finally had some time to play around with this and I noticed some interesting things.

I installed JDK 1.4 and JRE 1.5. In addition, I removed the JRE 1.6 and installed the JDK 1.6 package from one of the Slackware mirrors.

Running my test software I noticed that there was NEVER a slow down using 1.4, but 1.5 had the same problem as JRE 1.6. However, after running the SAME software using 1.6 for a while I noticed that the CPU usage dropped dramatically and settled on a level even below what I believe 1.4 used. After reading up on the changes in Java I realized that the VM must be trying to optimize the code for my OS. One of the features of Java now is that it recompiles bits of the code as you use the software so that it can perform with native code speed. This is useful for applications that you run for a long time (ie. a server), but for running a new game for a couple of minutes it can be very frustrating.

It is important to note, however, that all of my test software was made using 1.4. Perhaps that is another factor.

Based on all of this I suggest that users install Java 1.4. You don't have to remove 1.6. If you don't want to type out the full path of 1.4 each time you use it I suggest you create a symbolic link in /usr/local/bin. That way when you want to run apps that you think will be slow just use java1.4 instead of java. Also, you can create links to the man pages and add them to your Manpath if you need this.

Note, however, that using the above method will not change your browser plugins, so if you want to use 1.4 as your main java do this instead: Change the symbolic link at /usr/lib/java to point to the 1.4 folder. Keep in mind that 1.4 does not have the same plugin name(*), so you will probably have to change the link in your plugins folder of your browser.

Since I mostly use java apps offline I decided to go with the first method. You might want to do the second one if you have been trying to use a lot of applets that are running slow with 1.6.

If anyone needs clarification on any of this let me know.

*Edit: it's not that the plugin has a different name but a different path (ns6*/ in 1.4 instead of ns7/)

Last edited by shadowsnipes; 07-23-2007 at 01:06 PM.
 
Old 07-26-2007, 01:50 AM   #14
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 184
Blog Entries: 1

Rep: Reputation: 38
Upgrade to Firfox 2.0.0.5 by using firefox update with root
and add Java plugins into /usr/lib/firefox/plugins with a link

Problem solved; graphic is much smooth;
 
Old 07-30-2007, 03:24 PM   #15
the3dfxdude
Member
 
Registered: May 2007
Posts: 318

Rep: Reputation: 88
Now a few of you were talking about firefox java plugin, I'm actually talking about a standalone java app.

I want to give an update. I find that after switching to kernel 2.6.23-rc1, the problem I have goes away. This is running Java 1.6 and TripleA. So CFS saves the day. Except this probably means that java has poor performance still.

I recommend those that have poor performance with java 1.6 to try their apps with kernel 2.6.23-rc1.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
my nv graphics card too slow for compiz? Kropotkin Fedora 1 11-11-2006 06:21 PM
Intel extreme graphics 2 going slow systelm Linux - Hardware 2 05-06-2006 03:30 PM
Wine Graphics Slow draget Linux - Software 2 12-18-2005 05:37 AM
VERY slow graphics - like 8FPS!! hamish Linux - Software 15 05-22-2004 06:34 PM
Slow Graphics in games SlavaVB Linux - Newbie 9 03-23-2002 08:42 AM


All times are GMT -5. The time now is 02:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration