I had this problem in a memory intensive java application recentally.  Problem
was that java was only assigned 64MB of ram or somthing like that.

Check out these resources:

http://java.sun.com/docs/hotspot/ism.html
http://java.sun.com/docs/hotspot/
http://java.sun.com/docs/hotspot/gc1.4.2/index.html
http://java.sun.com/docs/hotspot/gc1.4.2/example.html
http://java.sun.com/docs/hotspot/PerformanceFAQ.html
http://java.sun.com/docs/performance/appserver/AppServerPerfFaq.html

The first was the first one I found and it fixed my problem.  The rest give
you some good ideas to tweak GC and memory allocation.

I add "-Xms128m -Xmx512m" to my command which means that java allocates 128MB
of heap space to my app when it loads, and the heap can grow to a max of 512.
This was plenty for my needs.  Making the min and max the same can also
increase performance if you have enough RAM to support it.

I was using java 1.4.

Cheers,

Will.



On Friday 04 July 2003 03:42, you wrote:
> Hi everybody,
>
> I programmed an servlet, which produces an terrain elevation model
> of a geograhpical area. I use offscreen rendering and put aout a JPEG.
>
> The Offscreen Canvas and the Universe are static, the generate() Method
> is synchronized. After the Rendering the SceneGraph will be detached and
> the Canvas and Universe instances reused.
>
> But after some runs I get an out of memory error.
>
> Is it possible to release the BranchGroup and make the memory free again
> after using it.
>
> I use the following system configuration
>
> j2sdk1.4.1_3
> java3D-1.3.1
> tomcat 4.1.12LE 1.4
>
>
> thank in advance
>
> Bj�rn

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