Recently in our new environment, we got out of memory and perm gen errors while doing deployment on weblogic server. I have taken heap dump using jmap command.
After that incresed the heap size from 1GB to 2GB and perm gen size from 512m to 640m. And then taken restart of weblogic instance and after that deployed application succesfully.
After analying the heap dump using IBM memory analyzer tool, foundt the following classloader errors in analyzer console.
20 instances of "weblogic.utils.classloaders.ChangeAwareClassLoader", loaded by "sun.misc.Launcher$AppClassLoader @ 0xc0000f40" occupy 2,42,85,568 (27.16%) bytes.