Is Vector() limited in size() ?
Hi !
I am actually working on a neuronal system bullshit, and I need to create something like at least 1 million "particles".
So I can generate as many millions particles as I want, but when it comes to putting it in Vector() ... it always stops at something like 104999 particles.
the error is :
"Exception in Thread "main" java.lang.OutofMemoryError
<< no stack trace available >>
BTW : my config(Linux Mandrake 7.2, PIII 1000, 380 RAM) I hope it is sufficient to handle so many particles ... (it is enough to run 3DSMAX on M$ winME)
I first thought that vector were limited in size, because it always stopped at 104999, but afterwards, seeing this out of memory exception, I though I asked too many things for the comp.
What I have tried to do :
1) trimToSize() after all the molecules are created (in series of 10 000 or so)
2) reorganize the vectors so that less need to be added / removed / modified.
3) setting different values for (initial capacity, increment), from (5,1) to (50000,10000) !
What I think could save me :
1) set up a buffer that I could flush after [x] molecules are created (*** preferred ***)
2) store all parameters to a single vector, containing vectors (this would need strong logic to get values from there ...)
If you have any hints, ideas, codes, please post them here !
Regards,
stephmor
PS : yes, I need so many particles ! ;)

