|
Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
General Mac OSX Support For general issues regarding Mac OS X users |
| LinkBack | Thread Tools | Display Modes |
| |||
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 |
| |||
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. |
| |||
Re: Memory allocation for java apps on Mac OS X Quote:
Thanx in advance. Theala |
| |||
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... |
| |||
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! |
| |
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 |