Skip to content

NumberFormatException: For input string: "188744K->13345K(4063232K)." #60

Closed
@alch76

Description

@alch76

Hi.
It seems to be an unsupported GClog format found.

java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.6) (rhel-1.25.1.10.6.0.1.el5_8-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
JVM parameters
-verbose:gc -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -XX:+PrintGCTimeStamps

GCViewer log:
INFO [DataReaderFacade]: GCViewer version 1.32-SNAPSHOT (2013-03-11 14:42)
INFO [DataReaderFactory]: File format: Sun 1.6.x
INFO [DataReaderSun1_6_0]: Reading Sun / Oracle 1.4.x / 1.5.x / 1.6.x / 1.7.x format...
WARNING [DataReaderSun1_6_0]: com.tagtraum.perf.gcviewer.imp.ParseException: Error parsing entry (java.lang.NumberFormatException: For input string: "188744K->13345K(4063232K).") Line 1: 3.141: [GCDesired survivor size 134217728 bytes, new threshold 7 (max 2) [PSYoungGen: 188744K->13345K(917504K)] 188744K->13345K(4063232K), 0.0285820 secs] [Times: user=0.06 sys=0.01, real=0.03 secs]

GC log example:
3.141: [GCDesired survivor size 134217728 bytes, new threshold 7 (max 2) [PSYoungGen: 188744K->13345K(917504K)] 188744K->13345K(4063232K), 0.0285820 secs] [Times: user=0.06 sys=0.01, real=0.03 secs]
3.170: [Full GC (System) [PSYoungGen: 13345K->0K(917504K)] [PSOldGen: 0K->13159K(3145728K)] 13345K->13159K(4063232K) [PSPermGen: 14997K->14997K(262144K)], 0.0944050 secs] [Times: user=0.09 sys=0.01, real=0.10 secs]
4.083: [GCDesired survivor size 134217728 bytes, new threshold 7 (max 2) [PSYoungGen: 786432K->25297K(917504K)] 799591K->38457K(4063232K), 0.0444010 secs] [Times: user=0.07 sys=0.01, real=0.04 secs]

Exception rased here
AbstractDataReaderSun.java

protected void parsePause(GCEvent event, String line, ParsePosition pos)

246         event.setPause(Double.parseDouble(line.substring(pos.getIndex(), end).replace(',', '.')));

Code line substring(pos.getIndex(), end).replace(',', '.')) returns "188744K->13345K(4063232K)." but I think "0.0285820" is expected.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions