That was a fantastic bit of detective work, Roman. (For something I
probably should have caught a while ago when I was in there.) Thank you
for your perseverance.
- Chas
On 01/28/2014 06:53 PM, Roman Scherer wrote:
Ok, I think I found the problem.
http://dev.clojure.org/jira/browse/CLJS-753
On Tuesday, January 28, 2014 10:07:24 PM UTC+1, Roman Scherer wrote:
Hello Clojure Scripters,
with my current REPL setup I get some really annoying "Too many
files open" errors. I'm not sure if it's a problem with
ClojureScript itself, Austin the browser REPL, nREPL or my own
miss-configuration of something.
When I connect to the browser REPL via AUSTIN and eval a whole
ClojureScript file the first time a lot of Ajax requests are sent
over the wire and my main namespace is getting compiled and
shipped to the browser. So far so good, my Java process is at
around 18676 open files. I don't care yet.
Compiling the same file again and again increases the open files
not sure if this is a problem with my setup, but I
18676, 19266, 22750, 21352, 33097, 62913, 64398, 64398, 64398,
64398, 64398 up to 171977, where some ulimit is reached and I get
an exception like this:
java.io.FileNotFoundException: .repl/5614/request/routes.js (Too many open
files)
and my ClojureScript hangs up and I have to do a
cider-restart. Ok maybe I shouldn't eval whole files too often
over the XHR connection, but this seems not right.
I used the command "lsof -n | grep java | wc -l" to watch the
above numbers while evaluating the file again and again.
Does someone had a similar problem, knows how to solve that, or
has any ideas how to track this one down?
Thanks for your help, Roman.
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups "ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.