i have made a game in java it has a
EnterScreen Class and from here you can choose 1 of 6 games.
on Exit you will get back to EnterScreen.
each game works fine. BUT if you enter and exit different games the garbage collector never collects the full classes.
so after some time we get java heap exception or strange problems like images and animations dissapear all about when 1GB is allocated already.
tracing class TraceClassUnloading shows that no game is ever unloaded.
pls help to unload and dereference all the classes that are not used, so that the memory leackage will be fixed.
java -XX:+CMSClassUnloadingEnabled -XX:+TraceClassLoading -XX:+TraceClassUnloading -Xms1024m EnterScreen
pls write pm for the download link