I FINALLY GOT IT,

it was a really simple as always. If only some documentation for that kind of
problem (setting) was avalaible it could save me a lot of time!!!

For those who are running program under Sun One Studio CE and want to increase
the MAX HEAP Size to the VM, there the instruction:

1- In the Menu bar click on Tools
2- Select the Intem Menu: Options
3- Expand the Debugging and Executing folder
4- Expand the Execution Types
5- Select the External Execution
6- In the External Process properties click on the (...) to add arguments
7- In the Arguments text Area add -Xmx512m before the -cp with a space between.

Exemple:
-Xmx512m -cp {filesystems}{:}{classpath}{:}{library} {classname} {arguments}

To see if it working start the tack manager and select the processes option.
Look a the MEM USAGE and if it going over 96M it working.

Sorry for those who find this kind of settings very simple, if someone had
told me this it would have same me a few days of work:-)!


Serge Bernier





Selon Serge Bernier <[EMAIL PROTECTED]>:

> 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".
>

===========================================================================
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