Another Caveat is that stack size is allocated per thread. If you use a 
highly threaded application (f.i. webservers) a small stacksize increase 
can add up quite a bit.

On Monday, March 18, 2013 4:15:00 PM UTC+1, larry google groups wrote:
>
>
> I am a noob when it comes to the JVM, and actually I find the JVM to be 
> the hardest thing to learn about Clojure. 
>
> Problem: I was trying to serialize some data to YAML. I had this working 
> for awhile, but then I added more data and I started getting StackOverflow 
> as an error. I then decided to just take a subset of my data, but even the 
> subset will some day grow too large. I did some searches on Google and 
> apparently I need to increase the stack size of my JVM. However, I have no 
> idea what values are considered large or too-large. 
>
> I have a project built with Leiningen. I have been reading up on jvm 
> options, and so far, in my project.clj file, I have: 
>
>   :jvm-opts ["-Xms256m" "-Xmx1000m" "-XX:-UseCompressedOops"])
>
> The stack size option is "-ss"? A large value would be... uh, what? 2000? 
> 5000? 10000? Should I do: 
>
>   :jvm-opts ["-Xms256m" "-Xmx1000m" "-XX:-UseCompressedOops" "-ss: 5000"])
>
> ?
>
>
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to