Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
DolphinA2
10 years agoNew member | Level 1
Dropbox Java API - java.net.SocketException: Too many open files
I am using Dropbox Java API to make a large amount of requests to Dropbox API to createFolder and upload files. Currently, I am doing this sequentially, that is, no parallel thread, etc. I am regu...
Kannan G.1
Dropbox Staff
10 years agoWe currently aren't able to reproduce the issue ourselves. Do you get the error when you only call createFolder in a loop? Or do you also have to call uploadFile?
The readJsonFromResponse() function is not responsible for closing the stream. There's higher-level code that should close the stream.
I found an open source "file leak detector" (http://file-leak-detector.kohsuke.org/). I've never used it before, but it looks straightforward. That might help locate the issue.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!