Page 1 of 1

Class adapter1 thousand times

Posted: 12 Oct 2010, 04:59
by overmind
I have a bottleneck on my sfs and many "heavy load" messages, after a little searching i found that this happens when gc makes class unloads. i traced class unloads details and i saw that thousand times:

INFO | jvm 1 | 2010/10/12 08:20:05 | [Unloading class adapter1]
INFO | jvm 1 | 2010/10/12 08:20:05 | [Unloading class adapter1]
INFO | jvm 1 | 2010/10/12 08:20:05 | [Unloading class adapter1]


What is class adapter1? Why is it loading all the time thousand times in permgen and not only once?

After a little search i found this site: http://blog.retep.org/category/jaxb/page/2/
So it would be nice to reduce this down to a single adapter.

Fortunately there is a way when using the JAXB RI. There is an alternate javaType binding which takes the full class name of an adapter class instead – using this causes JAXB to use that single class instead of generating these duplicate classes. The main difference is replacing the parseMethod and printMethod attributes with a single adapter attribute, and qualifying the javaType with the http://java.sun.com/xml/ns/jaxb/xjc namespace.
I do not use Java Architecture for XML Binding (JAXB), does smartfox uses somewhere? Is there anything i can do to have only one adapter1 class and not thousands? Any ideas?