File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes memory management whem using 2DAPI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "memory management whem using 2DAPI" Watch "memory management whem using 2DAPI" New topic
Author

memory management whem using 2DAPI

ravi vardhin
Ranch Hand

Joined: Jun 04, 2001
Posts: 37
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

Joined: Jan 09, 2001
Posts: 1492
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

Joined: Jun 04, 2001
Posts: 37
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: memory management whem using 2DAPI
 
Similar Threads
freeing the memory in 2D graphics..
Database listeners
Applet to html communication
memory management when using 2D API
2d graphics