Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic