Re: Game Company- Java Server Thread Priority
From: Roman (anonuser_at_shaw.ca)
Date: 01/25/04
- Next message: Roman: "Re: Making driver for Linux in Java?"
- Previous message: Hacker Beware: "Re: So I guess MIT is not good enough anymore?"
- In reply to: BlackHawke: "Game Company- Java Server Thread Priority"
- Next in thread: BlackHawke: "Re: Game Company- Java Server Thread Priority"
- Reply: BlackHawke: "Re: Game Company- Java Server Thread Priority"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 25 Jan 2004 06:52:01 GMT
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
>
>
- Next message: Roman: "Re: Making driver for Linux in Java?"
- Previous message: Hacker Beware: "Re: So I guess MIT is not good enough anymore?"
- In reply to: BlackHawke: "Game Company- Java Server Thread Priority"
- Next in thread: BlackHawke: "Re: Game Company- Java Server Thread Priority"
- Reply: BlackHawke: "Re: Game Company- Java Server Thread Priority"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|