문제

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