Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > LimeWire+WireShare (Cross-platform) > Technical Support > General Mac OSX Support
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Mac OSX Support For general issues regarding Mac OS X users


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old December 4th, 2002
Apprentice
 
Join Date: December 4th, 2002
Location: Los Angeles
Posts: 8
CptChipJew is flying high
Talking LW using too much CPU? PROBLEM SOLVED!

Windows suffers from a similar problem with Java, which was where I got the idea to try this.

A Jar file is just a compressed set of Java classes. You can invoke them in the terminal via java -jar, just like if it were a class.

The LimeWire "app" that you see *kind of* does the same thing.

Anyways:

1. Open Terminal
2. Type "java -jar " and drag in the file "LimeWire.jar" in the LimeWire folder.
i.e. "java -jar /Applications/Limewire/LimeWire.jar"

LimeWire will now start up.

DO NOT quit Terminal, and try to live with the fact that instead of the LimeWire icon in the dock, you get Apple's generic Java Application icon.

What was using 70-80% on my dual 1Ghz is now using between 5 and 20.

Have fun!

Mike
Reply With Quote
  #2 (permalink)  
Old December 4th, 2002
Apprentice
 
Join Date: December 4th, 2002
Location: Los Angeles
Posts: 8
CptChipJew is flying high
Default

Woops, look's like there's nothing wrong with quitting Terminal while LimeWire runs.
Reply With Quote
  #3 (permalink)  
Old December 5th, 2002
Gnutella Admirer
 
Join Date: November 26th, 2002
Location: Israel
Posts: 72
jannuss is flying high
Default

Chip,

To repeat my reply to Dan on his port, your fix seems to be working on my G4/400MHz.

This is clearly a programming bug -- how do we submit a bug report?
Reply With Quote
  #4 (permalink)  
Old December 5th, 2002
Apprentice
 
Join Date: December 4th, 2002
Location: Los Angeles
Posts: 8
CptChipJew is flying high
Default

Beats me jannuss. In the meantime, I'd just use my method, since it's not to obtrusive when you hide the Terminal.

Also, I was wrong about quitting Terminal. Ending the Java process may quit Limewire.
Reply With Quote
  #5 (permalink)  
Old December 6th, 2002
LimeWire Developer
 
Join Date: May 6th, 2001
Location: New York
Posts: 691
afisk is flying high
Default

This is extremely odd behavior. It's possible that something in running it from the command line prevents you from becoming an Ultrapeer (you can see your Ultrapeer status in the connections tab in the lower left -- if it says "Ultrapeer," then you're an Ultrapeer, otherwise you're a "leaf").

Otherwise, there should be no difference between running LimeWire from the command line and running it from the alias.
Reply With Quote
  #6 (permalink)  
Old December 6th, 2002
Apprentice
 
Join Date: December 4th, 2002
Location: Los Angeles
Posts: 8
CptChipJew is flying high
Default

It's also extremely odd behavior that LimeWire does what I found the fix for in the first place!

Launching the LimeWire app should just be a GUI front end that tells the system:

java -jar /Applications/LimeWire/LimeWire.jar

Which it musn't be, because then there shouldn't be any problems with using either method. The app itself is definitely not just an alias to the Java call. It's much too big a file for that.

If LimeWire has problems with this, then LimeWire is being programmed extremely poorly. There are a number of other reasons for this being true, besides this. Read around the forums and you'll see.

People shouldn't be writing Java apps if they don't understand the basic idea of what Java is for.
Reply With Quote
  #7 (permalink)  
Old December 6th, 2002
Distinguished Member
 
Join Date: September 21st, 2002
Location: Aachen
Posts: 733
trap_jaw is flying high
Default

Actually the proper command for running LimeWire should be
java -jar /Applications/LimeWire/RunLime.jar

The problem is not caused by LimeWire's java code, but either by the run script or MacOSX' WindowManager, that does not properly handle the command to start the java app.

Since the WindowManager is the task that uses 70%-80% of the cpu resources I assume this is a MacOSX bug.
Reply With Quote
  #8 (permalink)  
Old December 6th, 2002
LimeWire Developer
 
Join Date: May 6th, 2001
Location: New York
Posts: 691
afisk is flying high
Default

Ahh...yeah. Yes, LimeWire wraps the call to java -jar RunLime.jar in the standard Apple app builder.

Thanks.
Reply With Quote
  #9 (permalink)  
Old December 6th, 2002
LimeWire Developer
 
Join Date: May 6th, 2001
Location: New York
Posts: 691
afisk is flying high
Default

trap_jaw is correct that the underying command is to:

java -jar /Applications/LimeWire/RunLime.jar

We'll investigate the Window Manager issue more thoroughly. On our 10.1.2 system, we saw no difference between the command line execution and the normal execution, but I'll check on Jaguar and have a look at all processes involved.

Thanks!

Last edited by afisk; December 6th, 2002 at 11:21 AM.
Reply With Quote
  #10 (permalink)  
Old December 6th, 2002
LimeWire Developer
 
Join Date: May 6th, 2001
Location: New York
Posts: 691
afisk is flying high
Default

CptChipJew-

Just to clarify, the call to java -jar RunLime.jar does not simply launch the ui -- it launches the entire java application, including all connection threads, TCP and UDP listening threads, etc. OS X has it's own custom method of launching java applications (launching java applications is basically os-specific because there are multiple ways of executing processes via aliases, shortcuts, exes, etc, on different operating systems). In LimeWire on OS X, we use the executable automatically generated by InstallAnywhere. On Windows, I wrote a custom executable to locate the latest java executable and run it.

Thanks.
Reply With Quote
Reply


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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A problem to be solved. SpartansOnFire General Windows Support 1 February 7th, 2006 06:40 PM
Connection Problem Solved MusicVideoTrader Connection Problems 1 February 17th, 2004 06:42 PM
Problem solved! Unregistered General Windows Support 0 October 31st, 2001 01:58 AM
Connection problem solved Unregistered Connection Problems 9 October 4th, 2001 08:47 PM
Problem Solved! mdbrinker Gnotella (Windows) 0 August 2nd, 2001 10:29 PM


All times are GMT -7. The time now is 07:50 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.