Gnutella Forums  

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

General Linux Support For questions regarding use of LimeWire or WireShare or related questions on the Linux operating system. This includes installation questions and answers. (Check the Stickies marked in Red at top of this section.)


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4 (permalink)  
Old May 19th, 2009
Disciple
 
Join Date: June 14th, 2007
Posts: 12
Curmudgeon is flying high
Default possibly a garbage collection issue

I've been having this problem as well (it happens when I try to browse a host with a large number of files), and I think I've tracked it down to a memory allocation issue. What seems to be happening is that the default initial heap allocation for limewire is too small, causing the system to go into a frenzy of garbage collection when the number of files is too big, which causes the spike in CPU load that you see.

What I did to fix this (as best as possible) was to change the invocation line towards the end of the "runLime.sh" script to the following, which explicitly specifies larger heap allocations:
${JAVA_PROGRAM_DIR}java -ea -Xms1024m -Xmx1700m .....
The first value (-Xms...) specifies the heap allocation at startup; the second (-Xmx...) specifies the maximum heap allocation. You may have to play with these numbers to find ones that work well for you.


Quote:
Originally Posted by nanohead View Post
I've had various version of LW on Ubunutu for the past few years, and very frequently, CPU utilization spikes and stays there. In the system monitor utility, its Java thats consuming all the CPU (limewire is frequently shown as sleeping ??).

This behavior has been consistent through the past 5 or so versions of all these pieces of software. Sometimes, I just launch LW, and its doing nothing, and it just starts slamming the CPU. Even more painful, is on the dual core I run now, the linux scheduler gets into the game and the round robin CPU utilization makes the system nearly hang as workload is swapped from one core to another. Its been happening for years, and each time I upgade, I hope it won't happen again. But alas....


I'm currently running Hardy (8.04), with Java 1.6.06. and LW 4.17.9 pro.
Reply With Quote
 


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



All times are GMT -7. The time now is 10:41 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.