By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,440 Members | 1,041 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,440 IT Pros & Developers. It's quick & easy.

Open file handles in WinXP

P: n/a
First, the question - I remember reading in a bug report that there's a
limit on the number of files you can open in Windows using Sun Java (around
2040 files). Can anyone verify this - or point me to the original bug
report again? Is there a workaround?

Background - I am running an app called Zoe (http://www.zoe.nu, source code
is available) in Windows XP Home, Sun Java 1.4.2. Zoe indexes my files -
I've got about 70,000 files being indexed. When I try to rebuild my indexes
(C:\zoe>java -jar zoe.jar rebuild), it only gets to a certain point, then
starts throwing this error repeatedly until all of the remaining files are
processed:

FileOutputStream.open: java.io.FileNotFoundException: C:\Zoe\Library\SZ
\Queues\<reallylonghexname>\<hexname>.szq (The directory or file cannot be
created.)

Any help?

regards, Mike
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Here's one bug report -
http://developer.java.sun.com/develo...s/4189011.html
Even though it's marked "Closed,fixed" I still get similar behavior with
Java 1.4.2...

Mike James <no*@a.chance> wrote in
news:Xn*******************************@216.196.97. 136:
First, the question - I remember reading in a bug report that there's
a limit on the number of files you can open in Windows using Sun Java
(around 2040 files). Can anyone verify this - or point me to the
original bug report again? Is there a workaround?

Jul 17 '05 #2

P: n/a
It sounds to me like your application doesn't need more than 2040 files open
at once. Try closing each file when you are done using them.

"Mike James" wrote:
First, the question - I remember reading in a bug report that there's a
limit on the number of files you can open in Windows using Sun Java (around 2040 files). Can anyone verify this - or point me to the original bug
report again? Is there a workaround?

Background - I am running an app called Zoe (http://www.zoe.nu, source code is available) in Windows XP Home, Sun Java 1.4.2. Zoe indexes my files -
I've got about 70,000 files being indexed. When I try to rebuild my indexes (C:\zoe>java -jar zoe.jar rebuild), it only gets to a certain point, then
starts throwing this error repeatedly until all of the remaining files are
processed:

FileOutputStream.open: java.io.FileNotFoundException: C:\Zoe\Library\SZ
\Queues\<reallylonghexname>\<hexname>.szq (The directory or file cannot be
created.)

Jul 17 '05 #3

P: n/a
nos
Over the years I have encountered the limit of open
files by programs run in the command window in
windows (95, NT, XP) so I think java has to live
with this limitation also.

"Tom N" <to*@nospam.au> wrote in message
news:ZP******************@news-server.bigpond.net.au...
It sounds to me like your application doesn't need more than 2040 files open at once. Try closing each file when you are done using them.

"Mike James" wrote:
First, the question - I remember reading in a bug report that there's a
limit on the number of files you can open in Windows using Sun Java

(around
2040 files). Can anyone verify this - or point me to the original bug
report again? Is there a workaround?

Background - I am running an app called Zoe (http://www.zoe.nu, source

code
is available) in Windows XP Home, Sun Java 1.4.2. Zoe indexes my files -
I've got about 70,000 files being indexed. When I try to rebuild my

indexes
(C:\zoe>java -jar zoe.jar rebuild), it only gets to a certain point, then starts throwing this error repeatedly until all of the remaining files are processed:

FileOutputStream.open: java.io.FileNotFoundException: C:\Zoe\Library\SZ
\Queues\<reallylonghexname>\<hexname>.szq (The directory or file cannot be created.)


Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.