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 May 21st, 2002
Russell
Guest
 
Posts: n/a
Question Adding memory to programs in OS X?

Hi, I'm new to OS X and I'm wondering about how to do this.
This is one of the things I always had to do with Limewire in OS 9 to get it to work.
Reply With Quote
  #2 (permalink)  
Old May 22nd, 2002
MacTerminator's Avatar
Brain updates D/Ld on P2P
 
Join Date: March 30th, 2002
Location: Spain
Posts: 190
MacTerminator is flying high
Default

In Mac OS X, memory is managed dynamically by the system so the option you had in OS 9 and previous to change the required RAM in the information window no longer exists.
Reply With Quote
  #3 (permalink)  
Old June 1st, 2002
Unregistered
Guest
 
Posts: n/a
Default

Actually that's not true since LimeWire is written in Java. The JVM only uses as much as you tell it, and the defaults are quite low. There's no way to modify the amount of memory used by the JVM after the program has started, so the start scripts would have to be modified.

I tried modifying runLime.sh:

java -ms32M -mx64M -jar RunLime.jar
Reply With Quote
  #4 (permalink)  
Old June 2nd, 2002
Unregistered
Guest
 
Posts: n/a
Default

No... I think Apple's implementation of Java will give the program as much RAM as it needs.
Your looking way to much at things that are meant for UNIX that for all we know Jar Launcher may just ignore.
Reply With Quote
  #5 (permalink)  
Old June 2nd, 2002
Unregistered
Guest
 
Posts: n/a
Default

And I think changing UNIX nice variables will help the performance more than allocating more RAM anyways.
Reply With Quote
  #6 (permalink)  
Old June 10th, 2002
Novicius
 
Join Date: June 10th, 2002
Posts: 3
jjupin is flying high
Smile Memory allocation for java apps on Mac OS X

Actually, the previous poster was correct in setting the -mx -ms flags for setting the heap allocated for RAM for the JVM. The default is 32M (some default to 64M). Unix by nature will let a program grow, but the JVM only knows the amount of heap it's been given. Once it reaches that limit, it will start spitting out "OutOfMemory Exceptions"... So, it's best to set those flags higher (in increments of 32M)...

Oh, btw, adding memory to the JVM heap does increase performance - it's not swapping as much and has more room to store more objects. But, you need to see how much your system has - thus, if you have 512M TiBook, setting the java heap to 128M should be fine ... you get the idea... :-)

Now, as for when you double-click the icon, I don't know if the app will look to the LimeWire.sh script or not... If not, then you'll need to run the script when running Limiewire, rather than double-clicking on it's icon...

cool.

Last edited by jjupin; June 10th, 2002 at 11:24 AM.
Reply With Quote
  #7 (permalink)  
Old June 12th, 2002
Enthusiast
 
Join Date: April 26th, 2002
Location: Chico CA
Posts: 49
Theala Sildorian is flying high
Default Re: Memory allocation for java apps on Mac OS X

Quote:

Oh, btw, adding memory to the JVM heap does increase performance - it's not swapping as much and has more room to store more objects. But, you need to see how much your system has - thus, if you have 512M TiBook, setting the java heap to 128M should be fine ... you get the idea... :-)

cool. [/B]
I'm a little confused. I want to try this . . .when you talk about the JVM heap, are you talking about modyfying the runLimewire.sh or are you talking about modifying something else for overall Java performance?

Thanx in advance.

Theala
Reply With Quote
  #8 (permalink)  
Old June 12th, 2002
Novicius
 
Join Date: June 10th, 2002
Posts: 3
jjupin is flying high
Default

quote:

I'm a little confused. I want to try this . . .when you talk about the JVM heap, are you talking about modyfying the runLimewire.sh or are you talking about modifying something else for overall Java performance?

-- end quote --

In java, when you run a program, you usually type something like:

%> java MyApp

This will then run in the standard JVM. To increase the memory (heap), you would do something like this:

%> java -mx 128M -ms 128M MyApp

In order to do this with the LimeWire app, you would need to modify the run script that it has. (the .sh) Thus, to modify this, I would "vi" into it and change the line to:

<b>java -mx128M -ms128M -jar RunLime.jar</b>

That should do it for ya! Give that a whirl!

peace. JOe...
Reply With Quote
  #9 (permalink)  
Old June 19th, 2002
mdouma46's Avatar
Gnutella Jewel
 
Join Date: January 10th, 2002
Location: Wyoming, MI
Posts: 95
mdouma46 is flying high
Default

My God! At least a 2x speed improvement here!

I edited the runLime.sh file changing it to:

java -mx256M -ms256M -jar RunLime.jar

I have 768 MB of RAM, so adjust it for your machine.
Reply With Quote
  #10 (permalink)  
Old June 20th, 2002
Enthusiast
 
Join Date: April 26th, 2002
Location: Chico CA
Posts: 49
Theala Sildorian is flying high
Thumbs up

Amen! I tried the same thing, using 128M. Got a spiffy speed improvement in terms of switching tabs. I used to get this "hesitation" when scrolling, searching, and switching tabs. It is totally gone. Limewire really sings now.

Great hack. 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
adding/removing/????? theproudlunatic Download/Upload Problems 1 January 9th, 2006 02:07 AM
adding more ultrapeers.... gcop LimeWire Beta Archives 5 January 20th, 2005 02:50 PM
Adding to Playlist wolftastic Open Discussion topics 2 September 12th, 2004 02:05 AM
Adding a user Unregistered Support: General 1 December 15th, 2001 04:50 PM
adding on Unregistered Open Discussion topics 1 July 9th, 2001 02:31 PM


All times are GMT -7. The time now is 02:03 AM.


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

Copyright © 2020 Gnutella Forums.
All Rights Reserved.