Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.util.zip in Thread Dump ?

 
Ravi Kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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)
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic