josmas / openwonderland

Automatically exported from code.google.com/p/openwonderland
GNU General Public License v2.0
3 stars 4 forks source link

Check available resources before starting new objects #135

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Suggestion by our technician: Would it be possible for the "server in charge" 
to check the availability of resources such as memory and/or CPU before 
starting a new shared application or importing/loading a 3-d model? If less 
than a certain amount of RAM is available, or if the CPU is almost at 100%, new 
applications could not be started or new models could not be imported anymore, 
in order to avoid the world to get bogged down.

Original issue reported on code.google.com by nathan.l...@gmail.com on 15 Nov 2010 at 2:24

GoogleCodeExporter commented 9 years ago
Are you suggesting making this change on the server, so that the server doesn't 
get bogged down by adding new objects? Or monitoring the client and trying to 
limit the world to certain resources so that clients don't get overloaded?

Original comment by jonathan...@gmail.com on 15 Nov 2010 at 4:41

GoogleCodeExporter commented 9 years ago
The original suggestion came from our technician: Monitoring the server in 
order to prevent it from getting overloaded when more and more shared apps are 
started and/or complex models are imported.

But I also like your idea to monitor the clients, as they are usually much more 
prone to problems than the server, due to very different hardware 
configurations (network speed, graphics card, CPU, etc.).

Would it be possible to implement both? An addition to the server that makes 
sure there are enough resources available to it, and adding something to the 
clients that warns them if things are getting too complex for it, or simply 
disables the import/start app functionality? (Which wouldn't really help much, 
I guess, as other clients would still be able to populate the world with 
objects that the "weak" client then would have to render...)

Original comment by nathan.l...@gmail.com on 15 Nov 2010 at 4:59

GoogleCodeExporter commented 9 years ago
Both types of monitoring are possible, although it can be difficult to get 
accurate CPU/memory usage information from Java. 

We don't have any plans on the roadmap for this type of checking, but we would 
be happy to point developers in the right direction and accept contributions in 
this area.

Original comment by jonathan...@gmail.com on 15 Nov 2010 at 5:19