Jump to content
Excelsior Forums
Sign in to follow this  
Rex

How can I set the java VM parameters.

Recommended Posts

we use Excelsior JET6.5  to create a new project for Plain java

SE application ,but how can I set the Java VM parameters. I

have try to set it in the Command line(java -cp Worker.jar -

Xmx800m com.server.Launcher), but it the VM parameter never

worker in the Installation Package . :)

Share this post


Link to post
Share on other sites

The -Xms option (initial heap size) is not supported  because it makes little sense: the JET Runtime tunes the heap size adaptively and such hints as initial heap size are useless.

Note: of course, the -Xmx option (maximum heap size) is fully supported as it sets the upper bound for the heap.

Share this post


Link to post
Share on other sites

I use "java -cp Worker.jar -Xmx800m com.server.Launcher" to set the upper bound for the heap, but it also never worker in the Installation Package  :huh:

Share this post


Link to post
Share on other sites

-Xmx is converted to the -Djet.gc.heaplimit setting.

When preparing the installation package, you may see it in the "Java system properties" pane on the page Classpath of JetPackII.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×