hi all,

I still have a big problem with the loading of vrml files with vrml97loader.
Im loading heavy vrml files to make a scratch book animation. I load the files
in a for loop and attach them to a switch group. When I look at the task
manager during the process, my java3d program always send my the
java.lang.OutOfMemoryError when it around 84 000k in the MEM USAGE column. I
tried to play with the Xmx512m and Xms256m parameters but no difference. Im
running my program in sun one studio ce and Im not shure the VM is getting the
order to increase it max heap size.

Each time Im adding a branch to the switch group I call
-System.out.println("Runtime memory: "+Runtime.getRuntime().totalMemory() );
-System.out.println("free memory : "+Runtime.getRuntime().freeMemory());

Befor the error it say : memory available = 14 912 544 and runtime total = 66
000 000.

Does anybody know how to tell the VM under Sun One Studio to increase it heap
size and how to verify it. I guessing since the program is stopping at 84M the
VM doesn t increase the max heap correctly. Or maybe some one have a better
way to do animation with vrml files.

Thanks

Serge Bernier

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to