Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

memory management whem using 2DAPI

 
ravi vardhin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
iam using a plugin for 2D API.when ever ii load the page that contains 2D Graphics my memory is increasing to
+10MB.i.e is nearly the size of the plugin.and more over when ever i refresh the page that contains 2D Graphics again my memory is increasing to +10 MB again.
iam using System.gc() to collect the garbage.but whenever i refresh the page or when ever i load the 2D Graphics page the memory is increasing enormously..
PLease help in this issue,

Thanks and regards
ravi
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ravi,
I have no idea why your memory usage keeps going up. But I do know that calling System.gc() method will not always run the garbage collection. It is up to the JVM when garbage collections takes place. The method only provides a means to "hint" that we want garbage collection to take place soon!
Regards,
Manfred.
 
ravi vardhin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi manfred,
is thier any way to handle memory when using JRE1.3 plug in.
because my memory is increasing to 10 mb when i load my plug in.
please reply asap,
thanks and regards
ravi

Originally posted by Manfred Leonhardt:
Hi Ravi,
I have no idea why your memory usage keeps going up. But I do know that calling System.gc() method will not always run the garbage collection. It is up to the JVM when garbage collections takes place. The method only provides a means to "hint" that we want garbage collection to take place soon!
Regards,
Manfred.

 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!