The Artima Developer Community
Sponsored Link

Java Answers Forum
Out of Memory error - Programming for 3D in Java

2 replies on 1 page. Most recent reply: Sep 16, 2002 6:24 AM by Vijay Kumar Chopra

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Vijay Kumar Chopra

Posts: 2
Nickname: vijay1
Registered: Sep, 2002

Out of Memory error - Programming for 3D in Java Posted: Sep 14, 2002 10:41 AM
Reply to this message Reply
Advertisement
Our applications require processing for a large amount of data for 3D objects on Windows Platform while Programming is done in Java, but we get errors like out of memory or the program hangs.

We need help/ suggestions for rectifying such problems.

Thanking you and with Best regards

VKChopra


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Out of Memory error - Programming for 3D in Java Posted: Sep 15, 2002 12:50 AM
Reply to this message Reply
Seems too obvious to say without sounding sarcastic, but maybe you should install more memory. Or partition your program so that it doesn't use so much memory at once (that is, do the memory intensive tasks serially). Maybe you have leaks, also -- make sure you don't leave dangling references in collections or elsewhere. By the way, the IntelliJ Java editor shows how much memory it has allocated and how much it is using on the status bar -- I don't know how they did this trick or whether it involved JNI, but it does indicate that it can be done...

Vijay Kumar Chopra

Posts: 2
Nickname: vijay1
Registered: Sep, 2002

Re: Out of Memory error - Programming for 3D in Java Posted: Sep 16, 2002 6:24 AM
Reply to this message Reply
> Seems too obvious to say without sounding sarcastic,
> but maybe you should install more memory. Or
> partition your program so that it doesn't use so much
> memory at once (that is, do the memory intensive
> tasks serially). Maybe you have leaks, also -- make
> sure you don't leave dangling references in
> collections or elsewhere. By the way, the IntelliJ
> Java editor shows how much memory it has allocated
> and how much it is using on the status bar -- I don't
> know how they did this trick or whether it involved
> JNI, but it does indicate that it can be done...

********************************************

Thank you very much for taking interest in our problem.
Well we will certainly follow your suggestions. we also plan to use "threads" so that some processor intensive work can be done in parts. will this help? Can calling "System.gc()" help in this regard or not? Also we'd like to know where we can get the IntelliJ java editor from?

Flat View: This topic has 2 replies on 1 page
Topic: Socket Based Server's Performance? Previous Topic   Next Topic Topic: help on project

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use