J2R5M3 / evolutionchamber

Automatically exported from code.google.com/p/evolutionchamber
0 stars 0 forks source link

Entering 99 as the number of processors on a 2 CPU machine leads to dramatic performance loss #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the app on a 2 CPU machine
2. Enter 99 in the processors field
3. Press start

What is the expected output? What do you see instead?
I expect the app to inform me that I only have 2 CPU at my disposal and that it 
will continue using only two worker threads.
Instead the app tries to run 99 threads and kills performance eating up 300 MB 
of ram. The app windows turned black and I had to kill it.

What version of the product are you using? On what operating system?

version 0002 on MS Windows Vista Home Premium SP2

java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode, sharing)

Please provide any additional information below.

Original issue reported on code.google.com by netpr...@gmail.com on 18 Oct 2010 at 7:24

GoogleCodeExporter commented 8 years ago

Original comment by netpr...@gmail.com on 18 Oct 2010 at 8:13

GoogleCodeExporter commented 8 years ago
Don't do it. ;-) Will fix later.

Original comment by Frit...@gmail.com on 18 Oct 2010 at 8:56

GoogleCodeExporter commented 8 years ago

Original comment by Frit...@gmail.com on 18 Oct 2010 at 8:58

GoogleCodeExporter commented 8 years ago

Original comment by netpr...@gmail.com on 22 Oct 2010 at 12:40

GoogleCodeExporter commented 8 years ago
Fixed in r39
The number of processors is detected using the Runtime class.

Original comment by netpr...@gmail.com on 22 Oct 2010 at 12:48

GoogleCodeExporter commented 8 years ago

Original comment by netpr...@gmail.com on 22 Oct 2010 at 6:32