Code Monkey home page Code Monkey logo

Comments (5)

patrickhno avatar patrickhno commented on July 23, 2024

I changed -Xmx128M to -Xms512 and it resolved the issue for me.
Id be happy to commit if I knew how to attach code to this issue :-)

java_args = [
  "-Xmx512M",
  "-cp", [JRubyJars.core_jar_path, JRubyJars.stdlib_jar_path].join(":"),
  "org.jruby.Main"
]

from akephalos.

Nerian avatar Nerian commented on July 23, 2024

You can use this fork https://github.com/Nerian/akephalos. It gives more memory to the JVM.

from akephalos.

patrickhno avatar patrickhno commented on July 23, 2024

Java is so perfect..
Should'nt this really be a option? I hardcoded the changes myself for now.

from akephalos.

Nerian avatar Nerian commented on July 23, 2024

That's is a nice idea. I will look at the code this afternoon.

from akephalos.

Nerian avatar Nerian commented on July 23, 2024

@patrickhno

I gave it a try and cooked this.

https://github.com/Nerian/akephalos/tree/jvm

Akephalos' tests pass but I haven't a full app using akephalos to try this. Does it work in your app?:

Gemfile.

gem 'akephalos', :git=>'git://github.com/Nerian/akephalos.git', :branch => 'jvm'

spec_helper.

Capybara.register_driver :akephalos do |app| 
  Capybara::Driver::Akephalos.new(app, :jvm_max_memory => '512')
end

from akephalos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.