David B
David B

Reputation: 3571

Eclipse Virgo increasing start/stop time-out [vagrant]

Am trying to configure an Eclipse Virgo (Tomcat Apache) instance via Vagrant.

All went well but when I'm trying to start the server up now. It always return this message <KE0004E> Kernel failed to start within 180 seconds.. Now I'm stuck and don't know what to do since I'm used to configuring these variable using Eclipse.

The same response was returned when invoking the startup.bat/.sh on the host terminal.

Upvotes: 1

Views: 232

Answers (1)

Frederic Henri
Frederic Henri

Reputation: 53713

  • give more RAM to the VM - if you use VirtualBox, something like

    VAGRANTFILE_API_VERSION = "2"
    
    Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
      .....
      config.vm.provider "virtualbox" do |vb|
        # Customize the amount of memory on the VM:
        vb.memory = "2048"
      end
      ....
    end
    
  • give more heap to eclipse when it starts

You can change Virgo's JVM memory by editing the files bin/dmk.sh (mac/linux) or bin/dmk.bat (windows)by changing the java_opts parameter:

JAVA_OPTS="$JAVA_OPTS -Xmx1024m -XX:MaxPermSize=1024m" 

You can play with all of those options and try them individually.

Upvotes: 1

Related Questions