Re: Game Company- Java Server Thread Priority

From: BlackHawke (blackhawke_at_legacygames.net)
Date: 01/26/04


Date: Mon, 26 Jan 2004 07:38:42 GMT

We have, but honestly no one here is an experienced Linux Admin. We can't
afford an admin (we're WAY over budget), but we all know windows systems
pretty well, so.....

I'd do it if I could...

Nick
"Roman" <anonuser@shaw.ca> wrote in message
news:lIJQb.252834$JQ1.103869@pd7tw1no...
> What is the JDK you are running this Java program on?
> Have you considered running this application on a Linux system?
>
> Roman.
>
> "BlackHawke" <blackhawke@legacygames.net> wrote in message
> news:C_4Qb.23473$1e.6174@newsread2.news.pas.earthlink.net...
> > Hello!
> >
> > This is my second post. Ppl really helped me with the first. I hope
there
> > are answers for this one as well
> >
> > I own a game company (www.aepoxgames.net) releasing the beta for our
first
> > sci-fi space game in about 2 weeks (www.andromedaonline.net)
> >
> > We have multiple servers, but the game engine (Game Server Program) is a
> > Java program (don't ask why) on a windows 2003 enterprise system with
dual
> > xeon p4 processors and 4GB of RAM. This program needs to process orders
> for
> > thousands of ships as fast as possible.
> >
> > When we first set this up, the Game Server Program took exactly 50% of
the
> > CPU cycles when idle, and up to 80% or 90% when working (processing a
> turn,
> > for example) and could process a turn of 10,000 ships in 15 seconds.
> >
> > We revamped some of the major systems (the code and the computer
itself),
> > did a fresh install of Windows 2003 on a different system (still dual
> Xeon,
> > but faster MB and CPU), migrated the Game Server Program there, changed
> the
> > threadpool priorities in the code, etc.
> >
> > We've now noticed that on idle (IE not processing turns), the Game
Server
> > Program takes 0% of the CPU load, and when processing a turn goes up to
> > 3-7%. It never exceeds 7%, and takes FOREVER now when processing a turn.
> It
> > is the only program running on the machine, and services are at a
minimum.
> > Even with 99% of the CPU resources free (IE on System Idle), the game
will
> > never take more than about 7% of the processor time.
> >
> > This is extremely serious.
> >
> > We've tried increasing the priority of Java, but
> > a) The only way I know to do this is through the Task manager,
meaning
> > it would have to be done every time we run the server
> > b) I increased the priority to "Real Time" and this had absolutely
no
> > impact on the server process. The CPU load didn't change.
> >
> > This is the only program intended to run on this computer. We need it
> > hogging as many resources as it can. Database, development, everything's
> on
> > different systems. This machine has one job, run this Java program, and
> it's
> > not taking that job seriously.
> >
> > We don't know if it's a Windows issue, or a Java issue, but I suspect
it's
> a
> > combination of the two. All we know is it used to run fast as hell, and
> now
> > crawls.
> >
> > This post is going to Java groups and Windows groups on the assumption
> that
> > something can be done on each end to improve things (perhaps there's a
> > command line parameter to tell java to run at a higher priority, perhaps
> > there's a windows issue not giving proper time to the Java App).
> >
> > Any thoughts?
> >
> > Thank you for your time.
> > Nick Soutter
> >
> >
>
>



Relevant Pages

  • Re: In the Shallow End
    ... Yes, with Apple finally getting in there, technology is finally moving along nicely again. ... What they like to do is use the Windows desktop as data gathering frontends to these operations. ... They had other plans for Java, ... They make computers for the elite. ...
    (comp.sys.mac.advocacy)
  • Re: IE6 javascript & active x not working
    ... > I'm trying to fix a problem on a Windows XP SP1 Compaq computer. ... Where to get the JAVA VM ... Sun also offers an automatic download and install of the 1.4 Java plug-in ... ActiveX problems in IE ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Game Company- Java Server Thread Priority
    ... but honestly no one here is an experienced Linux Admin. ... afford an admin, but we all know windows systems ... > What is the JDK you are running this Java program on? ... >> command line parameter to tell java to run at a higher priority, ...
    (comp.lang.java.programmer)
  • Re: Game Company- Java Server Thread Priority
    ... but honestly no one here is an experienced Linux Admin. ... afford an admin, but we all know windows systems ... > What is the JDK you are running this Java program on? ... >> command line parameter to tell java to run at a higher priority, ...
    (comp.lang.java.help)
  • Re: IE6 cannot access secured sites after SP2 install
    ... I installed Windows script 5.6 ... >To download Java VM for XP: ... >Windows Update/Enable the Windows Update Catalog. ... >Sun also offers an automatic download and install of the ...
    (microsoft.public.windows.inetexplorer.ie6.browser)