• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.util.zip in Thread Dump ?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When i do a thread dump on my java application i often see the following in the thread dump :
(This came as a surprise to me as to why is java.util.zip being called ?). My application is simply creating some xml documents etc.. and has nothing to do with zip files.

Is this any kind of memory problem ? Would it cause performance issues etc. ?

The Thread Dump copied below :

at java.util.zip.Inflater.inflateBytes(Native Method)

at java.util.zip.Inflater.inflate(Inflater.java:219)

- locked <359967e8> (a java.util.zip.Inflater)

at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:128)

at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:408)

at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:450)

at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)

- locked <57b70d68> (a java.io.InputStreamReader)

at java.io.InputStreamReader.read(InputStreamReader.java:167)

at java.io.BufferedReader.fill(BufferedReader.java:136)

at java.io.BufferedReader.readLine(BufferedReader.java:299)

- locked <57b70d68> (a java.io.InputStreamReader)

at java.io.BufferedReader.readLine(BufferedReader.java:362)

at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:168)

at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:93)

at com.mypackage.MyDocument.createDocument(MyDocument.java:203)
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The XML machinery is reading configuration information out of a text file inside the JAR file it comes packaged in. The ZIP and JAR formats are identical, so java.util.zip is used to read JARs.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic