kamranzafar / JCL

Jar Class Loader, a configurable and dynamic custom classloader designed to create, manage and manipulate isolated Java classloaders in IoC frameworks and web applications.
http://kamranzafar.github.com/
582 stars 162 forks source link

Heap space #28

Open drenda opened 10 years ago

drenda commented 10 years ago

Hi, I've this error after some times my class try to load an external jar file.

java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3230) at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113) at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140) at org.xeustechnologies.jcl.JarResources.loadJar(JarResources.java:201) at org.xeustechnologies.jcl.JarResources.loadJar(JarResources.java:119) at org.xeustechnologies.jcl.ClasspathResources.loadResource(ClasspathResources.java:262) at org.xeustechnologies.jcl.ClasspathResources.loadResource(ClasspathResources.java:285) at org.xeustechnologies.jcl.ClasspathResources.loadResource(ClasspathResources.java:285) at org.xeustechnologies.jcl.ClasspathResources.loadResource(ClasspathResources.java:285) at org.xeustechnologies.jcl.ClasspathResources.loadResource(ClasspathResources.java:285) at org.xeustechnologies.jcl.ClasspathResources.loadResource(ClasspathResources.java:285) at org.xeustechnologies.jcl.ClasspathResources.loadResource(ClasspathResources.java:246) at org.xeustechnologies.jcl.JarClassLoader.add(JarClassLoader.java:141)

lorenzop commented 10 years ago

could be caused by a memory leak in your program, or could just be it's not allocated enough memory for what it needs to do.