Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Phex (Cross-platform) > Feature Requests & Bug Reports
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Feature Requests & Bug Reports Is there anything you'd wish to see in Phex, or did you find some bugs?


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old January 9th, 2007
Gnutella Admirer
 
Join Date: November 23rd, 2003
Posts: 70
Linuxhippy is flying high
Default Way too many open files :-/

Hello,

When running phex-3.0.99 (self-compiled with LAN-Patch) I very soon get reports about too many open files.

lsof says:
Quote:
java 11111 ce 920r REG 3,1 4334200 6085723 /home/ce/mp3/(everytime the same mp3).mp3
I see this line up to thousand times, till it hits Linux default file Limit of 1024.

I see the open-files go up as soon as somebody downloads a file (the phex suffering the problem is uploading), a simple mp3-file uploaded by phex leaves about 50-100 file descriptors open (even if the download has been finished) - so after about 10mp3's phex runs out of file descriptors. Setting "File.OpenFilesLimit" to 500 also does not help. I have to admit that I only saw this error on Linux machines till now - so maybe theres a bug in the jdk. (Error happend on 1.5.0_10 & 1.6.0 final)
Any ideas what could be wrong, and can I help somehow to detect the problem?

Thank you for all your patience, lg Clemens

Quote:
[ce@localhost lib]$ java -jar phex.jar
java.io.FileNotFoundException: /home/ce/.phex/phex.error.log (Too many open files)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.j ava:177)
at java.io.FileOutputStream.<init>(FileOutputStream.j ava:102)
at java.io.FileWriter.<init>(FileWriter.java:61)
at phex.utils.PhexLogger.writeLogMessage(PhexLogger.j ava:364)
at phex.utils.PhexLogger.error(PhexLogger.java:237)
at phex.utils.NLogger.error(NLogger.java:347)
at phex.share.SharedFilesService$SaveSharedFilesJob.r un(SharedFilesService.java:883)
java.io.FileNotFoundException: /home/ce/.phex/phex.error.log (Too many open files)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.j ava:177)
at java.io.FileOutputStream.<init>(FileOutputStream.j ava:102)
at java.io.FileWriter.<init>(FileWriter.java:61)
at phex.utils.PhexLogger.writeLogMessage(PhexLogger.j ava:364)
at phex.utils.PhexLogger.error(PhexLogger.java:237)
at phex.utils.NLogger.error(NLogger.java:331)
at phex.thex.ThexCalculationWorker.run(ThexCalculatio nWorker.java:49)
at phex.common.RunnerQueueWorker$QueueWorker.run(Runn erQueueWorker.java:117)
at java.lang.Thread.run(Thread.java:619)
java.io.FileNotFoundException: /home/ce/.phex/phex.error.log (Too many open files)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.j ava:177)
at java.io.FileOutputStream.<init>(FileOutputStream.j ava:102)
at java.io.FileWriter.<init>(FileWriter.java:61)
at phex.utils.PhexLogger.writeLogMessage(PhexLogger.j ava:364)
at phex.utils.PhexLogger.error(PhexLogger.java:237)
at phex.utils.NLogger.error(NLogger.java:331)
at phex.thex.ThexCalculationWorker.run(ThexCalculatio nWorker.java:49)
at phex.common.RunnerQueueWorker$QueueWorker.run(Runn erQueueWorker.java:117)
at java.lang.Thread.run(Thread.java:619)
java.io.FileNotFoundException: /home/ce/.phex/phex.error.log (Too many open files)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.j ava:177)
at java.io.FileOutputStream.<init>(FileOutputStream.j ava:102)
at java.io.FileWriter.<init>(FileWriter.java:61)
at phex.utils.PhexLogger.writeLogMessage(PhexLogger.j ava:364)
at phex.utils.PhexLogger.error(PhexLogger.java:237)
at phex.utils.NLogger.error(NLogger.java:331)
at phex.thex.ThexCalculationWorker.run(ThexCalculatio nWorker.java:49)
at phex.common.RunnerQueueWorker$QueueWorker.run(Runn erQueueWorker.java:117)
at java.lang.Thread.run(Thread.java:619)

Last edited by Linuxhippy; January 9th, 2007 at 02:54 PM.
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


LinkBacks (?)
LinkBack to this Thread: https://www.gnutellaforums.com/feature-requests-bug-reports/65833-way-too-many-open-files.html
Posted By For Type Date
Untitled document This thread Refback November 4th, 2010 10:39 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't open files laura62 Tips & Tricks 1 September 13th, 2005 01:14 PM
how to open .rar files ??? busted81 Tips & Tricks 1 December 1st, 2004 03:40 AM
i can't open my files...! Meredith General Mac Support 0 October 16th, 2002 09:21 AM
sit files. How do I open them? Unregistered Open Discussion topics 1 April 8th, 2002 12:18 PM
Can't open files Unregistered General Mac OSX Support 0 April 7th, 2002 10:15 AM


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


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.