High CPU in sun.net.www.MeteredStream.skip
Environment
- Java
Issue
- We see high CPU in the following calls
Thread 28740: (state = IN_JAVA)
- java.io.BufferedInputStream.fill() @bci=175, line=218 (Compiled frame; information may be imprecise)
- java.io.BufferedInputStream.skip(long) @bci=47, line=352 (Compiled frame)
- sun.net.www.MeteredStream.skip(long) @bci=67, line=134 (Compiled frame)
- sun.net.www.http.KeepAliveStream.close() @bci=62, line=76 (Compiled frame)
- sun.net.www.MeteredStream.justRead(int) @bci=13, line=50 (Compiled frame)
- sun.net.www.MeteredStream.read(byte[], int, int) @bci=24, line=117 (Compiled frame)
- java.io.FilterInputStream.read(byte[], int, int) @bci=7, line=116 (Compiled frame)
- sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(byte[], int, int) @bci=4, line=2668 (Compiled frame)
- sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(byte[]) @bci=5, line=2663 (Compiled frame)
Root Cause
- Content from bugs.openjdk.java.net is not included.JDK-6356004
- Content from bugs.java.com is not included.Oracle Bug 4211025
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.