> I've seen a couple of references in articles about clojure to using > "java -server". My "java" executable has a "server" option, but when I > try it, I get told: > Error: no `server' JVM at `C:\Program Files\Java\jre6\bin\server\jvm.dll'.
I'm surprised and I don't know why this is the case. My best guess, failing someone else knowing the answer, is that perhaps the Windows JRE does not contain the server VM for whatever reason (minimizing download size? dunno). I don't think I have seen a JDK where I was not able to run with -server. The reverse is true though; on several platforms only -server is supported. So my best guess is: Try downloading the JDK rather than the JRE, but this is pure speculation on my part. > PS I suppose there's a more general question - does "java -server" > make enough of a difference for me to be bothering about all this? If you are doing something where performance matters, you probably want to use -server in most cases. That does not mean that the difference is always huge, but if at any point you start benchmarking or trying to tweak performance you should probably start by making sure you're running with -server. The "client" VM is supposed to optimize for fast start-up and low memory usage; with -server you will get more aggressive native code generation and optimization, but usually a bit slower initial start-up time and perhaps higher memory usage. (Personally I've never been in a situation where I wanted the client VM, in spite of the supposed recommentation for GUI:s... I never got that. I prefer just running with -server and perhaps turning on CMS/G1. Maybe if I were severely memory constrained...) -- / Peter Schuller -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
