Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Is it possible to reducing heap consumed by JAR.

Hi,

It is not clear how related this is to jetty.

I have noticed that jetty seems to unpack a war into a folder and then some class loader looks to read those jar files (this is all fine). What I have noticed though is for each jar file a bit of heap memory is used.

It looks like a ZipFile$Source is held open and it hangs on to memory for every jar file that is in the war file. The amount consumed seems to be proportional to the size of the jar.

Have you noticed this or ever looked into this? Is it possible to prevent the JVM from doing this?

Many thanks

-Luke

Back to the top