Open Side Menu Go to the Top
Register
Getting more memory to my JVM??? Getting more memory to my JVM???

04-09-2013 , 02:40 AM
I found this thread: https://groups.google.com/forum/?fro...rs/_NkhrgJOaAw

...which describes how to give more memory to the JVM, except it doesn't. It gets you almost there and assumes you know the final step. With <2months on eclipse and/or working with a JVM language, I don't know the last step. I get to the args tab, see VM args, click on "variables", and see a few dozen variable with little explanation as to which one to change, and none that obviously effect memory usage.

I had decided to maybe try it in emacs instead (despite never having used emacs), but the emacs install instructions I found told me I'd need v23+ (for clojure?), but brew didn't install it. Then I tried "brew update", "brew upgrade emacs", and after waiting 8 minutes while being told v24.3 was being installed, emacs --version still returns 22.1.1

I only want more memory for my poor JVM. My default appears to be 85M. It isn't enough.

-John
Getting more memory to my JVM??? Quote
04-09-2013 , 03:09 AM
Hey, found this:

http://stackoverflow.com/a/3067285/1118698

I just evoked that command w/o the helloworld part. I have no idea why he added that part.

You have to evoke it from the root folder of your Leiningen project or you'll have a JVM crash. Seems like you might have to download the 64 bit if you really want to throttle it up.
Getting more memory to my JVM??? Quote
04-09-2013 , 03:29 AM
Thanks. Tooling has never excited me and I've been dreading figuring this out for a while.

1280M would be a dream. I have a 2yr old Macbook Air, 4M Ram, but no 64-bit kernal, so maybe I coudn't even run java in 64-bit? But that's the least of my worries right now.
Getting more memory to my JVM??? Quote
04-09-2013 , 03:59 AM
Looks like you have a 2 gig max with 32 bit.

Definitely wouldn't bother with trying to learn emacs while trying to learn Clojure. Just make sure you have paredit going. It'll save a ton of headache .
Getting more memory to my JVM??? Quote

      
m