Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Out of memory error with annotation scanning

Usually when you see this error, you have a bad JAR file.
One that is, totally by accident, producing prodigious amounts of unencrypted content (like a zip bomb).
Otherwise the bad JAR file would likely produce an IOException.

Joakim Erdfelt / joakim@xxxxxxxxxxx

On Tue, Jul 14, 2015 at 1:12 AM, Idar Borlaug <idar.borlaug@xxxxxxxxx> wrote:
Hi

Jetty 9.3.0

I am getting Out of memory errors when i enable "org.eclipse.jetty.annotations.AnnotationConfiguration".

Heap is only 90 mb on dump, is there some way to only let it scan some classpaths? or is something else wrong?

2015-07-14 10:11:46.188:WARN:oejut.QueuedThreadPool:qtp656943230-20: 
INFO   | jvm 1    | 2015/07/14 10:11:46 | java.lang.OutOfMemoryError
INFO   | jvm 1    | 2015/07/14 10:11:46 |       at java.util.zip.Inflater.inflateBytes(Native Method)
INFO   | jvm 1    | 2015/07/14 10:11:46 |       at java.util.zip.Inflater.inflate(Inflater.java:259)
INFO   | jvm 1    | 2015/07/14 10:11:46 |       at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:152)
INFO   | jvm 1    | 2015/07/14 10:11:46 |       at java.util.zip.ZipInputStream.read(ZipInputStream.java:194)
INFO   | jvm 1    | 2015/07/14 10:11:46 |       at java.util.jar.JarInputStream.read(JarInputStream.java:207)
INFO   | jvm 1    | 2015/07/14 10:11:46 |       at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
INFO   | jvm 1    | 2015/07/14 10:11:46 |       at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
INFO   | jvm 1    | 2015/07/14 10:11:46 |       at java.util.jar.JarInputStream.getBytes(JarInputStream.java:112)
INFO   | jvm 1    | 2015/07/14 10:11:46 |       at java.util.jar.JarInputStream.checkManifest(JarInputStream.java:94)
INFO   | jvm 1    | 2015/07/14 10:11:46 |       at java.util.jar.JarInputStream.<init>(JarInputStream.java:86)
INFO   | jvm 1    | 2015/07/14 10:11:46 |       at java.util.jar.JarInputStream.<init>(JarInputStream.java:62)
INFO   | jvm 1    | 2015/07/14 10:11:46 |       at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.j
ava:910)

--
Idar Borlaug


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top