comatose
comatose
comatose
comatose
hyenas
hyenas
hyenas
hyenas
Linux MintPPC Forums • View topic - java performance issues

All times are UTC + 1 hour





Post new topic Reply to topic  [ 4 posts ] 
  Print view

java performance issues
Author Message
PostPosted: Sun Jul 22, 2012 6:44 pm 
Offline

Joined:Wed Jun 27, 2012 1:30 am
Posts:13
I have a 1.67ghz powerbook and I'm trying to run freeplane and it is really slow. I mean it takes like 5 seconds to even open up a menu. It is not nearly as slow on an Intel based linux machine of roughly the same clock rate. In fact, my Intel has 1G of ram and the powerbook has 2.

Nothing else really seems to suffer performance wise. I've even tried switching jvms and upgraded freeplane to the beta version but it does not help. Top shows the java process is sucking over 80% of the cpu time even when freeplane is sitting idle doing nothing.

Any ideas on how to fix?

TIA,
-Kevin


Top
 Profile  
 

Re: java performance issues
PostPosted: Mon Jul 23, 2012 2:24 pm 
Moderator
Offline

Joined:Sun Jun 19, 2011 8:07 pm
Posts:408
It probably isn't java, but a lack of hardware video acceleration.

_________________
Linux
Powerbook Wallstreet II 300MHz G3, 512 ~9.3 ~11
Powermac B&W 500MHz G3, 1024 ~11 ~ Xubuntu 12.04
Powermac 6500 Alchemy 225MHz 603e, Coming soon!
iMac Kiva Graphite 700MHz G3, Coming soon!


Top
 Profile  
 

Re: java performance issues
PostPosted: Mon Jul 23, 2012 8:14 pm 
Offline

Joined:Sun Dec 18, 2011 12:12 pm
Posts:63
I recently updated the Ubuntu Java wiki with PowerPC info.

I have a less powerfull machine than you, but can't replicate your problems. At idle, freeplane/java CPU usage barely registers. Does your 5 second menu problem occur with some super complex diagram setup or something?

The default openjdk 6 jvm is okay, jamvm performance is better.

Hardware acceleration may make a slight difference, but not much. The Ubuntu PowerPC FAQ tells you all you need to know about that.


Top
 Profile  
 

Re: java performance issues
PostPosted: Sat Aug 11, 2012 7:50 pm 
Offline

Joined:Thu Aug 09, 2012 2:47 pm
Posts:9
IBM makes a Java SDK for PowerPC - In my experience, it has much better performance than open JDK. It can be a bit of a pain to set up though... You will need to manually add it to update-alternatives.

Here is a link:
http://www.ibm.com/developerworks/java/ ... html#java6

The download comes in the form of a .bin file. I had to use chmod +x to make it executable:

Code:
 chmod +x ibm-java-sdk-6.0-10.1-linux-ppc.bin


Then, once it was finished extracting the SDK, I did the following:
*Replace <MY_JAVASDK_PATH> with the path you extract the .bin file to.
Code:
sudo update-alternatives: --install /usr/bin/java java /<MY_JAVASDK_PATH>/bin/java 3
sudo update-alternatives: --install /usr/bin/javac javac /<MY_JAVASDK_PATH>/bin/javac 3
sudo update-alternatives: --install /usr/bin/javaws javaws /<MY_JAVASDK_PATH>/bin/javaws 3


after adding them to update alternatives, I then selected them with the following command and selecting the appropriate versions:
Code:
sudo update-alternatives --config java 
sudo update-alternatives --config javac 
sudo update-alternatives --config javaws 


After that I added the following to the end of my ~/.zshrc file ( Note: edit ~/.bashrc if you don't use zsh ) - This step is probably only neccessary if you want to write some java code:
Code:
export PATH=/<MY_JAVASDK_PATH>/bin:/<MY_JAVASDK_PATH>/jre/bin:$PATH
export JAVA_HOME= /<MY_JAVASDK_PATH>/bin
export JITC_PROCESSOR_TYPE=6
#this will instruct jit to compile code for PPC604 aka G4
export CLASSPATH=.:$JAVA_HOME:$HOME
export JDKROOT=$JAVA_HOME


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


  Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Style by web designer custom , optymalizacja seo pozycjonowanie stron pozycjonowanie
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
comatose
comatose
comatose
comatose
hyenas
hyenas
hyenas
hyenas