سؤال

I found this this article on how to do it on the command line, but I'd like to set it from the admin console (the GUI) or modifying the domain.xml. In glassfish v2, this was as simple as modifying the domain.xml and adding a <jvm-options>. But, I did the same thing in glassfish v3, and my war doesn't seem to have access to this property.

هل كانت مفيدة؟

المحلول 2

This can be changed by going to

server -> properties

Then adding a system property by pressing the "Add Property" button.

نصائح أخرى

It should be as easy as you described it. If you want to go "domain.xml-way" you have to make sure the additional <jvm-options> is inside of the existing <java-config> like this:

  <java-config>
    <jvm-options>-XX:NewRatio=2</jvm-options>
  </java-config>

You must restart the server to make it work.

Alternativly you can set it up in the Glassfish admin GUI (http://localhost:4848).
Navigate to Configurations -> server-config -> JVM Settings -> JVM Options and add your new option.

glassfish admin gui

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top