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

Seems it was actually out of memory. Is it possible to have the scanner use less memory?

On Tue, Jul 14, 2015 at 10:13 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

--
Idar Borlaug


Back to the top