java.lang.OutOfMemoryError: PermGen space

457 views
Skip to first unread message

Alan Rubin

unread,
Aug 4, 2010, 9:49:45 AM8/4/10
to jetty-rails
Hi,

First thanks for this very nice gem...

After running my application (I use rvm with jruby 1.4) and accessing
the first page, I get the infamous "java.lang.OutOfMemoryError:
PermGen space" exception and jetty crashes.

I know what to do in java to add more memory (-Xms128m -Xmx1024m, for
example) but how do I add those parameters so that the java running
behind jetty in jetty-rails understand and interpret them correctly ?

Thanks,
Alan

Alan Rubin

unread,
Aug 4, 2010, 10:34:46 AM8/4/10
to jetty-rails
Ok, after some investigation, I figure out how to do it:

ruby -S jetty_rails -J-Xmx1024m

ruby will be translated by rvm to jruby and -J is the way to pass to
java parameters....

Thanks,
Alan

Nick Sieger

unread,
Aug 4, 2010, 12:21:30 PM8/4/10
to jetty...@googlegroups.com
Also, if you need to adjust permgen size, the parameter would be

-J-XX:MaxPermSize=128m

/Nick

> --
> You received this message because you are subscribed to the Google Groups "jetty-rails" group.
> To post to this group, send email to jetty...@googlegroups.com.
> To unsubscribe from this group, send email to jetty-rails...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jetty-rails?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages