Results 1 to 5 of 5
  1. #1
    phu004 is offline Member
    Join Date
    Nov 2012
    Posts
    6
    Rep Power
    0

    Default How to enforce java applet to use server vm on windows?

    I recently made an applet game and noticed that its performance is always better on linux than windows. (same machine, same browser, same version of JRE). It turned out that on linux, java server vm is used whereas on windows the client vm is used.

    My question is there anyway to force the java applet launcher to use server vm on windows? Thanks in advance!
    Last edited by phu004; 05-30-2013 at 02:24 AM.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,701
    Rep Power
    8

    Default Re: How to enforce java applet to use server vm on windows?

    I doubt this is something you as a developer can specify. The user can probably configure this, but I don't think it's something you should rely on.

    What code is running faster on one JVM than another?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    phu004 is offline Member
    Join Date
    Nov 2012
    Posts
    6
    Rep Power
    0

    Default Re: How to enforce java applet to use server vm on windows?

    I doubt this is something you as a developer can specify. The user can probably configure this, but I don't think it's something you should rely on.
    Yeah, it looks like it is entirely determined by the applet launcher. You can pecify JVM command-line arguments to be used when executing this applet instance.

    e.g <PARAM name="java_arguments" value="-Xmx128m"> in between the applet tags,

    but it doesn't seems work with value="-server". The applet launcher still uses cilent vm to run the applet on windows machines.


    What code is running faster on one JVM than another?
    It make noticeable difference if your applet is designed to do cpu intensive work. Server VM uses more aggressive optimization techniques at the expense of longer vm init time.

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,701
    Rep Power
    8

    Default Re: How to enforce java applet to use server vm on windows?

    Quote Originally Posted by phu004 View Post
    It make noticeable difference if your applet is designed to do cpu intensive work. Server VM uses more aggressive optimization techniques at the expense of longer vm init time.
    Really? I'd be interested to see some documentation on that if you have a link.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    phu004 is offline Member
    Join Date
    Nov 2012
    Posts
    6
    Rep Power
    0

    Default Re: How to enforce java applet to use server vm on windows?

    This is from Oracle:

    Server-Class Machine Detection

Similar Threads

  1. applet can not enforce my command :(
    By tsar4ever in forum Java Applets
    Replies: 14
    Last Post: 08-26-2011, 05:55 AM
  2. Replies: 0
    Last Post: 07-05-2011, 08:41 AM
  3. Java applet not working on windows 7
    By MasterOfNothing in forum Java Applets
    Replies: 1
    Last Post: 06-20-2011, 01:26 PM
  4. Java with Windows Media Server
    By Seraphimlord in forum Advanced Java
    Replies: 0
    Last Post: 11-15-2010, 06:41 AM
  5. Replies: 4
    Last Post: 07-22-2010, 11:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •