Which version of Remoting are you using?
we use JBoss 5.1.0 with
JBoss Remoting is 2.5.4.SP3
we have still the same problem.
We have lots of duplicate classes in the perm gen.
Is this the desired behaviour? I can´t imagine it.
Is this a bug in my configuration or a known bug in JBoss remoting which will be fixed in future versions?
Or is it indeed the correct behaviour?
I'm using JBOSS 6.1 and it seems to have same problem. I'm experiencing OutOfMemoryError:PermGen space with several (> 9000) instances of org.jboss.remoting.loading.RemotingClassLoader.
Is there any Classloader issue with Remoting 3?
Which "Remote Class Loading" facility are you talking about? Remoting has such a thing, but the server side uses Classloader.getResourceAsStream() to get the bytes for the class. I don't know, but, since that method can be used to load arbitrary files, I wouldn't expect them to go into PermGen.
It looks like you have a different problem, since you're talking about multiple instances of RemotingClassLoader. It is possible, under some circumstances, for Remoting to create a new RemotingClassLoader for every invocation. Can you tell me which subsystem of AS 6 these RemotingClassLoaders are associated with?
re: "Is there any Classloader issue with Remoting 3?"
I'm not vey familiar with Remoting 3. However, I can tell you that it was written by David Lloyd, who know a LOT about classloading.