Re: Crash when creating more than ~15 jogl/awt windows
Posted by
Sven Gothel on
Jun 19, 2011; 9:29am
URL: https://forum.jogamp.org/Crash-when-creating-more-than-15-jogl-awt-windows-tp3054540p3082242.html
On Sunday, June 19, 2011 03:46:37 AM GiGurra [via jogamp] wrote:
>
> Thank you.
>
> I think though I may have embarrassed myself quite hard right now. :)
>
On the contrary, you have found another metric/constraint! Kudos.
> The issue has been at least partially solved, and it seems to be memory
> related after all
> I was using -Xmx1536m, but for some reason this only gives my JVM a small
> fraction of this number to work with.
> When i lower it to 1024 or 1280 then I can actually more than double the
> number of screens I can run.
>
> Quite Frustrating!
Maybe, but you the findings you present here, are quite nice,
i.e. NEWT GLWindow requires around half the memory than AWT GLCanvas.
Great stuff.
~Sven
>
> So (Yes the order is correct, and very interesting!):
> with -Xmx1280m I can generate up to about ~100 newt windows before opengl
> context creation fails
> with -Xmx1536m I can generate up to about ~40 newt windows before opengl
> context creation fails
>
> with -Xmx1280m I can generate up to about ~50 awt windows before opengl
> context creation fails
> with -Xmx1536m I can generate up to about ~20 awt windows before opengl
> context creation fails
>
> So it seems the first part at least is an issue with the jvm and memory
> management. I will not pursue this issue further.
> I need about 50 and it seems to be possible now.